diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks')
27 files changed, 0 insertions, 772 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 deleted file mode 100644 index 09f1ba24..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -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 deleted file mode 100644 index 36c11571..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @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 deleted file mode 100644 index d43e7a11..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"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 deleted file mode 100644 index 230f2f37..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/BUILD.bazel +++ /dev/null @@ -1,32 +0,0 @@ -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 deleted file mode 100644 index 0bebe160..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @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 deleted file mode 100644 index 54120661..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/node/index.js +++ /dev/null @@ -1,47 +0,0 @@ -"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 deleted file mode 100644 index 4fa6cca4..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @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 deleted file mode 100644 index bc656111..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.js +++ /dev/null @@ -1,144 +0,0 @@ -"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 deleted file mode 100644 index 69924a69..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @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 deleted file mode 100644 index ae02887b..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/install-task.js +++ /dev/null @@ -1,51 +0,0 @@ -"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 deleted file mode 100644 index c7d2b63c..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @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 deleted file mode 100644 index 2518b4cb..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/link-task.js +++ /dev/null @@ -1,30 +0,0 @@ -"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 deleted file mode 100644 index 60c1253f..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @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 deleted file mode 100644 index 3b33121f..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package-manager/options.js +++ /dev/null @@ -1,11 +0,0 @@ -"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 deleted file mode 100644 index 075ac40a..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "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 deleted file mode 100644 index e412a64b..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @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 deleted file mode 100644 index 4acf4f56..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/executor.js +++ /dev/null @@ -1,90 +0,0 @@ -"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 deleted file mode 100644 index 08fd4040..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @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 deleted file mode 100644 index 8809b29f..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/init-task.js +++ /dev/null @@ -1,30 +0,0 @@ -"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 deleted file mode 100644 index 93816617..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @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 deleted file mode 100644 index 2185b470..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/repo-init/options.js +++ /dev/null @@ -1,11 +0,0 @@ -"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 deleted file mode 100644 index f445760e..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @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 deleted file mode 100644 index 9b93e152..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/executor.js +++ /dev/null @@ -1,29 +0,0 @@ -"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 deleted file mode 100644 index 1dca95da..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @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 deleted file mode 100644 index d77ec6a6..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/options.js +++ /dev/null @@ -1,11 +0,0 @@ -"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 deleted file mode 100644 index 2ff0e5bf..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @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 deleted file mode 100644 index 595848b5..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic/task.js +++ /dev/null @@ -1,34 +0,0 @@ -"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; |