@catladder/cli 0.0.0-main-7d749f5d → 0.0.0-main-4c899109

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.
Files changed (27) hide show
  1. package/dist/bundles/catenv/index.js +13 -116
  2. package/dist/bundles/cli/index.js +4 -107
  3. package/dist/cli/src/apps/catenv/catenv.js +1 -1
  4. package/dist/cli/src/apps/catenv/catenv.js.map +1 -1
  5. package/dist/pipeline/src/build/types.d.ts +3 -3
  6. package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +1 -1
  7. package/dist/pipeline/src/deploy/types/index.d.ts +3 -3
  8. package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +2 -21
  9. package/dist/pipeline/src/pipeline/generatePipelineFiles.js +2 -26
  10. package/dist/pipeline/src/pipeline/generatePipelineFiles.js.map +1 -1
  11. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +0 -2
  12. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +2 -4
  13. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js.map +1 -1
  14. package/dist/pipeline/src/pipeline/index.d.ts +0 -1
  15. package/dist/pipeline/src/pipeline/index.js +0 -1
  16. package/dist/pipeline/src/pipeline/index.js.map +1 -1
  17. package/dist/pipeline/src/types/config.d.ts +3 -3
  18. package/dist/pipeline/src/types/pipeline.d.ts +0 -1
  19. package/dist/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +1 -1
  21. package/src/apps/catenv/catenv.ts +1 -1
  22. package/dist/pipeline/src/pipeline/createChildPipeline.d.ts +0 -3
  23. package/dist/pipeline/src/pipeline/createChildPipeline.js +0 -30
  24. package/dist/pipeline/src/pipeline/createChildPipeline.js.map +0 -1
  25. package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.d.ts +0 -1
  26. package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.js +0 -32
  27. package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.js.map +0 -1
@@ -19,7 +19,7 @@ exports["default"] = async (choice) => {
19
19
  return;
20
20
  }
