Skip to content

Commit

Permalink
feat(gh-pages:deploy): add aot and vendor-chunk options for gh-pages:…
Browse files Browse the repository at this point in the history
…deploy (#4073)
  • Loading branch information
scttcper authored and hansl committed Jan 18, 2017
1 parent eec462b commit 71445c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/angular-cli/commands/github-pages-deploy.run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
10 changes: 10 additions & 0 deletions packages/angular-cli/commands/github-pages-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export interface GithubPagesDeployOptions {
ghUsername?: string;
baseHref?: string;
customDomain?: string;
aot?: boolean;
vendorChunk?: boolean;
}

const githubPagesDeployCommand = Command.extend({
Expand Down Expand Up @@ -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[]) {
Expand Down

0 comments on commit 71445c3

Please sign in to comment.