mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 03:23:57 +08:00
parent
77610d5df5
commit
46310618b8
@ -27,6 +27,7 @@ export default class NewCommand extends SchematicCommand {
|
|||||||
description: 'Schematics collection to use.',
|
description: 'Schematics collection to use.',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
private schematicName = 'ng-new';
|
||||||
|
|
||||||
private initialized = false;
|
private initialized = false;
|
||||||
public initialize(options: any) {
|
public initialize(options: any) {
|
||||||
@ -37,10 +38,9 @@ export default class NewCommand extends SchematicCommand {
|
|||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
|
|
||||||
const collectionName = this.parseCollectionName(options);
|
const collectionName = this.parseCollectionName(options);
|
||||||
const schematicName = 'application';
|
|
||||||
|
|
||||||
return this.getOptions({
|
return this.getOptions({
|
||||||
schematicName,
|
schematicName: this.schematicName,
|
||||||
collectionName,
|
collectionName,
|
||||||
})
|
})
|
||||||
.then((schematicOptions) => {
|
.then((schematicOptions) => {
|
||||||
@ -75,7 +75,7 @@ export default class NewCommand extends SchematicCommand {
|
|||||||
|
|
||||||
return this.runSchematic({
|
return this.runSchematic({
|
||||||
collectionName: collectionName,
|
collectionName: collectionName,
|
||||||
schematicName: 'ng-new',
|
schematicName: this.schematicName,
|
||||||
schematicOptions: options,
|
schematicOptions: options,
|
||||||
debug: options.debug,
|
debug: options.debug,
|
||||||
dryRun: options.dryRun,
|
dryRun: options.dryRun,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user