File tree 2 files changed +6
-56
lines changed
packages/@angular/cli/commands 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';
2
2
import * as path from 'path' ;
3
3
import * as chalk from 'chalk' ;
4
4
5
- import InitCommand from './init' ;
6
5
import { CliConfig } from '../models/config' ;
7
6
import { validateProjectName } from '../utilities/validate-project-name' ;
8
7
import { oneLine } from 'common-tags' ;
9
8
import { SchematicAvailableOptions } from '../tasks/schematic-get-options' ;
10
9
11
10
const Command = require ( '../ember-cli/lib/models/command' ) ;
12
- const Project = require ( '../ember-cli/lib/models/project' ) ;
13
11
const SilentError = require ( 'silent-error' ) ;
14
12
15
13
const NewCommand = Command . extend ( {
@@ -150,15 +148,15 @@ const NewCommand = Command.extend({
150
148
commandOptions . collectionName = this . getCollectionName ( rawArgs ) ;
151
149
}
152
150
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 ,
155
155
tasks : this . tasks ,
156
- project : Project . nullProject ( this . ui , this . cli )
156
+ ui : this . ui ,
157
157
} ) ;
158
158
159
- return Promise . resolve ( )
160
- . then ( initCommand . run . bind ( initCommand , commandOptions , rawArgs ) ) ;
161
-
159
+ return initTask . run ( commandOptions , rawArgs ) ;
162
160
}
163
161
} ) ;
164
162
You can’t perform that action at this time.
0 commit comments