diff --git a/src/angular-cli-ghpages b/src/angular-cli-ghpages old mode 100644 new mode 100755 index 866606a..d677076 --- a/src/angular-cli-ghpages +++ b/src/angular-cli-ghpages @@ -60,6 +60,15 @@ commander 'For testing: Run through without making any changes.', defaults.dryRun ) + .option( + '--dest ', + 'The destination folder within the destination branch.', + defaults.dest + ).option( + '-A, --add', + 'Only add, and never remove existing files.', + defaults.add + ) .parse(process.argv); var consoleLogger = { diff --git a/src/engine/defaults.ts b/src/engine/defaults.ts index 8f6b2d6..c648397 100644 --- a/src/engine/defaults.ts +++ b/src/engine/defaults.ts @@ -1,5 +1,6 @@ export const defaults = { dir: 'dist', + dest: '.', repo: undefined, message: 'Auto-generated commit [ci skip]', branch: 'gh-pages', @@ -10,5 +11,6 @@ export const defaults = { cname: undefined, dryRun: false, remote: 'origin', - git: 'git' + git: 'git', + add: false };