21
21
  await Promise.all([
22
- (0, pipeline_1.generatePipelineFiles)(config, (_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab", "local"),
22
+ (0, pipeline_1.generatePipelineFiles)(config, (_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab"),
23
23
  (0, writeDotEnvFiles_1.writeDotEnvFiles)(config, choice),
24
24
  (0, writeEnvDTs_1.writeDTsFiles)(config, choice),
25
25
  (0, printVariables_1.printVariables)(config, choice),
@@ -4095,7 +4095,7 @@ exports.getCloudRunDeployScripts = getCloudRunDeployScripts;
4095
4095
 
4096
4096
  /***/ }),
4097
4097
 
4098
- /***/ 3747:
4098
+ /***/ 8123:
4099
4099
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
4100
4100
 
4101
4101
  "use strict";
@@ -4145,7 +4145,7 @@ const base_1 = __nccwpck_require__(2024);
4145
4145
  const types_1 = __nccwpck_require__(5781);
4146
4146
  const constants_1 = __nccwpck_require__(8865);
4147
4147
  const getCloudRunDeployScripts_1 = __nccwpck_require__(3695);
4148
- const getCloudRunStopScripts_1 = __nccwpck_require__(3747);
4148
+ const getCloudRunStopScripts_1 = __nccwpck_require__(8123);
4149
4149
  const createGoogleCloudRunDeployJobs = (context) => {
4150
4150
  var _a;
4151
4151
  const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
@@ -5209,7 +5209,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
5209
5209
  exports.isOfDeployType = void 0;
5210
5210
  __exportStar(__nccwpck_require__(461), exports);
5211
5211
  __exportStar(__nccwpck_require__(6938), exports);
5212
- __exportStar(__nccwpck_require__(835), exports);
5212
+ __exportStar(__nccwpck_require__(8189), exports);
5213
5213
  __exportStar(__nccwpck_require__(282), exports);
5214
5214
  const isOfDeployType = (t, ...types) => {
5215
5215
  return t && types.includes(t.type) ? true : false;
@@ -5219,7 +5219,7 @@ exports.isOfDeployType = isOfDeployType;
5219
5219
 
5220
5220
  /***/ }),
5221
5221
 
5222
- /***/ 835:
5222
+ /***/ 8189:
5223
5223
  /***/ ((__unused_webpack_module, exports) => {
5224
5224
 
5225
5225
  "use strict";
@@ -5392,43 +5392,6 @@ exports.createAllJobs = createAllJobs;
5392
5392
 
5393
5393
  /***/ }),
5394
5394
 
5395
- /***/ 5139:
5396
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
5397
-
5398
- "use strict";
5399
-
5400
- Object.defineProperty(exports, "__esModule", ({ value: true }));
5401
- exports.createChildPipeline = void 0;
5402
- const rules_1 = __nccwpck_require__(7551);
5403
- const createAllJobs_1 = __nccwpck_require__(3579);
5404
- const getPipelineStages_1 = __nccwpck_require__(7585);
5405
- const createGitlabJobs_1 = __nccwpck_require__(8862);
5406
- const createGitlabPipeline_1 = __nccwpck_require__(6551);
5407
- const createChildPipeline = async (pipelineType, trigger, config) => {
5408
- const jobs = await (0, createAllJobs_1.createAllJobs)({
5409
- config,
5410
- trigger,
5411
- pipelineType,
5412
- });
5413
- const stages = (0, getPipelineStages_1.getPipelineStages)(config);
5414
- if (pipelineType === "gitlab") {
5415
- const gitlabJobs = await (0, createGitlabJobs_1.createGitlabJobs)(jobs);
5416
- return (0, createGitlabPipeline_1.createGitlabPipelineWithDefaults)({
5417
- workflow: {
5418
- rules: rules_1.RULES_ALWAYS,
5419
- },
5420
- stages,
5421
- jobs: Object.fromEntries(gitlabJobs.map(({ gitlabJob, name }) => [name, gitlabJob])),
5422
- variables: config.runnerVariables,
5423
- });
5424
- }
5425
- throw new Error(`${pipelineType} is not supported`);
5426
- };
5427
- exports.createChildPipeline = createChildPipeline;
5428
- //# sourceMappingURL=createChildPipeline.js.map
5429
-
5430
- /***/ }),
5431
-
5432
5395
  /***/ 2321:
5433
5396
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
5434
5397
 
@@ -5574,30 +5537,10 @@ function getGitlabRulesForTrigger(trigger) {
5574
5537
  "use strict";
5575
5538
 
5576
5539
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5577
- exports.generatePipelineFiles = exports.generateLocalPipelineContent = exports.generateChildPipelineContent = void 0;
5540
+ exports.generatePipelineFiles = exports.generateLocalPipelineContent = void 0;
5578
5541
  const writeFiles_1 = __nccwpck_require__(2228);
5579
- const createChildPipeline_1 = __nccwpck_require__(5139);
5580
5542
  const createMainPipeline_1 = __nccwpck_require__(9192);
5581
- const getPipelineTriggerForGitlabChildPipeline_1 = __nccwpck_require__(7426);
5582
5543
  const sortGitLabJobDefProps_1 = __nccwpck_require__(2361);
5583
- async function generateChildPipelineContent(config, pipelineType) {
5584
- const trigger = (0, getPipelineTriggerForGitlabChildPipeline_1.getPipelineTriggerForGitlabChildPipeline)();
5585
- const { jobs, image, stages, variables, workflow, ...pipelineRest } = await (0, createChildPipeline_1.createChildPipeline)(pipelineType, trigger, config);
5586
- const jobsWithSortedProps = Object.fromEntries(Object.entries(jobs).map(([jobName, job]) => [
5587
- jobName,
5588
- (0, sortGitLabJobDefProps_1.sortGitLabJobDefProps)(job),
5589
- ]));
5590
- return {
5591
- image,
5592
- stages,
5593
- variables,
5594
- workflow,
5595
- ...pipelineRest,
5596
- // jobs need to be spread into main YAML, because GitLab pipeline YAML has no jobs key - jobs are top level with their key as their name
5597
- ...jobsWithSortedProps,
5598
- };
5599
- }
5600
- exports.generateChildPipelineContent = generateChildPipelineContent;
5601
5544
  async function generateLocalPipelineContent(config, pipelineType) {
5602
5545
  const { jobs, image, stages, variables, workflow, ...pipelineRest } = await (0, createMainPipeline_1.createMainPipeline)(pipelineType, config);
5603
5546
  const jobsWithSortedProps = Object.fromEntries(Object.entries(jobs).map(([jobName, job]) => [
@@ -5615,11 +5558,7 @@ async function generateLocalPipelineContent(config, pipelineType) {
5615
5558
  };
5616
5559
  }
5617
5560
  exports.generateLocalPipelineContent = generateLocalPipelineContent;
5618
- async function generatePipelineFiles(config, pipelineType, mode) {
5619
- if (mode === "childpipeline") {
5620
- const pipelineContent = await generateChildPipelineContent(config, pipelineType);
5621
- return (0, writeFiles_1.writeYamlfile)(`__pipeline.yml`, pipelineContent);
5622
- }
5561
+ async function generatePipelineFiles(config, pipelineType) {
5623
5562
  const pipelineContent = await generateLocalPipelineContent(config, pipelineType);
5624
5563
  return (0, writeFiles_1.writeYamlfile)(`.gitlab-ci.yml`, pipelineContent);
5625
5564
  }
@@ -5957,45 +5896,6 @@ exports.createGitlabPipelineWithDefaults = createGitlabPipelineWithDefaults;
5957
5896
 
5958
5897
  /***/ }),
5959
5898
 
5960
- /***/ 7426:
5961
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
5962
-
5963
- "use strict";
5964
-
5965
- Object.defineProperty(exports, "__esModule", ({ value: true }));
5966
- exports.getPipelineTriggerForGitlabChildPipeline = void 0;
5967
- const constants_1 = __nccwpck_require__(2898);
5968
- function getPipelineTriggerForGitlabChildPipeline() {
5969
- const { CI_MERGE_REQUEST_ID, CI_COMMIT_TAG, CI_COMMIT_BRANCH, CI_DEFAULT_BRANCH, } = process.env;
5970
- const isDefaultBranch = Boolean(CI_DEFAULT_BRANCH) && CI_COMMIT_BRANCH === CI_DEFAULT_BRANCH;
5971
- const isHotfixBranch = CI_COMMIT_BRANCH
5972
- ? /^[0-9]+\.([0-9]+|x)\.x$/.test(CI_COMMIT_BRANCH)
5973
- : false;
5974
- const isMergeRequest = Boolean(CI_MERGE_REQUEST_ID);
5975
- const isTaggedRelease = Boolean(CI_COMMIT_TAG);
5976
- console.info(`catladder version ${constants_1.PIPELINE_IMAGE_TAG}`);
5977
- const trigger = isMergeRequest || isHotfixBranch
5978
- ? "mr"
5979
- : isDefaultBranch
5980
- ? "mainBranch"
5981
- : isTaggedRelease
5982
- ? "taggedRelease"
5983
- : null;
5984
- if (!trigger) {
5985
- throw new Error("no matching trigger: " +
5986
- JSON.stringify({
5987
- isMergeRequest,
5988
- isDefaultBranch,
5989
- isTaggedRelease,
5990
- }, null, 2));
5991
- }
5992
- return trigger;
5993
- }
5994
- exports.getPipelineTriggerForGitlabChildPipeline = getPipelineTriggerForGitlabChildPipeline;
5995
- //# sourceMappingURL=getPipelineTriggerForGitlabChildPipeline.js.map
5996
-
5997
- /***/ }),
5998
-
5999
5899
  /***/ 6564:
6000
5900
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
6001
5901
 
@@ -6011,15 +5911,13 @@ const getGitlabReleaseJobs = () => {
6011
5911
  ["create release"]: {
6012
5912
  stage: "release",
6013
5913
  image: (0, runner_1.getRunnerImage)("semantic-release"),
6014
- script: ["semanticRelease"],
6015
- after_script: [EXPIRED_TOKEN_HELP],
5914
+ script: ["semanticRelease", EXPIRED_TOKEN_HELP],
6016
5915
  rules: rules_1.RULES_RELEASE,
6017
5916
  },
6018
5917
  ["⚠️ force create release"]: {
6019
5918
  stage: "release",
6020
5919
  image: (0, runner_1.getRunnerImage)("semantic-release"),
6021
- script: ["semanticRelease"],
6022
- after_script: [EXPIRED_TOKEN_HELP],
5920
+ script: ["semanticRelease", EXPIRED_TOKEN_HELP],
6023
5921
  needs: [],
6024
5922
  rules: rules_1.RULES_MANUAL_RELEASE,
6025
5923
  },
@@ -6107,7 +6005,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
6107
6005
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
6108
6006
  };
6109
6007
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6110
- __exportStar(__nccwpck_require__(5139), exports);
6111
6008
  __exportStar(__nccwpck_require__(2321), exports);
6112
6009
  __exportStar(__nccwpck_require__(6169), exports);
6113
6010
  __exportStar(__nccwpck_require__(6564), exports);
@@ -34247,7 +34144,7 @@ module.exports = function (resolvers) {
34247
34144
 
34248
34145
 
34249
34146
  var isValue = __nccwpck_require__(566)
34250
- , isPlainFunction = __nccwpck_require__(1874)
34147
+ , isPlainFunction = __nccwpck_require__(3747)
34251
34148
  , assign = __nccwpck_require__(6584)
34252
34149
  , normalizeOpts = __nccwpck_require__(3637)
34253
34150
  , contains = __nccwpck_require__(7346);
@@ -35147,12 +35044,12 @@ module.exports = function (value) {
35147
35044
  "use strict";
35148
35045
 
35149
35046
 
35150
- module.exports = __nccwpck_require__(9975)() ? String.prototype.contains : __nccwpck_require__(3457);
35047
+ module.exports = __nccwpck_require__(835)() ? String.prototype.contains : __nccwpck_require__(3457);
35151
35048
 
35152
35049
 
35153
35050
  /***/ }),
35154
35051
 
35155
- /***/ 9975:
35052
+ /***/ 835:
35156
35053
  /***/ ((module) => {
35157
35054
 
35158
35055
  "use strict";
@@ -38444,7 +38341,7 @@ module.exports = function (value) {
38444
38341
 
38445
38342
  /***/ }),
38446
38343
 
38447
- /***/ 1874:
38344
+ /***/ 3747:
38448
38345
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
38449
38346
 
38450
38347
  "use strict";
@@ -8329,43 +8329,6 @@ exports.createAllJobs = createAllJobs;
8329
8329
 
8330
8330
  /***/ }),
8331
8331
 
8332
- /***/ 55139:
8333
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
8334
-
8335
- "use strict";
8336
-
8337
- Object.defineProperty(exports, "__esModule", ({ value: true }));
8338
- exports.createChildPipeline = void 0;
8339
- const rules_1 = __nccwpck_require__(47551);
8340
- const createAllJobs_1 = __nccwpck_require__(73579);
8341
- const getPipelineStages_1 = __nccwpck_require__(77585);
8342
- const createGitlabJobs_1 = __nccwpck_require__(58862);
8343
- const createGitlabPipeline_1 = __nccwpck_require__(66551);
8344
- const createChildPipeline = async (pipelineType, trigger, config) => {
8345
- const jobs = await (0, createAllJobs_1.createAllJobs)({
8346
- config,
8347
- trigger,
8348
- pipelineType,
8349
- });
8350
- const stages = (0, getPipelineStages_1.getPipelineStages)(config);
8351
- if (pipelineType === "gitlab") {
8352
- const gitlabJobs = await (0, createGitlabJobs_1.createGitlabJobs)(jobs);
8353
- return (0, createGitlabPipeline_1.createGitlabPipelineWithDefaults)({
8354
- workflow: {
8355
- rules: rules_1.RULES_ALWAYS,
8356
- },
8357
- stages,
8358
- jobs: Object.fromEntries(gitlabJobs.map(({ gitlabJob, name }) => [name, gitlabJob])),
8359
- variables: config.runnerVariables,
8360
- });
8361
- }
8362
- throw new Error(`${pipelineType} is not supported`);
8363
- };
8364
- exports.createChildPipeline = createChildPipeline;
8365
- //# sourceMappingURL=createChildPipeline.js.map
8366
-
8367
- /***/ }),
8368
-
8369
8332
  /***/ 92321:
