Skip to content

Commit

Permalink
Option to include dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Sep 2, 2015
1 parent 388d543 commit 188919d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var ghpages = require('../lib/index');
var program = require('commander');
var path = require('path');

program
.version(require('../package').version)
.option('-d, --dist <dist>',
Expand All @@ -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);
}
Expand Down

0 comments on commit 188919d

Please sign in to comment.