@catladder/cli 0.0.0-next-e7541a00 → 0.0.0-next-16388362

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,6 @@ const writeDotEnvFiles_1 = __nccwpck_require__(5614);
17
17
  const writeEnvDTs_1 = __nccwpck_require__(8832);
18
18
  const pipeline_1 = __nccwpck_require__(241);
19
19
  exports["default"] = async (choice, options) => {
20
- var _a;
21
20
  const config = await (0, getProjectConfig_1.getProjectConfig)();
22
21
  if (!config) {
23
22
  return;
@@ -26,7 +25,7 @@ exports["default"] = async (choice, options) => {
26
25
  if (options === null || options === void 0 ? void 0 : options.verbose) {
27
26
  (0, verboseBanner_1.printVerboseBanner)();
28
27
  }
29
- await Promise.all([(0, pipeline_1.generatePipelineFiles)(context, (_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab"), (0, writeDotEnvFiles_1.writeDotEnvFiles)(context, choice), (0, writeEnvDTs_1.writeDTsFiles)(context, choice), (options === null || options === void 0 ? void 0 : options.printVariables) ? (0, printVariables_1.printVariables)(context, choice) : Promise.resolve()]);
28
+ await Promise.all([(0, pipeline_1.generatePipelineFiles)(context), (0, writeDotEnvFiles_1.writeDotEnvFiles)(context, choice), (0, writeEnvDTs_1.writeDTsFiles)(context, choice), (options === null || options === void 0 ? void 0 : options.printVariables) ? (0, printVariables_1.printVariables)(context, choice) : Promise.resolve()]);
30
29
  };
31
30
 
32
31
  /***/ }),
@@ -1687,7 +1686,7 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
1687
1686
  Object.defineProperty(exports, "__esModule", ({
1688
1687
  value: true
1689
1688
  }));
1690
- exports.getPipelineBackend = void 0;
1689
+ exports.getEnabledPipelineTypes = exports.getPipelineBackend = void 0;
1691
1690
  const gitlab_1 = __nccwpck_require__(8475);
1692
1691
  __exportStar(__nccwpck_require__(2474), exports);
1693
1692
  __exportStar(__nccwpck_require__(8475), exports);
@@ -1702,6 +1701,25 @@ const getPipelineBackend = type => {
1702
1701
  return createBackend();
1703
1702
  };
1704
1703
  exports.getPipelineBackend = getPipelineBackend;
1704
+ /**
1705
+ * the pipeline types enabled for this config. Multiple types can be
1706
+ * enabled at once (parallel generation, e.g. during a CI migration).
1707
+ */
1708
+ const getEnabledPipelineTypes = config => {
1709
+ var _a;
1710
+ if (config.pipelines) {
1711
+ const enabled = Object.keys(BACKENDS).filter(type => {
1712
+ var _a;
1713
+ return (_a = config.pipelines) === null || _a === void 0 ? void 0 : _a[type];
1714
+ });
1715
+ if (enabled.length === 0) {
1716
+ throw new Error("`pipelines` is configured, but no pipeline type is enabled");
1717
+ }
1718
+ return enabled;
1719
+ }
1720
+ return [(_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab"];
1721
+ };
1722
+ exports.getEnabledPipelineTypes = getEnabledPipelineTypes;
1705
1723
 
1706
1724
  /***/ }),
1707
1725
 
@@ -3647,7 +3665,7 @@ Object.defineProperty(exports, "__esModule", ({
3647
3665
  value: true
3648
3666
  }));
3649
3667
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
3650
- exports.PIPELINE_IMAGE_TAG = "next-e7541a00" || 0;
3668
+ exports.PIPELINE_IMAGE_TAG = "next-16388362" || 0;
3651
3669
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
3652
3670
 
3653
3671
  /***/ }),
@@ -7390,8 +7408,19 @@ const promises_1 = __nccwpck_require__(1943);
7390
7408
  const path_1 = __nccwpck_require__(6928);
7391
7409
  const backends_1 = __nccwpck_require__(3243);
7392
7410
  const gitlab_1 = __nccwpck_require__(8475);
7411
+ /**
7412
+ * generates the pipeline files of all pipeline types enabled in the
7413
+ * config (see `pipelines`). Pass an explicit `pipelineType` to generate
7414
+ * only that one.
7415
+ */
7393
7416
  async function generatePipelineFiles(context, pipelineType) {
7394
- const backend = (0, backends_1.getPipelineBackend)(pipelineType);
7417
+ const pipelineTypes = pipelineType ? [pipelineType] : (0, backends_1.getEnabledPipelineTypes)(context.config);
7418
+ for (const type of pipelineTypes) {
7419
+ await generatePipelineFilesForBackend(context, (0, backends_1.getPipelineBackend)(type));
7420
+ }
7421
+ }
7422
+ exports.generatePipelineFiles = generatePipelineFiles;
7423
+ async function generatePipelineFilesForBackend(context, backend) {
7395
7424
  const files = await backend.createFiles(context.config);
7396
7425
  // first clean up the folder
7397
7426
  await (0, promises_1.rm)(backend.generatedFolder, {
@@ -7409,7 +7438,6 @@ async function generatePipelineFiles(context, pipelineType) {
7409
7438
  await context.fileWriter.writeYamlfile(path, content);
7410
7439
  }));
7411
7440
  }
7412
- exports.generatePipelineFiles = generatePipelineFiles;
7413
7441
  /**
7414
7442
  *
7415
7443
  * for testing purposes
@@ -6584,7 +6584,7 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
6584
6584
  Object.defineProperty(exports, "__esModule", ({
6585
6585
  value: true
6586
6586
  }));
6587
- exports.getPipelineBackend = void 0;
6587
+ exports.getEnabledPipelineTypes = exports.getPipelineBackend = void 0;
6588
6588
  const gitlab_1 = __nccwpck_require__(8475);
6589
6589
  __exportStar(__nccwpck_require__(92474), exports);
6590
6590
  __exportStar(__nccwpck_require__(8475), exports);
@@ -6599,6 +6599,25 @@ const getPipelineBackend = type => {
6599
6599
  return createBackend();
6600
6600
  };
6601
6601
  exports.getPipelineBackend = getPipelineBackend;
6602
+ /**
6603
+ * the pipeline types enabled for this config. Multiple types can be
6604
+ * enabled at once (parallel generation, e.g. during a CI migration).
6605
+ */
6606
+ const getEnabledPipelineTypes = config => {
6607
+ var _a;
6608
+ if (config.pipelines) {
6609
+ const enabled = Object.keys(BACKENDS).filter(type => {
6610
+ var _a;
6611
+ return (_a = config.pipelines) === null || _a === void 0 ? void 0 : _a[type];
6612
+ });
6613
+ if (enabled.length === 0) {
6614
+ throw new Error("`pipelines` is configured, but no pipeline type is enabled");
6615
+ }
6616
+ return enabled;
6617
+ }
6618
+ return [(_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab"];
6619
+ };
6620
+ exports.getEnabledPipelineTypes = getEnabledPipelineTypes;
6602
6621
 
6603
6622
  /***/ }),
6604
6623
 
@@ -8544,7 +8563,7 @@ Object.defineProperty(exports, "__esModule", ({
8544
8563
  value: true
8545
8564
  }));
8546
8565
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
8547
- exports.PIPELINE_IMAGE_TAG = "next-e7541a00" || 0;
8566
+ exports.PIPELINE_IMAGE_TAG = "next-16388362" || 0;
8548
8567
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
8549
8568
 
8550
8569
  /***/ }),
@@ -12287,8 +12306,19 @@ const promises_1 = __nccwpck_require__(91943);
12287
12306
  const path_1 = __nccwpck_require__(16928);
12288
12307
  const backends_1 = __nccwpck_require__(93243);
12289
12308
  const gitlab_1 = __nccwpck_require__(8475);
12309
+ /**
12310
+ * generates the pipeline files of all pipeline types enabled in the
12311
+ * config (see `pipelines`). Pass an explicit `pipelineType` to generate
12312
+ * only that one.
12313
+ */
12290
12314
  async function generatePipelineFiles(context, pipelineType) {
12291
- const backend = (0, backends_1.getPipelineBackend)(pipelineType);
12315
+ const pipelineTypes = pipelineType ? [pipelineType] : (0, backends_1.getEnabledPipelineTypes)(context.config);
12316
+ for (const type of pipelineTypes) {
12317
+ await generatePipelineFilesForBackend(context, (0, backends_1.getPipelineBackend)(type));
12318
+ }
12319
+ }
12320
+ exports.generatePipelineFiles = generatePipelineFiles;
12321
+ async function generatePipelineFilesForBackend(context, backend) {
12292
12322
  const files = await backend.createFiles(context.config);
12293
12323
  // first clean up the folder
12294
12324
  await (0, promises_1.rm)(backend.generatedFolder, {
@@ -12306,7 +12336,6 @@ async function generatePipelineFiles(context, pipelineType) {
12306
12336
  await context.fileWriter.writeYamlfile(path, content);
12307
12337
  }));
12308
12338
  }
