Option to include dotfiles

This commit is contained in:
Tim Schaub 2015-09-02 00:11:28 -06:00
parent 388d543966
commit 188919de4a

View file

@ -12,11 +12,13 @@ program
'pattern used to select which files should be published', '**/*')
.option('-b, --branch <branch>',
'name of the branch you\'ll be pushing to', 'gh-pages')
.option('-t, --dotfiles', 'Include dotfiles')
.parse(process.argv);
ghpages.publish(path.join(process.cwd(), program.dist), {
branch: program.branch,
src: program.src,
dotfiles: !!program.dotfiles,
logger: function(message) {
console.log(message);
}