mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2024-11-28 18:25:38 -05:00
Option to include dotfiles
This commit is contained in:
parent
388d543966
commit
188919de4a
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
var ghpages = require('../lib/index');
|
var ghpages = require('../lib/index');
|
||||||
var program = require('commander');
|
var program = require('commander');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
program
|
program
|
||||||
.version(require('../package').version)
|
.version(require('../package').version)
|
||||||
.option('-d, --dist <dist>',
|
.option('-d, --dist <dist>',
|
||||||
|
@ -12,11 +12,13 @@ program
|
||||||
'pattern used to select which files should be published', '**/*')
|
'pattern used to select which files should be published', '**/*')
|
||||||
.option('-b, --branch <branch>',
|
.option('-b, --branch <branch>',
|
||||||
'name of the branch you\'ll be pushing to', 'gh-pages')
|
'name of the branch you\'ll be pushing to', 'gh-pages')
|
||||||
|
.option('-t, --dotfiles', 'Include dotfiles')
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
ghpages.publish(path.join(process.cwd(), program.dist), {
|
ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||||
branch: program.branch,
|
branch: program.branch,
|
||||||
src: program.src,
|
src: program.src,
|
||||||
|
dotfiles: !!program.dotfiles,
|
||||||
logger: function(message) {
|
logger: function(message) {
|
||||||
console.log(message);
|
console.log(message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue