task.js 707 B

1234567891011121314151617181920212223242526
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const options_1 = require("./options");
  4. class RunSchematicTask {
  5. constructor(c, s, o) {
  6. if (arguments.length == 2 || typeof s !== 'string') {
  7. o = s;
  8. s = c;
  9. c = null;
  10. }
  11. this._collection = c;
  12. this._schematic = s;
  13. this._options = o;
  14. }
  15. toConfiguration() {
  16. return {
  17. name: options_1.RunSchematicName,
  18. options: {
  19. collection: this._collection,
  20. name: this._schematic,
  21. options: this._options,
  22. },
  23. };
  24. }
  25. }
  26. exports.RunSchematicTask = RunSchematicTask;