From 71445c3f4374204dfc8270923bb0acb00b6ede2b Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Tue, 17 Jan 2017 16:51:29 -0800 Subject: [PATCH] feat(gh-pages:deploy): add aot and vendor-chunk options for gh-pages:deploy (#4073) --- .../angular-cli/commands/github-pages-deploy.run.ts | 2 ++ packages/angular-cli/commands/github-pages-deploy.ts | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/packages/angular-cli/commands/github-pages-deploy.run.ts b/packages/angular-cli/commands/github-pages-deploy.run.ts index 8f86915b1786..f0343c1b4edd 100644 --- a/packages/angular-cli/commands/github-pages-deploy.run.ts +++ b/packages/angular-cli/commands/github-pages-deploy.run.ts @@ -69,6 +69,8 @@ export default function githubPagesDeployRun(options: GithubPagesDeployOptions, environment: options.environment, outputPath: outDir, baseHref: baseHref, + aot: options.aot, + vendorChunk: options.vendorChunk, }; const createGithubRepoTask = new CreateGithubRepo({ diff --git a/packages/angular-cli/commands/github-pages-deploy.ts b/packages/angular-cli/commands/github-pages-deploy.ts index 906bbbefc2e7..d766af1f14af 100644 --- a/packages/angular-cli/commands/github-pages-deploy.ts +++ b/packages/angular-cli/commands/github-pages-deploy.ts @@ -11,6 +11,8 @@ export interface GithubPagesDeployOptions { ghUsername?: string; baseHref?: string; customDomain?: string; + aot?: boolean; + vendorChunk?: boolean; } const githubPagesDeployCommand = Command.extend({ @@ -69,6 +71,14 @@ const githubPagesDeployCommand = Command.extend({ default: null, aliases: ['cd'], description: 'Custom domain for Github Pages' + }, { + name: 'aot', + type: Boolean, + default: false, + }, { + name: 'vendor-chunk', + type: Boolean, + default: false, }], run: function(options: GithubPagesDeployOptions, rawArgs: string[]) {