aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/BUILD.bazel35
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.d.ts11
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.js18
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/BUILD.bazel32
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.d.ts15
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.js47
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.d.ts14
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.js144
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.d.ts27
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.js51
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.d.ts16
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.js30
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.d.ts23
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.js11
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package.json5
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.d.ts10
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.js90
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.d.ts20
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.js30
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.d.ts18
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.js11
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.d.ts10
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.js29
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.d.ts13
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.js11
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.d.ts17
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.js34
27 files changed, 772 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/BUILD.bazel b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/BUILD.bazel
new file mode 100644
index 00000000..09f1ba24
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/BUILD.bazel
@@ -0,0 +1,35 @@
+load("//tools:defaults.bzl", "ts_library")
+
+# Copyright Google Inc. 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
+licenses(["notice"])
+
+package(default_visibility = ["//visibility:public"])
+
+ts_library(
+ name = "tasks",
+ srcs = glob(
+ include = ["**/*.ts"],
+ exclude = [
+ "node/**/*.ts",
+ "**/*_spec.ts",
+ "**/*_benchmark.ts",
+ ],
+ ),
+ data = ["package.json"],
+ module_name = "@angular-devkit/schematics/tasks",
+ module_root = "index.d.ts",
+ # The attribute below is needed in g3 to turn off strict typechecking
+ # strict_checks = False,
+ deps = [
+ "//packages/angular_devkit/core",
+ "//packages/angular_devkit/core/node",
+ "//packages/angular_devkit/schematics",
+ "@npm//@types/node",
+ "@npm//ora",
+ "@npm//rxjs",
+ "@npm//typescript",
+ ],
+)
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.d.ts
new file mode 100644
index 00000000..36c11571
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.d.ts
@@ -0,0 +1,11 @@
+/**
+ * @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
+ */
+export { NodePackageInstallTask } from './package-manager/install-task';
+export { NodePackageLinkTask } from './package-manager/link-task';
+export { RepositoryInitializerTask } from './repo-init/init-task';
+export { RunSchematicTask } from './run-schematic/task';
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.js
new file mode 100644
index 00000000..d43e7a11
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.js
@@ -0,0 +1,18 @@
+"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 });
+exports.RunSchematicTask = exports.RepositoryInitializerTask = exports.NodePackageLinkTask = exports.NodePackageInstallTask = void 0;
+var install_task_1 = require("./package-manager/install-task");
+Object.defineProperty(exports, "NodePackageInstallTask", { enumerable: true, get: function () { return install_task_1.NodePackageInstallTask; } });
+var link_task_1 = require("./package-manager/link-task");
+Object.defineProperty(exports, "NodePackageLinkTask", { enumerable: true, get: function () { return link_task_1.NodePackageLinkTask; } });
+var init_task_1 = require("./repo-init/init-task");
+Object.defineProperty(exports, "RepositoryInitializerTask", { enumerable: true, get: function () { return init_task_1.RepositoryInitializerTask; } });
+var task_1 = require("./run-schematic/task");
+Object.defineProperty(exports, "RunSchematicTask", { enumerable: true, get: function () { return task_1.RunSchematicTask; } });
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/BUILD.bazel b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/BUILD.bazel
new file mode 100644
index 00000000..230f2f37
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/BUILD.bazel
@@ -0,0 +1,32 @@
+load("//tools:defaults.bzl", "ts_library")
+
+# Copyright Google Inc. 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
+licenses(["notice"])
+
+package(default_visibility = ["//visibility:public"])
+
+ts_library(
+ name = "node",
+ srcs = glob(
+ include = ["**/*.ts"],
+ exclude = [
+ "**/*_spec.ts",
+ "**/*_benchmark.ts",
+ ],
+ ),
+ module_name = "@angular-devkit/schematics/tasks/node",
+ module_root = "index.d.ts",
+ # The attribute below is needed in g3 to turn off strict typechecking
+ # strict_checks = False,
+ deps = [
+ "//packages/angular_devkit/core",
+ "//packages/angular_devkit/core/node",
+ "//packages/angular_devkit/schematics",
+ "//packages/angular_devkit/schematics/tasks",
+ "@npm//@types/node",
+ "@npm//rxjs",
+ ],
+)
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.d.ts
new file mode 100644
index 00000000..0bebe160
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.d.ts
@@ -0,0 +1,15 @@
+/**
+ * @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
+ */
+import { TaskExecutorFactory } from '../../src';
+import { NodePackageTaskFactoryOptions } from '../package-manager/options';
+import { RepositoryInitializerTaskFactoryOptions } from '../repo-init/options';
+export declare class BuiltinTaskExecutor {
+ static readonly NodePackage: TaskExecutorFactory<NodePackageTaskFactoryOptions>;
+ static readonly RepositoryInitializer: TaskExecutorFactory<RepositoryInitializerTaskFactoryOptions>;
+ static readonly RunSchematic: TaskExecutorFactory<{}>;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.js
new file mode 100644
index 00000000..54120661
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.js
@@ -0,0 +1,47 @@
+"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
+ */
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.BuiltinTaskExecutor = void 0;
+const options_1 = require("../package-manager/options");
+const options_2 = require("../repo-init/options");
+const options_3 = require("../run-schematic/options");
+class BuiltinTaskExecutor {
+}
+exports.BuiltinTaskExecutor = BuiltinTaskExecutor;
+BuiltinTaskExecutor.NodePackage = {
+ name: options_1.NodePackageName,
+ create: (options) => Promise.resolve().then(() => __importStar(require('../package-manager/executor'))).then((mod) => mod.default(options)),
+};
+BuiltinTaskExecutor.RepositoryInitializer = {
+ name: options_2.RepositoryInitializerName,
+ create: (options) => Promise.resolve().then(() => __importStar(require('../repo-init/executor'))).then((mod) => mod.default(options)),
+};
+BuiltinTaskExecutor.RunSchematic = {
+ name: options_3.RunSchematicName,
+ create: () => Promise.resolve().then(() => __importStar(require('../run-schematic/executor'))).then((mod) => mod.default()),
+};
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.d.ts
new file mode 100644
index 00000000..4fa6cca4
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.d.ts
@@ -0,0 +1,14 @@
+/**
+ * @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
+ */
+import { BaseException } from '@angular-devkit/core';
+import { TaskExecutor } from '../../src';
+import { NodePackageTaskFactoryOptions, NodePackageTaskOptions } from './options';
+export declare class UnknownPackageManagerException extends BaseException {
+ constructor(name: string);
+}
+export default function (factoryOptions?: NodePackageTaskFactoryOptions): TaskExecutor<NodePackageTaskOptions>;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.js
new file mode 100644
index 00000000..bc656111
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.js
@@ -0,0 +1,144 @@
+"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
+ */
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.UnknownPackageManagerException = void 0;
+const core_1 = require("@angular-devkit/core");
+const child_process_1 = require("child_process");
+const ora_1 = __importDefault(require("ora"));
+const path = __importStar(require("path"));
+const rxjs_1 = require("rxjs");
+const src_1 = require("../../src");
+const packageManagers = {
+ 'npm': {
+ quietArgument: '--quiet',
+ commands: {
+ installAll: 'install',
+ installPackage: 'install',
+ },
+ },
+ 'cnpm': {
+ commands: {
+ installAll: 'install',
+ installPackage: 'install',
+ },
+ },
+ 'yarn': {
+ quietArgument: '--silent',
+ commands: {
+ installPackage: 'add',
+ },
+ },
+ 'pnpm': {
+ quietArgument: '--silent',
+ commands: {
+ installAll: 'install',
+ installPackage: 'install',
+ },
+ },
+};
+class UnknownPackageManagerException extends core_1.BaseException {
+ constructor(name) {
+ super(`Unknown package manager "${name}".`);
+ }
+}
+exports.UnknownPackageManagerException = UnknownPackageManagerException;
+function default_1(factoryOptions = {}) {
+ const packageManagerName = factoryOptions.packageManager || 'npm';
+ const packageManagerProfile = packageManagers[packageManagerName];
+ if (!packageManagerProfile) {
+ throw new UnknownPackageManagerException(packageManagerName);
+ }
+ const rootDirectory = factoryOptions.rootDirectory || process.cwd();
+ return (options = { command: 'install' }) => {
+ let taskPackageManagerProfile = packageManagerProfile;
+ let taskPackageManagerName = packageManagerName;
+ if (factoryOptions.allowPackageManagerOverride && options.packageManager) {
+ taskPackageManagerProfile = packageManagers[options.packageManager];
+ if (!taskPackageManagerProfile) {
+ throw new UnknownPackageManagerException(options.packageManager);
+ }
+ taskPackageManagerName = options.packageManager;
+ }
+ const bufferedOutput = [];
+ const spawnOptions = {
+ stdio: options.hideOutput ? 'pipe' : 'inherit',
+ shell: true,
+ cwd: path.join(rootDirectory, options.workingDirectory || ''),
+ };
+ const args = [];
+ if (options.packageName) {
+ if (options.command === 'install') {
+ args.push(taskPackageManagerProfile.commands.installPackage);
+ }
+ args.push(options.packageName);
+ }
+ else if (options.command === 'install' && taskPackageManagerProfile.commands.installAll) {
+ args.push(taskPackageManagerProfile.commands.installAll);
+ }
+ if (options.quiet && taskPackageManagerProfile.quietArgument) {
+ args.push(taskPackageManagerProfile.quietArgument);
+ }
+ if (factoryOptions.registry) {
+ args.push(`--registry="${factoryOptions.registry}"`);
+ }
+ if (factoryOptions.force) {
+ args.push('--force');
+ }
+ return new rxjs_1.Observable((obs) => {
+ var _a, _b;
+ const spinner = (0, ora_1.default)({
+ text: `Installing packages (${taskPackageManagerName})...`,
+ // Workaround for https://github.com/sindresorhus/ora/issues/136.
+ discardStdin: process.platform != 'win32',
+ }).start();
+ const childProcess = (0, child_process_1.spawn)(taskPackageManagerName, args, spawnOptions).on('close', (code) => {
+ if (code === 0) {
+ spinner.succeed('Packages installed successfully.');
+ spinner.stop();
+ obs.next();
+ obs.complete();
+ }
+ else {
+ if (options.hideOutput) {
+ bufferedOutput.forEach(({ stream, data }) => stream.write(data));
+ }
+ spinner.fail('Package install failed, see above.');
+ obs.error(new src_1.UnsuccessfulWorkflowExecution());
+ }
+ });
+ if (options.hideOutput) {
+ (_a = childProcess.stdout) === null || _a === void 0 ? void 0 : _a.on('data', (data) => bufferedOutput.push({ stream: process.stdout, data: data }));
+ (_b = childProcess.stderr) === null || _b === void 0 ? void 0 : _b.on('data', (data) => bufferedOutput.push({ stream: process.stderr, data: data }));
+ }
+ });
+ };
+}
+exports.default = default_1;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.d.ts
new file mode 100644
index 00000000..69924a69
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.d.ts
@@ -0,0 +1,27 @@
+/**
+ * @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
+ */
+import { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
+import { NodePackageTaskOptions } from './options';
+interface NodePackageInstallTaskOptions {
+ packageManager?: string;
+ packageName?: string;
+ workingDirectory?: string;
+ quiet?: boolean;
+ hideOutput?: boolean;
+}
+export declare class NodePackageInstallTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
+ quiet: boolean;
+ hideOutput: boolean;
+ workingDirectory?: string;
+ packageManager?: string;
+ packageName?: string;
+ constructor(workingDirectory?: string);
+ constructor(options: NodePackageInstallTaskOptions);
+ toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
+}
+export {};
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.js
new file mode 100644
index 00000000..ae02887b
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.js
@@ -0,0 +1,51 @@
+"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 });
+exports.NodePackageInstallTask = void 0;
+const options_1 = require("./options");
+class NodePackageInstallTask {
+ constructor(options) {
+ this.quiet = true;
+ this.hideOutput = true;
+ if (typeof options === 'string') {
+ this.workingDirectory = options;
+ }
+ else if (typeof options === 'object') {
+ if (options.quiet != undefined) {
+ this.quiet = options.quiet;
+ }
+ if (options.hideOutput != undefined) {
+ this.hideOutput = options.hideOutput;
+ }
+ if (options.workingDirectory != undefined) {
+ this.workingDirectory = options.workingDirectory;
+ }
+ if (options.packageManager != undefined) {
+ this.packageManager = options.packageManager;
+ }
+ if (options.packageName != undefined) {
+ this.packageName = options.packageName;
+ }
+ }
+ }
+ toConfiguration() {
+ return {
+ name: options_1.NodePackageName,
+ options: {
+ command: 'install',
+ quiet: this.quiet,
+ hideOutput: this.hideOutput,
+ workingDirectory: this.workingDirectory,
+ packageManager: this.packageManager,
+ packageName: this.packageName,
+ },
+ };
+ }
+}
+exports.NodePackageInstallTask = NodePackageInstallTask;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.d.ts
new file mode 100644
index 00000000..c7d2b63c
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.d.ts
@@ -0,0 +1,16 @@
+/**
+ * @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
+ */
+import { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
+import { NodePackageTaskOptions } from './options';
+export declare class NodePackageLinkTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
+ packageName?: string | undefined;
+ workingDirectory?: string | undefined;
+ quiet: boolean;
+ constructor(packageName?: string | undefined, workingDirectory?: string | undefined);
+ toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.js
new file mode 100644
index 00000000..2518b4cb
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.js
@@ -0,0 +1,30 @@
+"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 });
+exports.NodePackageLinkTask = void 0;
+const options_1 = require("./options");
+class NodePackageLinkTask {
+ constructor(packageName, workingDirectory) {
+ this.packageName = packageName;
+ this.workingDirectory = workingDirectory;
+ this.quiet = true;
+ }
+ toConfiguration() {
+ return {
+ name: options_1.NodePackageName,
+ options: {
+ command: 'link',
+ quiet: this.quiet,
+ workingDirectory: this.workingDirectory,
+ packageName: this.packageName,
+ },
+ };
+ }
+}
+exports.NodePackageLinkTask = NodePackageLinkTask;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.d.ts
new file mode 100644
index 00000000..60c1253f
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.d.ts
@@ -0,0 +1,23 @@
+/**
+ * @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
+ */
+export declare const NodePackageName = "node-package";
+export interface NodePackageTaskFactoryOptions {
+ rootDirectory?: string;
+ packageManager?: string;
+ allowPackageManagerOverride?: boolean;
+ registry?: string;
+ force?: boolean;
+}
+export interface NodePackageTaskOptions {
+ command: string;
+ quiet?: boolean;
+ hideOutput?: boolean;
+ workingDirectory?: string;
+ packageName?: string;
+ packageManager?: string;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.js
new file mode 100644
index 00000000..3b33121f
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.js
@@ -0,0 +1,11 @@
+"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 });
+exports.NodePackageName = void 0;
+exports.NodePackageName = 'node-package';
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package.json b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package.json
new file mode 100644
index 00000000..075ac40a
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package.json
@@ -0,0 +1,5 @@
+{
+ "name": "@angular-devkit/schematics/tasks",
+ "main": "index.js",
+ "typings": "index.d.ts"
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.d.ts
new file mode 100644
index 00000000..e412a64b
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.d.ts
@@ -0,0 +1,10 @@
+/**
+ * @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
+ */
+import { TaskExecutor } from '../../src';
+import { RepositoryInitializerTaskFactoryOptions, RepositoryInitializerTaskOptions } from './options';
+export default function (factoryOptions?: RepositoryInitializerTaskFactoryOptions): TaskExecutor<RepositoryInitializerTaskOptions>;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.js
new file mode 100644
index 00000000..4acf4f56
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.js
@@ -0,0 +1,90 @@
+"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
+ */
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const core_1 = require("@angular-devkit/core");
+const child_process_1 = require("child_process");
+const path = __importStar(require("path"));
+function default_1(factoryOptions = {}) {
+ const rootDirectory = factoryOptions.rootDirectory || process.cwd();
+ return async (options = {}, context) => {
+ const authorName = options.authorName;
+ const authorEmail = options.authorEmail;
+ const execute = (args, ignoreErrorStream) => {
+ const outputStream = 'ignore';
+ const errorStream = ignoreErrorStream ? 'ignore' : process.stderr;
+ const spawnOptions = {
+ stdio: [process.stdin, outputStream, errorStream],
+ shell: true,
+ cwd: path.join(rootDirectory, options.workingDirectory || ''),
+ env: {
+ ...process.env,
+ ...(authorName ? { GIT_AUTHOR_NAME: authorName, GIT_COMMITTER_NAME: authorName } : {}),
+ ...(authorEmail
+ ? { GIT_AUTHOR_EMAIL: authorEmail, GIT_COMMITTER_EMAIL: authorEmail }
+ : {}),
+ },
+ };
+ return new Promise((resolve, reject) => {
+ (0, child_process_1.spawn)('git', args, spawnOptions).on('close', (code) => {
+ if (code === 0) {
+ resolve();
+ }
+ else {
+ reject(code);
+ }
+ });
+ });
+ };
+ const hasCommand = await execute(['--version']).then(() => true, () => false);
+ if (!hasCommand) {
+ return;
+ }
+ const insideRepo = await execute(['rev-parse', '--is-inside-work-tree'], true).then(() => true, () => false);
+ if (insideRepo) {
+ context.logger.info(core_1.tags.oneLine `
+ Directory is already under version control.
+ Skipping initialization of git.
+ `);
+ return;
+ }
+ // if git is not found or an error was thrown during the `git`
+ // init process just swallow any errors here
+ // NOTE: This will be removed once task error handling is implemented
+ try {
+ await execute(['init']);
+ await execute(['add', '.']);
+ if (options.commit) {
+ const message = options.message || 'initial commit';
+ await execute(['commit', `-m "${message}"`]);
+ }
+ context.logger.info('Successfully initialized git.');
+ }
+ catch { }
+ };
+}
+exports.default = default_1;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.d.ts
new file mode 100644
index 00000000..08fd4040
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.d.ts
@@ -0,0 +1,20 @@
+/**
+ * @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
+ */
+import { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
+import { RepositoryInitializerTaskOptions } from './options';
+export interface CommitOptions {
+ message?: string;
+ name?: string;
+ email?: string;
+}
+export declare class RepositoryInitializerTask implements TaskConfigurationGenerator<RepositoryInitializerTaskOptions> {
+ workingDirectory?: string | undefined;
+ commitOptions?: CommitOptions | undefined;
+ constructor(workingDirectory?: string | undefined, commitOptions?: CommitOptions | undefined);
+ toConfiguration(): TaskConfiguration<RepositoryInitializerTaskOptions>;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.js
new file mode 100644
index 00000000..8809b29f
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.js
@@ -0,0 +1,30 @@
+"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 });
+exports.RepositoryInitializerTask = void 0;
+const options_1 = require("./options");
+class RepositoryInitializerTask {
+ constructor(workingDirectory, commitOptions) {
+ this.workingDirectory = workingDirectory;
+ this.commitOptions = commitOptions;
+ }
+ toConfiguration() {
+ return {
+ name: options_1.RepositoryInitializerName,
+ options: {
+ commit: !!this.commitOptions,
+ workingDirectory: this.workingDirectory,
+ authorName: this.commitOptions && this.commitOptions.name,
+ authorEmail: this.commitOptions && this.commitOptions.email,
+ message: this.commitOptions && this.commitOptions.message,
+ },
+ };
+ }
+}
+exports.RepositoryInitializerTask = RepositoryInitializerTask;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.d.ts
new file mode 100644
index 00000000..93816617
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @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
+ */
+export declare const RepositoryInitializerName = "repo-init";
+export interface RepositoryInitializerTaskFactoryOptions {
+ rootDirectory?: string;
+}
+export interface RepositoryInitializerTaskOptions {
+ workingDirectory?: string;
+ commit?: boolean;
+ message?: string;
+ authorName?: string;
+ authorEmail?: string;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.js
new file mode 100644
index 00000000..2185b470
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.js
@@ -0,0 +1,11 @@
+"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 });
+exports.RepositoryInitializerName = void 0;
+exports.RepositoryInitializerName = 'repo-init';
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.d.ts
new file mode 100644
index 00000000..f445760e
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.d.ts
@@ -0,0 +1,10 @@
+/**
+ * @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
+ */
+import { TaskExecutor } from '../../src';
+import { RunSchematicTaskOptions } from './options';
+export default function (): TaskExecutor<RunSchematicTaskOptions<{}>>;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.js
new file mode 100644
index 00000000..9b93e152
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.js
@@ -0,0 +1,29 @@
+"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 });
+function default_1() {
+ return (options, context) => {
+ if (!(options === null || options === void 0 ? void 0 : options.name)) {
+ throw new Error('RunSchematicTask requires an options object with a non-empty name property.');
+ }
+ const maybeWorkflow = context.engine.workflow;
+ const collection = options.collection || context.schematic.collection.description.name;
+ if (!maybeWorkflow) {
+ throw new Error('Need Workflow to support executing schematics as post tasks.');
+ }
+ return maybeWorkflow.execute({
+ collection: collection,
+ schematic: options.name,
+ options: options.options,
+ // Allow private when calling from the same collection.
+ allowPrivate: collection == context.schematic.collection.description.name,
+ });
+ };
+}
+exports.default = default_1;
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.d.ts
new file mode 100644
index 00000000..1dca95da
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.d.ts
@@ -0,0 +1,13 @@
+/**
+ * @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
+ */
+export declare const RunSchematicName = "run-schematic";
+export interface RunSchematicTaskOptions<T> {
+ collection: string | null;
+ name: string;
+ options: T;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.js
new file mode 100644
index 00000000..d77ec6a6
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.js
@@ -0,0 +1,11 @@
+"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 });
+exports.RunSchematicName = void 0;
+exports.RunSchematicName = 'run-schematic';
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.d.ts
new file mode 100644
index 00000000..2ff0e5bf
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @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
+ */
+import { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
+import { RunSchematicTaskOptions } from './options';
+export declare class RunSchematicTask<T> implements TaskConfigurationGenerator<RunSchematicTaskOptions<T>> {
+ protected _collection: string | null;
+ protected _schematic: string;
+ protected _options: T;
+ constructor(s: string, o: T);
+ constructor(c: string, s: string, o: T);
+ toConfiguration(): TaskConfiguration<RunSchematicTaskOptions<T>>;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.js
new file mode 100644
index 00000000..595848b5
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.js
@@ -0,0 +1,34 @@
+"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 });
+exports.RunSchematicTask = void 0;
+const options_1 = require("./options");
+class RunSchematicTask {
+ constructor(c, s, o) {
+ if (arguments.length == 2 || typeof s !== 'string') {
+ o = s;
+ s = c;
+ c = null;
+ }
+ this._collection = c;
+ this._schematic = s;
+ this._options = o;
+ }
+ toConfiguration() {
+ return {
+ name: options_1.RunSchematicName,
+ options: {
+ collection: this._collection,
+ name: this._schematic,
+ options: this._options,
+ },
+ };
+ }
+}
+exports.RunSchematicTask = RunSchematicTask;