Skip to content

Commit

Permalink
feat(@angular/cli): add ng4 option to ng new
Browse files Browse the repository at this point in the history
This allows to create a project with Angular 4 in the template.
Also fixes a few issues with ng4.
  • Loading branch information
hansl committed Feb 8, 2017
1 parent ed9c623 commit d162659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/@angular/cli/tasks/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default Task.extend({
inlineStyle: commandOptions.inlineStyle,
inlineTemplate: commandOptions.inlineTemplate,
ignoredUpdateFiles: ['favicon.ico'],
ng4: commandOptions.ng4,
skipGit: commandOptions.skipGit,
skipTests: commandOptions.skipTests
};
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/setup/500-create-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function() {
} else {
// Otherwise create a project from scratch.
createProject = Promise.resolve()
.then(() => ng('new', 'test-project', '--skip-npm', argv['ng4'] ? '--ng4' : '--'))
.then(() => ng('new', 'test-project', '--skip-npm', ...(argv['ng4'] ? ['--ng4'] : [])))
.then(() => expectFileToExist(join(process.cwd(), 'test-project')))
.then(() => process.chdir('./test-project'));
}
Expand Down

0 comments on commit d162659

Please sign in to comment.