File tree Expand file tree Collapse file tree 2 files changed +6
-56
lines changed
packages/@angular/cli/commands Expand file tree Collapse file tree 2 files changed +6
-56
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ import * as fs from 'fs';
22import * as path from 'path' ;
33import * as chalk from 'chalk' ;
44
5- import InitCommand from './init' ;
65import { CliConfig } from '../models/config' ;
76import { validateProjectName } from '../utilities/validate-project-name' ;
87import { oneLine } from 'common-tags' ;
98import { SchematicAvailableOptions } from '../tasks/schematic-get-options' ;
109
1110const Command = require ( '../ember-cli/lib/models/command' ) ;
12- const Project = require ( '../ember-cli/lib/models/project' ) ;
1311const SilentError = require ( 'silent-error' ) ;
1412
1513const NewCommand = Command . extend ( {
@@ -150,15 +148,15 @@ const NewCommand = Command.extend({
150148 commandOptions . collectionName = this . getCollectionName ( rawArgs ) ;
151149 }
152150
153- const initCommand = new InitCommand ( {
154- ui : this . ui ,
151+ const InitTask = require ( '../tasks/init' ) . default ;
152+
153+ const initTask = new InitTask ( {
154+ project : this . project ,
155155 tasks : this . tasks ,
156- project : Project . nullProject ( this . ui , this . cli )
156+ ui : this . ui ,
157157 } ) ;
158158
159- return Promise . resolve ( )
160- . then ( initCommand . run . bind ( initCommand , commandOptions , rawArgs ) ) ;
161-
159+ return initTask . run ( commandOptions , rawArgs ) ;
162160 }
163161} ) ;
164162
You can’t perform that action at this time.
0 commit comments