12309
- exports.generatePipelineFiles = generatePipelineFiles;
12310
12339
  /**
12311
12340
  *
12312
12341
  * for testing purposes
@@ -10,7 +10,6 @@ const writeDotEnvFiles_1 = require("./writeDotEnvFiles");
10
10
  const writeEnvDTs_1 = require("./writeEnvDTs");
11
11
  const pipeline_1 = require("../../../../pipeline/src/index.js");
12
12
  exports.default = async (choice, options) => {
13
- var _a;
14
13
  const config = await (0, getProjectConfig_1.getProjectConfig)();
15
14
  if (!config) {
16
15
  return;
@@ -19,5 +18,5 @@ exports.default = async (choice, options) => {
19
18
  if (options === null || options === void 0 ? void 0 : options.verbose) {
20
19
  (0, verboseBanner_1.printVerboseBanner)();
21
20
  }
22
- await Promise.all([(0, pipeline_1.generatePipelineFiles)(context, (_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab"), (0, writeDotEnvFiles_1.writeDotEnvFiles)(context, choice), (0, writeEnvDTs_1.writeDTsFiles)(context, choice), (options === null || options === void 0 ? void 0 : options.printVariables) ? (0, printVariables_1.printVariables)(context, choice) : Promise.resolve()]);
21
+ await Promise.all([(0, pipeline_1.generatePipelineFiles)(context), (0, writeDotEnvFiles_1.writeDotEnvFiles)(context, choice), (0, writeEnvDTs_1.writeDTsFiles)(context, choice), (options === null || options === void 0 ? void 0 : options.printVariables) ? (0, printVariables_1.printVariables)(context, choice) : Promise.resolve()]);
23
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"catenv.js","sourceRoot":"","sources":["../../../../../src/apps/catenv/catenv.ts"],"names":[],"mappings":";;AAAA,oEAAiE;AACjE,qDAAkD;AAElD,mDAAqD;AACrD,yDAAsD;AACtD,+CAA8C;AAC9C,kDAG6B;AAM7B,kBAAe,KAAK,EAAE,MAAe,EAAE,OAAiB,EAAE,EAAE;;IAC1D,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,8BAAmB,EAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,CAAC;QACrB,IAAA,kCAAkB,GAAE,CAAC;IACvB,CAAC;IAED,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,gCAAqB,EAAC,OAAO,EAAE,MAAA,MAAM,CAAC,YAAY,mCAAI,QAAQ,CAAC;QAC/D,IAAA,mCAAgB,EAAC,OAAO,EAAE,MAAM,CAAC;QAEjC,IAAA,2BAAa,EAAC,OAAO,EAAE,MAAM,CAAC;QAC9B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;YACrB,CAAC,CAAC,IAAA,+BAAc,EAAC,OAAO,EAAE,MAAM,CAAC;YACjC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE;KACtB,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"catenv.js","sourceRoot":"","sources":["../../../../../src/apps/catenv/catenv.ts"],"names":[],"mappings":";;AAAA,oEAAiE;AACjE,qDAAkD;AAElD,mDAAqD;AACrD,yDAAsD;AACtD,+CAA8C;AAC9C,kDAG6B;AAM7B,kBAAe,KAAK,EAAE,MAAe,EAAE,OAAiB,EAAE,EAAE;IAC1D,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,8BAAmB,EAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,CAAC;QACrB,IAAA,kCAAkB,GAAE,CAAC;IACvB,CAAC;IAED,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,gCAAqB,EAAC,OAAO,CAAC;QAC9B,IAAA,mCAAgB,EAAC,OAAO,EAAE,MAAM,CAAC;QAEjC,IAAA,2BAAa,EAAC,OAAO,EAAE,MAAM,CAAC;QAC9B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;YACrB,CAAC,CAAC,IAAA,+BAAc,EAAC,OAAO,EAAE,MAAM,CAAC;YACjC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE;KACtB,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,5 +1,10 @@
1
- import type { PipelineType } from "../types";
1
+ import type { Config, PipelineType } from "../types";
2
2
  import type { PipelineBackend } from "./types";
3
3
  export * from "./types";
4
4
  export * from "./gitlab";
5
- export declare const getPipelineBackend: (type: PipelineType) => PipelineBackend;
5
+ export declare const getPipelineBackend: (type: PipelineType) => PipelineBackend;
6
+ /**
7
+ * the pipeline types enabled for this config. Multiple types can be
8
+ * enabled at once (parallel generation, e.g. during a CI migration).
9
+ */
10
+ export declare const getEnabledPipelineTypes: (config: Config) => PipelineType[];
@@ -22,7 +22,7 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
22
22
  Object.defineProperty(exports, "__esModule", {
23
23
  value: true
24
24
  });
