diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tasks/run-schematic')
6 files changed, 114 insertions, 0 deletions
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;  | 
