UNPKG

944 BJavaScriptView Raw
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.RunSchematicTask = void 0;
11const options_1 = require("./options");
12class RunSchematicTask {
13 constructor(c, s, o) {
14 if (arguments.length == 2 || typeof s !== 'string') {
15 o = s;
16 s = c;
17 c = null;
18 }
19 this._collection = c;
20 this._schematic = s;
21 this._options = o;
22 }
23 toConfiguration() {
24 return {
25 name: options_1.RunSchematicName,
26 options: {
27 collection: this._collection,
28 name: this._schematic,
29 options: this._options,
30 },
31 };
32 }
33}
34exports.RunSchematicTask = RunSchematicTask;