diff --git a/bin/gh-pages.js b/bin/gh-pages.js index bf51f2c..9b3b5ad 100755 --- a/bin/gh-pages.js +++ b/bin/gh-pages.js @@ -127,6 +127,7 @@ function main(args) { depth: options.depth, dotfiles: !!options.dotfiles, nojekyll: !!options.nojekyll, + cname: options.cname, add: !!options.add, remove: options.remove, remote: options.remote, diff --git a/test/bin/gh-pages.spec.js b/test/bin/gh-pages.spec.js index e0353fc..61563fc 100644 --- a/test/bin/gh-pages.spec.js +++ b/test/bin/gh-pages.spec.js @@ -47,6 +47,11 @@ describe('gh-pages', () => { dist: 'lib', config: {nojekyll: true}, }, + { + args: ['--dist', 'lib', '--cname', 'CNAME'], + dist: 'lib', + config: {cname: 'CNAME'}, + }, { args: ['--dist', 'lib', '--dest', 'target'], dist: 'lib',