source: trip-planner-front/node_modules/@angular/cli/commands/new-impl.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.NewCommand = void 0;
11const schematic_command_1 = require("../models/schematic-command");
12const version_1 = require("../models/version");
13class NewCommand extends schematic_command_1.SchematicCommand {
14 constructor() {
15 super(...arguments);
16 this.allowMissingWorkspace = true;
17 this.schematicName = 'ng-new';
18 }
19 async initialize(options) {
20 this.collectionName = options.collection || (await this.getDefaultSchematicCollection());
21 return super.initialize(options);
22 }
23 async run(options) {
24 // Register the version of the CLI in the registry.
25 const version = version_1.VERSION.full;
26 this._workflow.registry.addSmartDefaultProvider('ng-cli-version', () => version);
27 return this.runSchematic({
28 collectionName: this.collectionName,
29 schematicName: this.schematicName,
30 schematicOptions: options['--'] || [],
31 debug: !!options.debug,
32 dryRun: !!options.dryRun,
33 force: !!options.force,
34 });
35 }
36}
37exports.NewCommand = NewCommand;
Note: See TracBrowser for help on using the repository browser.