8370
8333
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
8371
8334
 
@@ -8511,30 +8474,10 @@ function getGitlabRulesForTrigger(trigger) {
8511
8474
  "use strict";
8512
8475
 
8513
8476
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8514
- exports.generatePipelineFiles = exports.generateLocalPipelineContent = exports.generateChildPipelineContent = void 0;
8477
+ exports.generatePipelineFiles = exports.generateLocalPipelineContent = void 0;
8515
8478
  const writeFiles_1 = __nccwpck_require__(92228);
8516
- const createChildPipeline_1 = __nccwpck_require__(55139);
8517
8479
  const createMainPipeline_1 = __nccwpck_require__(39192);
8518
- const getPipelineTriggerForGitlabChildPipeline_1 = __nccwpck_require__(7426);
8519
8480
  const sortGitLabJobDefProps_1 = __nccwpck_require__(72361);
8520
- async function generateChildPipelineContent(config, pipelineType) {
8521
- const trigger = (0, getPipelineTriggerForGitlabChildPipeline_1.getPipelineTriggerForGitlabChildPipeline)();
8522
- const { jobs, image, stages, variables, workflow, ...pipelineRest } = await (0, createChildPipeline_1.createChildPipeline)(pipelineType, trigger, config);
8523
- const jobsWithSortedProps = Object.fromEntries(Object.entries(jobs).map(([jobName, job]) => [
8524
- jobName,
8525
- (0, sortGitLabJobDefProps_1.sortGitLabJobDefProps)(job),
8526
- ]));
8527
- return {
8528
- image,
8529
- stages,
8530
- variables,
8531
- workflow,
8532
- ...pipelineRest,
8533
- // jobs need to be spread into main YAML, because GitLab pipeline YAML has no jobs key - jobs are top level with their key as their name
8534
- ...jobsWithSortedProps,
8535
- };
8536
- }
8537
- exports.generateChildPipelineContent = generateChildPipelineContent;
8538
8481
  async function generateLocalPipelineContent(config, pipelineType) {
8539
8482
  const { jobs, image, stages, variables, workflow, ...pipelineRest } = await (0, createMainPipeline_1.createMainPipeline)(pipelineType, config);
8540
8483
  const jobsWithSortedProps = Object.fromEntries(Object.entries(jobs).map(([jobName, job]) => [
@@ -8552,11 +8495,7 @@ async function generateLocalPipelineContent(config, pipelineType) {
8552
8495
  };
8553
8496
  }
8554
8497
  exports.generateLocalPipelineContent = generateLocalPipelineContent;
8555
- async function generatePipelineFiles(config, pipelineType, mode) {
8556
- if (mode === "childpipeline") {
8557
- const pipelineContent = await generateChildPipelineContent(config, pipelineType);
8558
- return (0, writeFiles_1.writeYamlfile)(`__pipeline.yml`, pipelineContent);
8559
- }
8498
+ async function generatePipelineFiles(config, pipelineType) {
8560
8499
  const pipelineContent = await generateLocalPipelineContent(config, pipelineType);
8561
8500
  return (0, writeFiles_1.writeYamlfile)(`.gitlab-ci.yml`, pipelineContent);
8562
8501
  }
@@ -8894,45 +8833,6 @@ exports.createGitlabPipelineWithDefaults = createGitlabPipelineWithDefaults;
8894
8833
 
8895
8834
  /***/ }),
8896
8835
 
8897
- /***/ 7426:
8898
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
8899
-
8900
- "use strict";
8901
-
8902
- Object.defineProperty(exports, "__esModule", ({ value: true }));
8903
- exports.getPipelineTriggerForGitlabChildPipeline = void 0;
8904
- const constants_1 = __nccwpck_require__(62898);
8905
- function getPipelineTriggerForGitlabChildPipeline() {
8906
- const { CI_MERGE_REQUEST_ID, CI_COMMIT_TAG, CI_COMMIT_BRANCH, CI_DEFAULT_BRANCH, } = process.env;
8907
- const isDefaultBranch = Boolean(CI_DEFAULT_BRANCH) && CI_COMMIT_BRANCH === CI_DEFAULT_BRANCH;
8908
- const isHotfixBranch = CI_COMMIT_BRANCH
8909
- ? /^[0-9]+\.([0-9]+|x)\.x$/.test(CI_COMMIT_BRANCH)
8910
- : false;
8911
- const isMergeRequest = Boolean(CI_MERGE_REQUEST_ID);
8912
- const isTaggedRelease = Boolean(CI_COMMIT_TAG);
8913
- console.info(`catladder version ${constants_1.PIPELINE_IMAGE_TAG}`);
8914
- const trigger = isMergeRequest || isHotfixBranch
8915
- ? "mr"
8916
- : isDefaultBranch
8917
- ? "mainBranch"
8918
- : isTaggedRelease
8919
- ? "taggedRelease"
8920
- : null;
8921
- if (!trigger) {
8922
- throw new Error("no matching trigger: " +
8923
- JSON.stringify({
8924
- isMergeRequest,
8925
- isDefaultBranch,
8926
- isTaggedRelease,
8927
- }, null, 2));
8928
- }
8929
- return trigger;
8930
- }
8931
- exports.getPipelineTriggerForGitlabChildPipeline = getPipelineTriggerForGitlabChildPipeline;
8932
- //# sourceMappingURL=getPipelineTriggerForGitlabChildPipeline.js.map
8933
-
8934
- /***/ }),
8935
-
8936
8836
  /***/ 16564:
8937
8837
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
8938
8838
 
@@ -8948,15 +8848,13 @@ const getGitlabReleaseJobs = () => {
8948
8848
  ["create release"]: {
8949
8849
  stage: "release",
8950
8850
  image: (0, runner_1.getRunnerImage)("semantic-release"),
8951
- script: ["semanticRelease"],
8952
- after_script: [EXPIRED_TOKEN_HELP],
8851
+ script: ["semanticRelease", EXPIRED_TOKEN_HELP],
8953
8852
  rules: rules_1.RULES_RELEASE,
8954
8853
  },
8955
8854
  ["⚠️ force create release"]: {
8956
8855
  stage: "release",
8957
8856
  image: (0, runner_1.getRunnerImage)("semantic-release"),
8958
- script: ["semanticRelease"],
8959
- after_script: [EXPIRED_TOKEN_HELP],
8857
+ script: ["semanticRelease", EXPIRED_TOKEN_HELP],
8960
8858
  needs: [],
8961
8859
  rules: rules_1.RULES_MANUAL_RELEASE,
8962
8860
  },
@@ -9044,7 +8942,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
9044
8942
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
9045
8943
  };
9046
8944
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9047
- __exportStar(__nccwpck_require__(55139), exports);
9048
8945
  __exportStar(__nccwpck_require__(92321), exports);
9049
8946
  __exportStar(__nccwpck_require__(96169), exports);
9050
8947
  __exportStar(__nccwpck_require__(16564), exports);
@@ -12,7 +12,7 @@ exports.default = async (choice) => {
12
12
  return;
13
13
  }
14
14
  await Promise.all([
15
- (0, pipeline_1.generatePipelineFiles)(config, (_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab", "local"),
15
+ (0, pipeline_1.generatePipelineFiles)(config, (_a = config.pipelineType) !== null && _a !== void 0 ? _a : "gitlab"),
16
16
  (0, writeDotEnvFiles_1.writeDotEnvFiles)(config, choice),
17
17
  (0, writeEnvDTs_1.writeDTsFiles)(config, choice),
18
18
  (0, printVariables_1.printVariables)(config, choice),
@@ -1 +1 @@
1
- {"version":3,"file":"catenv.js","sourceRoot":"","sources":["../../../../../src/apps/catenv/catenv.ts"],"names":[],"mappings":";;AAAA,oEAAiE;AACjE,qDAAkD;AAElD,yDAAsD;AACtD,+CAA8C;AAC9C,kDAA4D;AAE5D,kBAAe,KAAK,EAAE,MAAe,EAAE,EAAE;;IACvC,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IAED,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,gCAAqB,EAAC,MAAM,EAAE,MAAA,MAAM,CAAC,YAAY,mCAAI,QAAQ,EAAE,OAAO,CAAC;QACvE,IAAA,mCAAgB,EAAC,MAAM,EAAE,MAAM,CAAC;QAEhC,IAAA,2BAAa,EAAC,MAAM,EAAE,MAAM,CAAC;QAE7B,IAAA,+BAAc,EAAC,MAAM,EAAE,MAAM,CAAC;KAC/B,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,yDAAsD;AACtD,+CAA8C;AAC9C,kDAA4D;AAE5D,kBAAe,KAAK,EAAE,MAAe,EAAE,EAAE;;IACvC,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IAED,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,gCAAqB,EAAC,MAAM,EAAE,MAAA,MAAM,CAAC,YAAY,mCAAI,QAAQ,CAAC;QAC9D,IAAA,mCAAgB,EAAC,MAAM,EAAE,MAAM,CAAC;QAEhC,IAAA,2BAAa,EAAC,MAAM,EAAE,MAAM,CAAC;QAE7B,IAAA,+BAAc,EAAC,MAAM,EAAE,MAAM,CAAC;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -277,14 +277,14 @@ export type BuildConfigGeneric<T extends BuildConfigStandaloneType> = Extract<Bu
277
277
  type: T;
278
278
  }>;
279
279
  export declare const isStandaloneBuildConfig: (t: BuildConfig | false) => t is BuildConfigStandalone;
280
- export declare const isOfBuildType: <T extends ("custom" | "node" | "node-static" | "meteor" | "rails" | "storybook")[]>(t: BuildConfig, ...types: T) => t is Extract<BuildConfigNode, {
280
+ export declare const isOfBuildType: <T extends ("custom" | "rails" | "node" | "node-static" | "meteor" | "storybook")[]>(t: BuildConfig, ...types: T) => t is Extract<BuildConfigNode, {
281
281
  type: T[number];
282
282
  }> | Extract<BuildConfigNodeStatic, {
283
283
  type: T[number];
284
- }> | Extract<BuildConfigMeteor, {
285
- type: T[number];
286
284
  }> | Extract<BuildConfigStorybook, {
287
285
  type: T[number];
286
+ }> | Extract<BuildConfigMeteor, {
287
+ type: T[number];
288
288
  }> | Extract<BuildConfigCustom, {
289
289
  type: T[number];
290
290
  }> | Extract<BuildConfigRails, {
@@ -9,7 +9,7 @@ export type SecretEnvVar = {
9
9
  declare const getBasePredefinedVariables: (ctx: EnvironmentContext) => {
10
10
  ENV_SHORT: string;
11
11
  APP_DIR: string;
12
- ENV_TYPE: "stage" | "local" | "dev" | "review" | "prod";
12
+ ENV_TYPE: "stage" | "dev" | "review" | "prod" | "local";
13
13
  };
14
14
  type BasePredefinedVariables = ReturnType<typeof getBasePredefinedVariables>;
15
15
  export type PredefinedVariables = BasePredefinedVariables & {
@@ -11,12 +11,12 @@ export type DeployConfigType = DeployConfig["type"];
11
11
  export type DeployConfigGeneric<T extends DeployConfigType> = Extract<DeployConfig, {
12
12
  type: T;
13
13
  }>;
14
- export declare const isOfDeployType: <T extends ("custom" | "kubernetes" | "google-cloudrun" | "dockerTag")[]>(t: DeployConfig | false | null | undefined, ...types: T) => t is Extract<DeployConfigKubernetes, {
14
+ export declare const isOfDeployType: <T extends ("custom" | "kubernetes" | "dockerTag" | "google-cloudrun")[]>(t: DeployConfig | false | null | undefined, ...types: T) => t is Extract<DeployConfigCustom, {
15
15
  type: T[number];
16
- }> | Extract<DeployConfigCustom, {
16
+ }> | Extract<DeployConfigDockerTag, {
17
17
  type: T[number];
18
18
  }> | Extract<DeployConfigCloudRun, {
19
19
  type: T[number];
20
- }> | Extract<DeployConfigDockerTag, {
20
+ }> | Extract<DeployConfigKubernetes, {
21
21
  type: T[number];
22
22
  }>;
@@ -1,23 +1,4 @@
1
- import type { Config, PipelineMode, PipelineType } from "../types";
2
- export declare function generateChildPipelineContent<T extends PipelineType>(config: Config, pipelineType: T): Promise<{
3
- image: string;
4
- stages: string[];
5
- variables: import("../types/gitlab-ci-yml").JobVariables1;
6
- workflow: {
7
- rules: {
8
- if?: string;
9
- changes?: import("../types/gitlab-ci-yml").Changes;
10
- exists?: import("../types/gitlab-ci-yml").Exists;
11
- variables?: import("../types/gitlab-ci-yml").RulesVariables;
12
- when?: import("../types/gitlab-ci-yml").When;
13
- start_in?: string;
14
- allow_failure?: import("../types/gitlab-ci-yml").AllowFailure;
15
- needs?: import("../types/gitlab-ci-yml").RulesNeeds;
16
- }[];
17
- };
18
- } & Omit<import("../types").Pipeline<T>, "image" | "jobs" | "variables" | "workflow" | "stages"> & {
19
- [k: string]: import("../types").GitlabJobDef;
20
- }>;
1
+ import type { Config, PipelineType } from "../types";
21
2
  export declare function generateLocalPipelineContent<T extends PipelineType>(config: Config, pipelineType: T): Promise<{
22
3
  image: string;
23
4
  stages: string[];
@@ -37,4 +18,4 @@ export declare function generateLocalPipelineContent<T extends PipelineType>(con
37
18
  } & Omit<import("../types").Pipeline<T>, "image" | "jobs" | "variables" | "workflow" | "stages"> & {
38
19
  [k: string]: import("../types").GitlabJobDef;
39
20
  }>;
40
- export declare function generatePipelineFiles<T extends PipelineType>(config: Config, pipelineType: T, mode: PipelineMode<T>): Promise<void>;
21
+ export declare function generatePipelineFiles<T extends PipelineType>(config: Config, pipelineType: T): Promise<void>;
@@ -1,29 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generatePipelineFiles = exports.generateLocalPipelineContent = exports.generateChildPipelineContent = void 0;
3
+ exports.generatePipelineFiles = exports.generateLocalPipelineContent = void 0;
4
4
  const writeFiles_1 = require("../utils/writeFiles");
5
- const createChildPipeline_1 = require("./createChildPipeline");
6
5
  const createMainPipeline_1 = require("./createMainPipeline");
7
- const getPipelineTriggerForGitlabChildPipeline_1 = require("./gitlab/getPipelineTriggerForGitlabChildPipeline");
8
6
  const sortGitLabJobDefProps_1 = require("./gitlab/sortGitLabJobDefProps");
9
- async function generateChildPipelineContent(config, pipelineType) {
10
- const trigger = (0, getPipelineTriggerForGitlabChildPipeline_1.getPipelineTriggerForGitlabChildPipeline)();
11
- const { jobs, image, stages, variables, workflow, ...pipelineRest } = await (0, createChildPipeline_1.createChildPipeline)(pipelineType, trigger, config);
12
- const jobsWithSortedProps = Object.fromEntries(Object.entries(jobs).map(([jobName, job]) => [
13
- jobName,
14
- (0, sortGitLabJobDefProps_1.sortGitLabJobDefProps)(job),
15
- ]));
16
- return {
17
- image,
18
- stages,
19
- variables,
20
- workflow,
21
- ...pipelineRest,
22
- // jobs need to be spread into main YAML, because GitLab pipeline YAML has no jobs key - jobs are top level with their key as their name
23
- ...jobsWithSortedProps,
24
- };
25
- }
26
- exports.generateChildPipelineContent = generateChildPipelineContent;
27
7
  async function generateLocalPipelineContent(config, pipelineType) {
28
8
  const { jobs, image, stages, variables, workflow, ...pipelineRest } = await (0, createMainPipeline_1.createMainPipeline)(pipelineType, config);
29
9
  const jobsWithSortedProps = Object.fromEntries(Object.entries(jobs).map(([jobName, job]) => [
@@ -41,11 +21,7 @@ async function generateLocalPipelineContent(config, pipelineType) {
41
21
  };
42
22
  }
43
23
  exports.generateLocalPipelineContent = generateLocalPipelineContent;
44
- async function generatePipelineFiles(config, pipelineType, mode) {
45
- if (mode === "childpipeline") {
46
- const pipelineContent = await generateChildPipelineContent(config, pipelineType);
47
- return (0, writeFiles_1.writeYamlfile)(`__pipeline.yml`, pipelineContent);
48
- }
24
+ async function generatePipelineFiles(config, pipelineType) {
49
25
  const pipelineContent = await generateLocalPipelineContent(config, pipelineType);
50
26
  return (0, writeFiles_1.writeYamlfile)(`.gitlab-ci.yml`, pipelineContent);
51
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generatePipelineFiles.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/generatePipelineFiles.ts"],"names":[],"mappings":";;;AACA,oDAAoD;AACpD,+DAA4D;AAC5D,6DAA0D;AAC1D,gHAA6G;AAC7G,0EAAuE;AAEhE,KAAK,UAAU,4BAA4B,CAChD,MAAc,EACd,YAAe;IAEf,MAAM,OAAO,GAAG,IAAA,mFAAwC,GAAE,CAAC;IAC3D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,GACjE,MAAM,IAAA,yCAAmB,EAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAE3D,MAAM,mBAAmB,GAAG,MAAM,CAAC,WAAW,CAC5C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;QAC3C,OAAO;QACP,IAAA,6CAAqB,EAAC,GAAG,CAAC;KAC3B,CAAC,CACH,CAAC;IAEF,OAAO;QACL,KAAK;QACL,MAAM;QACN,SAAS;QACT,QAAQ;QACR,GAAG,YAAY;QACf,wIAAwI;QACxI,GAAG,mBAAmB;KACvB,CAAC;AACJ,CAAC;AAxBD,oEAwBC;AAEM,KAAK,UAAU,4BAA4B,CAChD,MAAc,EACd,YAAe;IAEf,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,GACjE,MAAM,IAAA,uCAAkB,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAEjD,MAAM,mBAAmB,GAAG,MAAM,CAAC,WAAW,CAC5C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;QAC3C,OAAO;QACP,IAAA,6CAAqB,EAAC,GAAG,CAAC;KAC3B,CAAC,CACH,CAAC;IAEF,OAAO;QACL,KAAK;QACL,MAAM;QACN,SAAS;QACT,QAAQ;QACR,GAAG,YAAY;QACf,wIAAwI;QACxI,GAAG,mBAAmB;KACvB,CAAC;AACJ,CAAC;AAvBD,oEAuBC;AAEM,KAAK,UAAU,qBAAqB,CACzC,MAAc,EACd,YAAe,EACf,IAAqB;IAErB,IAAI,IAAI,KAAK,eAAe,EAAE,CAAC;QAC7B,MAAM,eAAe,GAAG,MAAM,4BAA4B,CACxD,MAAM,EACN,YAAY,CACb,CAAC;QACF,OAAO,IAAA,0BAAa,EAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;IAC1D,CAAC;IACD,MAAM,eAAe,GAAG,MAAM,4BAA4B,CACxD,MAAM,EACN,YAAY,CACb,CAAC;IACF,OAAO,IAAA,0BAAa,EAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;AAC1D,CAAC;AAjBD,sDAiBC"}
1
+ {"version":3,"file":"generatePipelineFiles.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/generatePipelineFiles.ts"],"names":[],"mappings":";;;AACA,oDAAoD;AACpD,6DAA0D;AAC1D,0EAAuE;AAEhE,KAAK,UAAU,4BAA4B,CAChD,MAAc,EACd,YAAe;IAEf,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,GACjE,MAAM,IAAA,uCAAkB,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAEjD,MAAM,mBAAmB,GAAG,MAAM,CAAC,WAAW,CAC5C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;QAC3C,OAAO;QACP,IAAA,6CAAqB,EAAC,GAAG,CAAC;KAC3B,CAAC,CACH,CAAC;IAEF,OAAO;QACL,KAAK;QACL,MAAM;QACN,SAAS;QACT,QAAQ;QACR,GAAG,YAAY;QACf,wIAAwI;QACxI,GAAG,mBAAmB;KACvB,CAAC;AACJ,CAAC;AAvBD,oEAuBC;AAEM,KAAK,UAAU,qBAAqB,CACzC,MAAc,EACd,YAAe;IAEf,MAAM,eAAe,GAAG,MAAM,4BAA4B,CACxD,MAAM,EACN,YAAY,CACb,CAAC;IACF,OAAO,IAAA,0BAAa,EAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;AAC1D,CAAC;AATD,sDASC"}
@@ -3,7 +3,6 @@ export declare const getGitlabReleaseJobs: () => {
3
3
  stage: string;
4
4
  image: string;
5
5
  script: string[];
6
- after_script: string[];
7
6
  rules: {
8
7
  if?: string;
9
8
  changes?: import("../../types/gitlab-ci-yml").Changes;
@@ -19,7 +18,6 @@ export declare const getGitlabReleaseJobs: () => {
19
18
  stage: string;
20
19
  image: string;
21
20
  script: string[];
22
- after_script: string[];
23
21
  needs: any[];
24
22
  rules: {
25
23
  if?: string;
@@ -9,15 +9,13 @@ const getGitlabReleaseJobs = () => {
9
9
  ["create release"]: {
10
10
  stage: "release",
11
11
  image: (0, runner_1.getRunnerImage)("semantic-release"),
12
- script: ["semanticRelease"],
13
- after_script: [EXPIRED_TOKEN_HELP],
12
+ script: ["semanticRelease", EXPIRED_TOKEN_HELP],
14
13
  rules: rules_1.RULES_RELEASE,
15
14
  },
16
15
  ["⚠️ force create release"]: {
17
16
  stage: "release",
18
17
  image: (0, runner_1.getRunnerImage)("semantic-release"),
19
- script: ["semanticRelease"],
20
- after_script: [EXPIRED_TOKEN_HELP],
18
+ script: ["semanticRelease", EXPIRED_TOKEN_HELP],
21
19
  needs: [],
22
20
  rules: rules_1.RULES_MANUAL_RELEASE,
23
21
  },
@@ -1 +1 @@
1
- {"version":3,"file":"gitlabReleaseJobs.js","sourceRoot":"","sources":["../../../../../../pipeline/src/pipeline/gitlab/gitlabReleaseJobs.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAClE,yCAA8C;AAE9C,MAAM,kBAAkB,GACtB,yGAAyG,CAAC;AAErG,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACvC,OAAO;QACL,CAAC,gBAAgB,CAAC,EAAE;YAClB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAA,uBAAc,EAAC,kBAAkB,CAAC;YACzC,MAAM,EAAE,CAAC,iBAAiB,CAAC;YAC3B,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,KAAK,EAAE,qBAAa;SACrB;QACD,CAAC,yBAAyB,CAAC,EAAE;YAC3B,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAA,uBAAc,EAAC,kBAAkB,CAAC;YACzC,MAAM,EAAE,CAAC,iBAAiB,CAAC;YAC3B,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,4BAAoB;SAC5B;KACF,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,oBAAoB,wBAkB/B"}
1
+ {"version":3,"file":"gitlabReleaseJobs.js","sourceRoot":"","sources":["../../../../../../pipeline/src/pipeline/gitlab/gitlabReleaseJobs.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAClE,yCAA8C;AAE9C,MAAM,kBAAkB,GACtB,yGAAyG,CAAC;AAErG,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACvC,OAAO;QACL,CAAC,gBAAgB,CAAC,EAAE;YAClB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAA,uBAAc,EAAC,kBAAkB,CAAC;YACzC,MAAM,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;YAC/C,KAAK,EAAE,qBAAa;SACrB;QACD,CAAC,yBAAyB,CAAC,EAAE;YAC3B,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAA,uBAAc,EAAC,kBAAkB,CAAC;YACzC,MAAM,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;YAC/C,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,4BAAoB;SAC5B;KACF,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,oBAAoB,wBAgB/B"}
@@ -1,4 +1,3 @@
1
- export * from "./createChildPipeline";
2
1
  export * from "./createJobsForComponent";
3
2
  export * from "./generatePipelineFiles";
4
3
  export * from "./gitlab/gitlabReleaseJobs";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./createChildPipeline"), exports);
18
17
  __exportStar(require("./createJobsForComponent"), exports);
19
18
  __exportStar(require("./generatePipelineFiles"), exports);
20
19
  __exportStar(require("./gitlab/gitlabReleaseJobs"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C"}
@@ -32,11 +32,11 @@ export declare const ENV_TYPES: {
32
32
  * @param trigger a trigger
33
33
  * @returns array of env types for that trigger. this is also the list of default envs
34
34
  */
35
- export declare const getEnvTypesByTrigger: (trigger: PipelineTrigger) => ("stage" | "local" | "dev" | "review" | "prod")[];
35
+ export declare const getEnvTypesByTrigger: (trigger: PipelineTrigger) => ("stage" | "dev" | "review" | "prod" | "local")[];
36
36
  export declare const DEFAULT_ENVS: string[];
37
- export declare const DEFAULT_ENV_TYPES: ("stage" | "local" | "dev" | "review" | "prod")[];
37
+ export declare const DEFAULT_ENV_TYPES: ("stage" | "dev" | "review" | "prod" | "local")[];
38
38
  export type EnvType = keyof typeof ENV_TYPES;
39
- export declare const isKnowEnvType: (env: string) => env is "stage" | "local" | "dev" | "review" | "prod";
39
+ export declare const isKnowEnvType: (env: string) => env is "stage" | "dev" | "review" | "prod" | "local";
40
40
  export type EnvVars = {
41
41
  /**
42
42
  * public env vars (means: they are checked in the repo).
@@ -1,5 +1,4 @@
1
1
  import type { GitlabJobDef, GitlabPipeline } from "./gitlab-types";
2
2
  export type PipelineType = "gitlab";
3
- export type PipelineMode<T extends PipelineType> = T extends "gitlab" ? "childpipeline" | "local" : "local";
4
3
  export type PipelineJob<T extends PipelineType> = T extends "gitlab" ? GitlabJobDef : never;
5
4
  export type Pipeline<T extends PipelineType> = T extends "gitlab" ? GitlabPipeline : never;