25
- exports.getPipelineBackend = void 0;
25
+ exports.getEnabledPipelineTypes = exports.getPipelineBackend = void 0;
26
26
  const gitlab_1 = require("./gitlab");
27
27
  __exportStar(require("./types"), exports);
28
28
  __exportStar(require("./gitlab"), exports);
@@ -36,4 +36,23 @@ const getPipelineBackend = type => {
36
36
  }
37
37
  return createBackend();
38
38
  };
39
- exports.getPipelineBackend = getPipelineBackend;
39
+ exports.getPipelineBackend = getPipelineBackend;
40
+ /**
41
+ * the pipeline types enabled for this config. Multiple types can be
42
+ * enabled at once (parallel generation, e.g. during a CI migration).
43
+ */
44
+ const getEnabledPipelineTypes = config => {
45
+ var _a;
46
+ if (config.pipelines) {
47
+ const enabled = Object.keys(BACKENDS).filter(type => {
48
+ var _a;
49
+ return (_a = config.pipelines) === null || _a === void 0 ? void 0 : _a[type];
50
+ });
51
+ if (enabled.length === 0) {
52
+ throw new Error("`pipelines` is configured, but no pipeline type is enabled");
53
+ }
54
+ return enabled;
55
+ }
56
+ return [(_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab"];
57
+ };
58
+ exports.getEnabledPipelineTypes = getEnabledPipelineTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../pipeline/src/backends/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qCAAyC;AAGzC,0CAAwB;AACxB,2CAAyB;AAEzB,MAAM,QAAQ,GAAmD;IAC/D,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,sBAAa,EAAE;CAClC,CAAC;AAEK,MAAM,kBAAkB,GAAG,CAAC,IAAkB,EAAmB,EAAE;IACxE,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,gCAAgC,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,aAAa,EAAE,CAAC;AACzB,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../pipeline/src/backends/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qCAAyC;AAGzC,0CAAwB;AACxB,2CAAyB;AAEzB,MAAM,QAAQ,GAAmD;IAC/D,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,sBAAa,EAAE;CAClC,CAAC;AAEK,MAAM,kBAAkB,GAAG,CAAC,IAAkB,EAAmB,EAAE;IACxE,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,gCAAgC,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,aAAa,EAAE,CAAC;AACzB,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B;AAEF;;;GAGG;AACI,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAkB,EAAE;;IACxE,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,MAAM,OAAO,GAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAoB,CAAC,MAAM,CAC9D,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,MAAA,MAAM,CAAC,SAAS,0CAAG,IAAI,CAAC,CAAA,EAAA,CACnC,CAAC;QACF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;QACJ,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,CAAC,MAAA,MAAM,CAAC,YAAY,mCAAI,QAAQ,CAAC,CAAC;AAC3C,CAAC,CAAC;AAbW,QAAA,uBAAuB,2BAalC"}
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
7
- exports.PIPELINE_IMAGE_TAG = "next-e7541a00" || "latest";
7
+ exports.PIPELINE_IMAGE_TAG = "next-16388362" || "latest";
8
8
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || "git.panter.ch:5001/catladder/catladder";
@@ -1,6 +1,11 @@
1
1
  import type { Config, PipelineType } from "../types";
2
2
  import type { CatenvContext } from "../catenv";
3
- export declare function generatePipelineFiles<T extends PipelineType>(context: CatenvContext, pipelineType: T): Promise<void>;
3
+ /**
4
+ * generates the pipeline files of all pipeline types enabled in the
5
+ * config (see `pipelines`). Pass an explicit `pipelineType` to generate
6
+ * only that one.
7
+ */
8
+ export declare function generatePipelineFiles(context: CatenvContext, pipelineType?: PipelineType): Promise<void>;
4
9
  /**
5
10
  *
6
11
  * for testing purposes
@@ -8,8 +8,19 @@ const promises_1 = require("fs/promises");
8
8
  const path_1 = require("path");
9
9
  const backends_1 = require("../backends");
10
10
  const gitlab_1 = require("../backends/gitlab");
11
+ /**
12
+ * generates the pipeline files of all pipeline types enabled in the
13
+ * config (see `pipelines`). Pass an explicit `pipelineType` to generate
14
+ * only that one.
15
+ */
11
16
  async function generatePipelineFiles(context, pipelineType) {
12
- const backend = (0, backends_1.getPipelineBackend)(pipelineType);
17
+ const pipelineTypes = pipelineType ? [pipelineType] : (0, backends_1.getEnabledPipelineTypes)(context.config);
18
+ for (const type of pipelineTypes) {
19
+ await generatePipelineFilesForBackend(context, (0, backends_1.getPipelineBackend)(type));
20
+ }
21
+ }
22
+ exports.generatePipelineFiles = generatePipelineFiles;
23
+ async function generatePipelineFilesForBackend(context, backend) {
13
24
  const files = await backend.createFiles(context.config);
14
25
  // first clean up the folder
15
26
  await (0, promises_1.rm)(backend.generatedFolder, {
@@ -27,7 +38,6 @@ async function generatePipelineFiles(context, pipelineType) {
27
38
  await context.fileWriter.writeYamlfile(path, content);
28
39
  }));
29
40
  }
30
- exports.generatePipelineFiles = generatePipelineFiles;
31
41
  /**
32
42
  *
33
43
  * for testing purposes
@@ -1 +1 @@
1
- {"version":3,"file":"generatePipelineFiles.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/generatePipelineFiles.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AACxC,+BAA+B;AAG/B,0CAAiD;AACjD,+CAAmD;AAG5C,KAAK,UAAU,qBAAqB,CACzC,OAAsB,EACtB,YAAe;IAEf,MAAM,OAAO,GAAG,IAAA,6BAAkB,EAAC,YAAY,CAAC,CAAC;IAEjD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAExD,4BAA4B;IAC5B,MAAM,IAAA,aAAE,EAAC,OAAO,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACpE,cAAc;IACd,MAAM,OAAO,CAAC,GAAG,CACf,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,MAAM,IAAA,gBAAK,EAAC,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAjBD,sDAiBC;AAED;;;GAGG;AACI,KAAK,UAAU,yBAAyB,CAAC,MAAc;IAC5D,OAAO,IAAI,sBAAa,EAAE,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC;AAFD,8DAEC"}
1
+ {"version":3,"file":"generatePipelineFiles.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/generatePipelineFiles.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AACxC,+BAA+B;AAI/B,0CAA0E;AAC1E,+CAAmD;AAGnD;;;;GAIG;AACI,KAAK,UAAU,qBAAqB,CACzC,OAAsB,EACtB,YAA2B;IAE3B,MAAM,aAAa,GAAG,YAAY;QAChC,CAAC,CAAC,CAAC,YAAY,CAAC;QAChB,CAAC,CAAC,IAAA,kCAAuB,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5C,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;QACjC,MAAM,+BAA+B,CAAC,OAAO,EAAE,IAAA,6BAAkB,EAAC,IAAI,CAAC,CAAC,CAAC;IAC3E,CAAC;AACH,CAAC;AAXD,sDAWC;AAED,KAAK,UAAU,+BAA+B,CAC5C,OAAsB,EACtB,OAAwB;IAExB,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAExD,4BAA4B;IAC5B,MAAM,IAAA,aAAE,EAAC,OAAO,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACpE,cAAc;IACd,MAAM,OAAO,CAAC,GAAG,CACf,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,MAAM,IAAA,gBAAK,EAAC,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,yBAAyB,CAAC,MAAc;IAC5D,OAAO,IAAI,sBAAa,EAAE,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC;AAFD,8DAEC"}
@@ -152,11 +152,31 @@ export type ComponentConfig<C extends ConfigProps = never> = {
152
152
  export type ConfigProps = {
153
153
  CustomEnvs: string;
154
154
  };
155
+ /**
156
+ * per-pipeline-type options. Currently empty, but gives per-backend
157
+ * settings a home (e.g. output folder, workflow naming) later.
158
+ */
159
+ export type PipelineOutputOptions = Record<string, never>;
155
160
  export type Config<C extends ConfigProps = never> = {
156
161
  /**
157
162
  * the pipeline type to generate, defaults to gitlab
163
+ *
164
+ * @deprecated use `pipelines` instead
158
165
  */
159
166
  pipelineType?: PipelineType;
167
+ /**
168
+ * which pipelines to generate. Multiple pipeline types can be enabled
169
+ * at the same time (e.g. during a step-by-step migration from one CI
170
+ * system to another); each generates its own set of files.
171
+ *
172
+ * Defaults to `{ gitlab: true }` (or the deprecated `pipelineType`).
173
+ *
174
+ * @example
175
+ * pipelines: {
176
+ * gitlab: true,
177
+ * }
178
+ */
179
+ pipelines?: { [T in PipelineType]?: boolean | PipelineOutputOptions };
160
180
  /**
161
181
  * name of the customer or group
162
182
  */