diff options
author | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 |
---|---|---|
committer | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 |
commit | 6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch) | |
tree | f46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js | |
parent | 2400b84e95913665da6279114168148444b8f9ab (diff) | |
parent | 7d3640f824f46490b47bd95f1c5a16644f712068 (diff) |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js')
-rw-r--r-- | sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js new file mode 100644 index 00000000..212de742 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js @@ -0,0 +1,65 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const schematics_1 = require("@angular-devkit/schematics"); +const tasks_1 = require("@angular-devkit/schematics/tasks"); +function default_1(options) { + if (!options.directory) { + // If scoped project (i.e. "@foo/bar"), convert directory to "foo/bar". + options.directory = options.name.startsWith('@') ? options.name.substr(1) : options.name; + } + const workspaceOptions = { + name: options.name, + version: options.version, + newProjectRoot: options.newProjectRoot, + minimal: options.minimal, + strict: options.strict, + packageManager: options.packageManager, + }; + const applicationOptions = { + projectRoot: '', + name: options.name, + inlineStyle: options.inlineStyle, + inlineTemplate: options.inlineTemplate, + prefix: options.prefix, + viewEncapsulation: options.viewEncapsulation, + routing: options.routing, + style: options.style, + skipTests: options.skipTests, + skipPackageJson: false, + // always 'skipInstall' here, so that we do it after the move + skipInstall: true, + strict: options.strict, + minimal: options.minimal, + }; + return (0, schematics_1.chain)([ + (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.empty)(), [ + (0, schematics_1.schematic)('workspace', workspaceOptions), + options.createApplication ? (0, schematics_1.schematic)('application', applicationOptions) : schematics_1.noop, + (0, schematics_1.move)(options.directory), + ])), + (_host, context) => { + let packageTask; + if (!options.skipInstall) { + packageTask = context.addTask(new tasks_1.NodePackageInstallTask({ + workingDirectory: options.directory, + packageManager: options.packageManager, + })); + if (options.linkCli) { + packageTask = context.addTask(new tasks_1.NodePackageLinkTask('@angular/cli', options.directory), [packageTask]); + } + } + if (!options.skipGit) { + const commit = typeof options.commit == 'object' ? options.commit : options.commit ? {} : false; + context.addTask(new tasks_1.RepositoryInitializerTask(options.directory, commit), packageTask ? [packageTask] : []); + } + }, + ]); +} +exports.default = default_1; |