task.js 992 B

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