From 00f744cf853d897d2e09d8c0f4558bbaf1a5b4af Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Tue, 17 Jan 2017 11:27:02 -0800 Subject: [PATCH 1/2] add aot and vendor-chunk to github pages deploy --- .../angular-cli/commands/github-pages-deploy.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/commands/github-pages-deploy.ts b/packages/angular-cli/commands/github-pages-deploy.ts index 475b621f94ce..40f6551f4966 100644 --- a/packages/angular-cli/commands/github-pages-deploy.ts +++ b/packages/angular-cli/commands/github-pages-deploy.ts @@ -24,6 +24,8 @@ interface GithubPagesDeployOptions { ghToken?: string; ghUsername?: string; baseHref?: string; + aot?: boolean; + vendorChunk?: boolean; } const githubPagesDeployCommand = Command.extend({ @@ -76,7 +78,16 @@ const githubPagesDeployCommand = Command.extend({ type: String, default: null, aliases: ['bh'] - }], + }, { + name: 'aot', + type: Boolean, + default: false + }, { + name: 'vendor-chunk', + type: Boolean, + default: false + } + ], run: function(options: GithubPagesDeployOptions, rawArgs: string[]) { const ui = this.ui; From b4e216df71472f4249bacd379aa3790f22e412b2 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Tue, 17 Jan 2017 15:36:20 -0800 Subject: [PATCH 2/2] send options to the build command --- packages/angular-cli/commands/github-pages-deploy.run.ts | 2 ++ 1 file changed, 2 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({