@catladder/cli 0.0.0-fix-add-missing-openssl-to-node-deploy-docker-4c13843a → 0.0.0-fix-rails-default-start-command-530390e3

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 (81) hide show
  1. package/dist/bundles/catenv/index.js +179 -39
  2. package/dist/bundles/cli/index.js +199 -60
  3. package/dist/cli/src/apps/cli/commands/project/commandSetup.js +5 -3
  4. package/dist/cli/src/apps/cli/commands/project/commandSetup.js.map +1 -1
  5. package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +1 -1
  6. package/dist/cli/src/apps/cli/commands/project/setup/index.js +6 -17
  7. package/dist/cli/src/apps/cli/commands/project/setup/index.js.map +1 -1
  8. package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -0
  9. package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +9 -1
  10. package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js.map +1 -1
  11. package/dist/cli/src/config/getProjectConfig.d.ts +1 -1
  12. package/dist/cli/src/config/getProjectConfig.js +7 -1
  13. package/dist/cli/src/config/getProjectConfig.js.map +1 -1
  14. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +3 -1
  15. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -1
  16. package/dist/pipeline/src/build/base/index.d.ts +2 -3
  17. package/dist/pipeline/src/build/base/index.js.map +1 -1
  18. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +6 -4
  19. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js.map +1 -1
  20. package/dist/pipeline/src/build/custom/buildJob.d.ts +2 -2
  21. package/dist/pipeline/src/build/custom/buildJob.js.map +1 -1
  22. package/dist/pipeline/src/build/custom/index.d.ts +2 -2
  23. package/dist/pipeline/src/build/custom/index.js.map +1 -1
  24. package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
  25. package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
  26. package/dist/pipeline/src/build/docker.d.ts +4 -4
  27. package/dist/pipeline/src/build/docker.js.map +1 -1
  28. package/dist/pipeline/src/build/index.d.ts +2 -2
  29. package/dist/pipeline/src/build/index.js +0 -1
  30. package/dist/pipeline/src/build/index.js.map +1 -1
  31. package/dist/pipeline/src/build/node/buildJob.d.ts +5 -3
  32. package/dist/pipeline/src/build/node/buildJob.js.map +1 -1
  33. package/dist/pipeline/src/build/node/index.d.ts +4 -4
  34. package/dist/pipeline/src/build/node/index.js.map +1 -1
  35. package/dist/pipeline/src/build/node/meteor.d.ts +2 -2
  36. package/dist/pipeline/src/build/node/meteor.js.map +1 -1
  37. package/dist/pipeline/src/build/node/yarn.d.ts +1 -1
  38. package/dist/pipeline/src/build/node/yarn.js +3 -1
  39. package/dist/pipeline/src/build/node/yarn.js.map +1 -1
  40. package/dist/pipeline/src/build/rails/build.d.ts +2 -2
  41. package/dist/pipeline/src/build/rails/build.js.map +1 -1
  42. package/dist/pipeline/src/build/rails/index.d.ts +2 -2
  43. package/dist/pipeline/src/build/rails/index.js.map +1 -1
  44. package/dist/pipeline/src/build/sbom.d.ts +2 -2
  45. package/dist/pipeline/src/build/sbom.js.map +1 -1
  46. package/dist/pipeline/src/context/createComponentContext.js +17 -6
  47. package/dist/pipeline/src/context/createComponentContext.js.map +1 -1
  48. package/dist/pipeline/src/context/getLabels.js +3 -1
  49. package/dist/pipeline/src/context/getLabels.js.map +1 -1
  50. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +2 -2
  51. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js.map +1 -1
  52. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +32 -7
  53. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -1
  54. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -2
  55. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +3 -10
  56. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js.map +1 -1
  57. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +5 -0
  58. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +51 -0
  59. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js.map +1 -0
  60. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +2 -0
  61. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +12 -0
  62. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js.map +1 -0
  63. package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +2 -2
  64. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +3 -1
  65. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -1
  66. package/dist/pipeline/src/deploy/sbom.js +4 -3
  67. package/dist/pipeline/src/deploy/sbom.js.map +1 -1
  68. package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +90 -0
  69. package/dist/pipeline/src/deploy/types/googleCloudRun.js +16 -0
  70. package/dist/pipeline/src/deploy/types/googleCloudRun.js.map +1 -1
  71. package/dist/pipeline/src/pipeline/createJobsForComponent.js +3 -1
  72. package/dist/pipeline/src/pipeline/createJobsForComponent.js.map +1 -1
  73. package/dist/pipeline/src/types/config.d.ts +1 -1
  74. package/dist/pipeline/src/types/context.d.ts +6 -1
  75. package/dist/pipeline/src/types/context.js.map +1 -1
  76. package/dist/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +1 -1
  78. package/src/apps/cli/commands/project/commandSetup.ts +5 -3
  79. package/src/apps/cli/commands/project/setup/index.ts +9 -19
  80. package/src/apps/cli/commands/project/utils/autocompletions.ts +9 -0
  81. package/src/config/getProjectConfig.ts +12 -1
@@ -1842,10 +1842,12 @@ exports["default"] = async (vorpal) => {
1842
1842
 
1843
1843
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1844
1844
  const setup_1 = __nccwpck_require__(33309);
1845
+ const autocompletions_1 = __nccwpck_require__(39855);
1845
1846
  exports["default"] = async (vorpal) => vorpal
1846
- .command("project-setup", "Initializes all environments and creates requires resources, service accounts, etc.")
1847
- .action(async function () {
1848
- await (0, setup_1.setupProject)(this);
1847
+ .command("project-setup [component]", "Initializes all environments and creates requires resources, service accounts, etc.")
1848
+ .autocomplete(await (0, autocompletions_1.allComponents)())
1849
+ .action(async function ({ component }) {
1850
+ await (0, setup_1.setupProject)(this, component);
1849
1851
  });
1850
1852
  //# sourceMappingURL=commandSetup.js.map
1851
1853
 
@@ -1979,32 +1981,21 @@ exports["default"] = async (vorpal) => {
1979
1981
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1980
1982
  exports.setupProject = void 0;
1981
1983
  const getProjectConfig_1 = __nccwpck_require__(12145);
1982
- const commandConfigSecrets_1 = __nccwpck_require__(23410);
1983
1984
  const setupAccessTokens_1 = __nccwpck_require__(84195);
1984
1985
  const setupContext_1 = __nccwpck_require__(44310);
1985
1986
  const setupTopic_1 = __nccwpck_require__(84290);
1986
- const setupProject = async (instance) => {
1987
- const allContext = await (0, getProjectConfig_1.getAllPipelineContexts)();
1987
+ const setupProject = async (instance, onlyComponents) => {
1988
+ const allContext = await (0, getProjectConfig_1.getAllPipelineContexts)(onlyComponents);
1989
+ instance.log("will setup those contexts:");
1990
+ allContext.forEach((context) => {
1991
+ instance.log(` - ${context.name}:${context.env}`);
1992
+ });
1988
1993
  for (const context of allContext) {
1989
1994
  await (0, setupContext_1.setupContext)(instance, context);
1990
1995
  }
1991
1996
  await (0, setupAccessTokens_1.setupAccessTokens)(instance);
1992
1997
  await (0, setupTopic_1.setupTopic)(instance);
1993
1998
  instance.log("");
1994
- const { configSecrets } = await instance.prompt({
1995
- default: true,
1996
- message: "Before deployments work, you need to config secrets. Do it now?",
1997
- name: "configSecrets",
1998
- type: "confirm",
1999
- });
2000
- instance.log("");
2001
- if (configSecrets) {
2002
- await (0, commandConfigSecrets_1.projectConfigSecrets)(instance);
2003
- }
2004
- else {
2005
- instance.log("👆 don't forget to config secret using `project-config-secrets`");
2006
- }
2007
- instance.log("");
2008
1999
  instance.log("gitlab is ready! 🥂");
2009
2000
  instance.log("\n");
2010
2001
  instance.log("do not forget to make sure that:");
@@ -2311,7 +2302,7 @@ exports.setupTopic = setupTopic;
2311
2302
  "use strict";
2312
2303
 
2313
2304
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2314
- exports.allEnvsAndAllComponents = exports.envAndComponents = exports.allEnvs = void 0;
2305
+ exports.allEnvsAndAllComponents = exports.envAndComponents = exports.allComponents = exports.allEnvs = void 0;
2315
2306
  const pipeline_1 = __nccwpck_require__(10603);
2316
2307
  const getProjectConfig_1 = __nccwpck_require__(12145);
2317
2308
  const allEnvs = async () => {
@@ -2322,6 +2313,14 @@ const allEnvs = async () => {
2322
2313
  return (0, pipeline_1.getAllEnvsInAllComponents)(config);
2323
2314
  };
2324
2315
  exports.allEnvs = allEnvs;
2316
+ const allComponents = async () => {
2317
+ const config = await (0, getProjectConfig_1.getProjectConfig)();
2318
+ if (!config) {
2319
+ return [];
2320
+ }
2321
+ return Object.keys(config.components);
2322
+ };
2323
+ exports.allComponents = allComponents;
2325
2324
  const envAndComponents = async () => {
2326
2325
  const allEnvAndcomponents = await (0, getProjectConfig_1.getAllComponentsWithAllEnvsFlat)();
2327
2326
  return allEnvAndcomponents.reduce((acc, { env, componentName }) => [...acc, env + ":" + componentName], []);
@@ -2623,9 +2622,15 @@ const getAllComponentsWithAllEnvsHierarchical = async () => {
2623
2622
  ]));
2624
2623
  };
2625
2624
  exports.getAllComponentsWithAllEnvsHierarchical = getAllComponentsWithAllEnvsHierarchical;
2626
- const getAllPipelineContexts = async () => {
2625
+ const getAllPipelineContexts = async (onlyComponent) => {
2626
+ const onlyComponentsArray = onlyComponent
2627
+ ? Array.isArray(onlyComponent)
2628
+ ? onlyComponent
2629
+ : [onlyComponent]
2630
+ : null;
2627
2631
  return Promise.all((await (0, exports.getAllComponentsWithAllEnvsFlat)())
2628
2632
  .filter((c) => c.env !== "local")
2633
+ .filter((c) => !onlyComponentsArray || onlyComponentsArray.includes(c.componentName))
2629
2634
  .map(({ env, componentName }) => (0, exports.getPipelineContextByChoice)(env, componentName)));
2630
2635
  };
2631
2636
  exports.getAllPipelineContexts = getAllPipelineContexts;
@@ -4245,7 +4250,9 @@ exports.createBuildJobArtifacts = createBuildJobArtifacts;
4245
4250
  const getArtifactsPathForComponent = (c, additionalPaths) => {
4246
4251
  var _a, _b;
4247
4252
  return (_b = [
4248
- ...((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : []),
4253
+ ...(c.build.type !== "disabled"
4254
+ ? ((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : [])
4255
+ : []),
4249
4256
  ...(additionalPaths !== null && additionalPaths !== void 0 ? additionalPaths : []),
4250
4257
  ]) === null || _b === void 0 ? void 0 : _b.flatMap((artifact) => c.build
4251
4258
  // in theory, we only need "direct",
@@ -4621,10 +4628,12 @@ const getAllCacheConfigsFromConfig = (context, configWithCache) => {
4621
4628
  // we would probably need to introduce a path to the right config property (build-->test or so)
4622
4629
  context.components.flatMap((componentContext) => {
4623
4630
  var _a;
4624
- return (_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
4625
- ...c,
4626
- baseDir: componentContext.build.dir,
4627
- }))) !== null && _a !== void 0 ? _a : [];
4631
+ return componentContext.build.type !== "disabled"
4632
+ ? ((_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
4633
+ ...c,
4634
+ baseDir: componentContext.build.dir,
4635
+ }))) !== null && _a !== void 0 ? _a : [])
4636
+ : [];
4628
4637
  })
4629
4638
  : []),
4630
4639
  ];
@@ -5015,7 +5024,6 @@ exports.BUILD_TYPES = {
5015
5024
  rails: {
5016
5025
  jobs: rails_1.createRailsJobs,
5017
5026
  defaults: () => ({
5018
- startCommand: "/cnb/process/web",
5019
5027
  cnbBuilder: {
5020
5028
  image: "heroku/builder:22",
5021
5029
  packVersion: "0.32.1",
@@ -5392,7 +5400,9 @@ const ensureNodeVersion = (context) => (0, gitlab_1.collapseableSection)("nodein
5392
5400
  ]);
5393
5401
  exports.ensureNodeVersion = ensureNodeVersion;
5394
5402
  const getYarnInstall = (context, options) => {
5395
- const postInstall = context.type !== "workspace" && "postInstall" in context.build.config
5403
+ const postInstall = context.type !== "workspace" &&
5404
+ context.build.type !== "disabled" &&
5405
+ "postInstall" in context.build.config
5396
5406
  ? context.build.config.postInstall
5397
5407
  : null;
5398
5408
  return [
@@ -5850,19 +5860,23 @@ const createComponentContext = async (ctx) => {
5850
5860
  const packageManagerInfo = await (0, packageManager_1.getPackageManagerInfoForComponent)(ctx.config, ctx.componentName);
5851
5861
  const envContext = (0, getEnvironmentContext_1.getEnvironmentContext)(ctx);
5852
5862
  const componentConfigWithoutDefaults = envContext.envConfigRaw;
5853
- const resolvedBuildType = (0, build_1.isStandaloneBuildConfig)(componentConfigWithoutDefaults.build)
5854
- ? componentConfigWithoutDefaults.build.type
5855
- : (_a = ctx.config.builds) === null || _a === void 0 ? void 0 : _a[componentConfigWithoutDefaults.build.from].type;
5856
- if (!resolvedBuildType) {
5863
+ const resolvedBuildType = componentConfigWithoutDefaults.build === false
5864
+ ? false
5865
+ : (0, build_1.isStandaloneBuildConfig)(componentConfigWithoutDefaults.build)
5866
+ ? componentConfigWithoutDefaults.build.type
5867
+ : (_a = ctx.config.builds) === null || _a === void 0 ? void 0 : _a[componentConfigWithoutDefaults.build.from].type;
5868
+ if (resolvedBuildType === undefined) {
5857
5869
  throw new Error("build type not found, is the build config correct?");
5858
5870
  }
5859
5871
  const defaults = componentConfigWithoutDefaults.deploy
5860
5872
  ? {
5861
- build: build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5873
+ build: resolvedBuildType &&
5874
+ build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5862
5875
  deploy: deploy_1.DEPLOY_TYPES[componentConfigWithoutDefaults.deploy.type].defaults(envContext),
5863
5876
  }
5864
5877
  : {
5865
- build: build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5878
+ build: resolvedBuildType &&
5879
+ build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5866
5880
  deploy: {},
5867
5881
  };
5868
5882
  const componentConfig = (0, utils_1.mergeWithMergingArrays)(defaults, componentConfigWithoutDefaults);
@@ -5880,6 +5894,13 @@ const createComponentContext = async (ctx) => {
5880
5894
  };
5881
5895
  const _getBuildContext = () => {
5882
5896
  var _a;
5897
+ if (build === false) {
5898
+ return {
5899
+ type: "disabled",
5900
+ getComponentDirs,
5901
+ dir,
5902
+ };
5903
+ }
5883
5904
  if ((0, build_1.isStandaloneBuildConfig)(build)) {
5884
5905
  return {
5885
5906
  dir: dir,
@@ -6296,7 +6317,9 @@ const getLabels = (context) => {
6296
6317
  "app-name": sanitize(context.fullConfig.appName),
6297
6318
  "env-type": sanitize(context.environment.envType),
6298
6319
  "env-name": sanitize(context.env),
6299
- "build-type": sanitize(context.build.buildType),
6320
+ "build-type": context.build.type === "disabled"
6321
+ ? "disabled"
6322
+ : sanitize(context.build.buildType),
6300
6323
  ...((_b = (_a = context.fullConfig.meta) === null || _a === void 0 ? void 0 : _a.labels) !== null && _b !== void 0 ? _b : {}),
6301
6324
  };
6302
6325
  return labels;
@@ -6890,7 +6913,7 @@ const jobName_1 = __nccwpck_require__(9626);
6890
6913
  const common_1 = __nccwpck_require__(73325);
6891
6914
  const constants_1 = __nccwpck_require__(38865);
6892
6915
  const volumes_1 = __nccwpck_require__(60847);
6893
- const onDeploy_1 = __nccwpck_require__(2358);
6916
+ const getJobOrServiceArgs_1 = __nccwpck_require__(61741);
6894
6917
  const getDeleteJobsScripts = (context) => {
6895
6918
  const commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
6896
6919
  const commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
@@ -6910,7 +6933,7 @@ const getJobCreateScripts = (context) => (0, exports.getCloudRunJobsWithNames)(c
6910
6933
  const { image: commonImage, project, region, ...deployArgs } = (0, common_1.getCommonDeployArgs)(context);
6911
6934
  const commonDeployArgsString = (0, createArgsString_1.createArgsString)({
6912
6935
  command: `"${commandArray.join(",")}"`,
6913
- args: (0, onDeploy_1.getCloudRunJobArgsArg)(job.args),
6936
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(job.args),
6914
6937
  labels: `"${(0, common_1.makeLabelString)((0, getLabels_1.getLabels)(context))},cloud-run-job-name=$current_job_name"`,
6915
6938
  image: `"${(_a = job.image) !== null && _a !== void 0 ? _a : commonImage}"`,
6916
6939
  project,
@@ -6970,17 +6993,21 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
6970
6993
  exports.getServiceDeleteScript = exports.getServiceDeployScript = void 0;
6971
6994
  const getLabels_1 = __nccwpck_require__(30920);
6972
6995
  const createArgsString_1 = __nccwpck_require__(49598);
6996
+ const getJobOrServiceArgs_1 = __nccwpck_require__(61741);
6973
6997
  const getServiceName_1 = __nccwpck_require__(38128);
6974
6998
  const common_1 = __nccwpck_require__(73325);
6975
6999
  const constants_1 = __nccwpck_require__(38865);
7000
+ const healthCheck_1 = __nccwpck_require__(30193);
6976
7001
  const volumes_1 = __nccwpck_require__(60847);
6977
7002
  const getServiceDeployScript = (context, service, nameSuffix) => {
6978
- var _a, _b, _c, _d, _e;
7003
+ var _a, _b, _c, _d, _e, _f;
6979
7004
  const commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
6980
7005
  const serviceName = (0, getServiceName_1.getServiceName)(context);
6981
7006
  const customConfig = service !== true ? service : undefined;
6982
7007
  const command = service !== true
6983
- ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : context.build.config.startCommand)
7008
+ ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : (context.build.type !== "disabled"
7009
+ ? context.build.config.startCommand
7010
+ : undefined))
6984
7011
  : undefined;
6985
7012
  const commandArray = command
6986
7013
  ? Array.isArray(command)
@@ -6991,14 +7018,16 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
6991
7018
  const argsString = (0, createArgsString_1.createArgsString)({
6992
7019
  // command as empty string resets it to default (uses the image's entrypoint)
6993
7020
  command: commandArray ? '"' + commandArray.join(",") + '"' : '""',
7021
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.args),
6994
7022
  ...commonDeployArgs,
7023
+ image: (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.image) !== null && _b !== void 0 ? _b : commonDeployArgs.image,
6995
7024
  labels: (0, common_1.makeLabelString)({
6996
7025
  ...(0, getLabels_1.getLabels)(context),
6997
7026
  "cloud-run-service-name": fullServiceName,
6998
7027
  }),
6999
7028
  "env-vars-file": constants_1.ENV_VARS_FILENAME,
7000
- "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0,
7001
- "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100,
7029
+ "min-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _c !== void 0 ? _c : 0,
7030
+ "max-instances": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _d !== void 0 ? _d : 100,
7002
7031
  "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true,
7003
7032
  cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu,
7004
7033
  memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory,
@@ -7008,12 +7037,16 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
7008
7037
  network: customConfig === null || customConfig === void 0 ? void 0 : customConfig.network,
7009
7038
  subnet: customConfig === null || customConfig === void 0 ? void 0 : customConfig.subnet,
7010
7039
  "use-http2": customConfig === null || customConfig === void 0 ? void 0 : customConfig.http2,
7011
- "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true,
7012
- ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all",
7040
+ "allow-unauthenticated": (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _e !== void 0 ? _e : true,
7041
+ ingress: (_f = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _f !== void 0 ? _f : "all",
7013
7042
  "cpu-boost": true,
7014
7043
  "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment,
7044
+ gpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpu,
7045
+ "gpu-type": customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpuType,
7046
+ ...(0, healthCheck_1.healthCheckCliArgs)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.healthCheck),
7015
7047
  }, ...(0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service"));
7016
- return `${(0, common_1.gcloudRunCmd)()} deploy ${fullServiceName} ${argsString}`;
7048
+ const version = requiresBeta(customConfig) ? "beta" : undefined;
7049
+ return `${(0, common_1.gcloudRunCmd)(version)} deploy ${fullServiceName} ${argsString}`;
7017
7050
  };
7018
7051
  exports.getServiceDeployScript = getServiceDeployScript;
7019
7052
  const getServiceDeleteScript = (context, serviceSuffix) => {
@@ -7028,6 +7061,21 @@ const getServiceDeleteScript = (context, serviceSuffix) => {
7028
7061
  ];
7029
7062
  };
7030
7063
  exports.getServiceDeleteScript = getServiceDeleteScript;
7064
+ const requiresBeta = (config) => {
7065
+ if (!config) {
7066
+ return false;
7067
+ }
7068
+ if (config.gpuType) {
7069
+ return true;
7070
+ }
7071
+ if (config.gpu && config.gpu > 0) {
7072
+ return true;
7073
+ }
7074
+ if (config.healthCheck !== undefined) {
7075
+ return true;
7076
+ }
7077
+ return false;
7078
+ };
7031
7079
  //# sourceMappingURL=cloudRunServices.js.map
7032
7080
 
7033
7081
  /***/ }),
@@ -7114,8 +7162,9 @@ exports.ENV_VARS_FILENAME = "____envvars.yaml";
7114
7162
  "use strict";
7115
7163
 
7116
7164
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7117
- exports.getCloudRunJobArgsArg = exports.getOnDeployExecuteScript = void 0;
7165
+ exports.getOnDeployExecuteScript = void 0;
7118
7166
  const createArgsString_1 = __nccwpck_require__(49598);
7167
+ const getJobOrServiceArgs_1 = __nccwpck_require__(61741);
7119
7168
  const jobName_1 = __nccwpck_require__(9626);
7120
7169
  const cloudRunJobs_1 = __nccwpck_require__(61224);
7121
7170
  const common_1 = __nccwpck_require__(73325);
@@ -7183,19 +7232,11 @@ const getJobRunScriptForExecute = (context, { jobName, config }) => {
7183
7232
  const argString = (0, createArgsString_1.createArgsString)({
7184
7233
  ...commonArgs,
7185
7234
  wait: waitForCompletion === true ? true : undefined,
7186
- args: (0, exports.getCloudRunJobArgsArg)(config.args),
7235
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(config.args),
7187
7236
  });
7188
7237
  const fullJobName = (0, jobName_1.getFullJobName)(context, jobName);
7189
7238
  return `${(0, common_1.gcloudRunCmd)()} jobs execute ${fullJobName.toString()} ${argString}`;
7190
7239
  };
7191
- const getCloudRunJobArgsArg = (args) => {
7192
- return args !== undefined
7193
- ? args.length > 0
7194
- ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
7195
- : ""
7196
- : undefined;
7197
- };
7198
- exports.getCloudRunJobArgsArg = getCloudRunJobArgsArg;
7199
7240
  //# sourceMappingURL=onDeploy.js.map
7200
7241
 
7201
7242
  /***/ }),
@@ -7435,6 +7476,64 @@ exports.getCloudRunStopScripts = getCloudRunStopScripts;
7435
7476
 
7436
7477
  /***/ }),
7437
7478
 
7479
+ /***/ 30193:
7480
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
7481
+
7482
+ "use strict";
7483
+
7484
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
7485
+ exports.healthCheckCliArgs = void 0;
7486
+ const types_1 = __nccwpck_require__(75781);
7487
+ const PORT = 8080;
7488
+ function healthCheckCliArgs(healthCheck) {
7489
+ const shouldNotSetHealthCheck = healthCheck === undefined;
7490
+ if (shouldNotSetHealthCheck) {
7491
+ return undefined;
7492
+ }
7493
+ const shouldUseDefaultProbe = healthCheck === true;
7494
+ if (shouldUseDefaultProbe) {
7495
+ return {
7496
+ "startup-probe": toArgValue(probeToKeyValuePairs(types_1.defaultStartupProbe)),
7497
+ "liveness-probe": toArgValue(probeToKeyValuePairs(types_1.defaultLivenessProbe)),
7498
+ };
7499
+ }
7500
+ return {
7501
+ "startup-probe": toArgValue(probeToKeyValuePairs(healthCheck.startupProbe)),
7502
+ "liveness-probe": healthCheck.livenessProbe
7503
+ ? toArgValue(probeToKeyValuePairs(healthCheck.livenessProbe))
7504
+ : "", // NOTE: empty string ("") removes liveness probe
7505
+ };
7506
+ }
7507
+ exports.healthCheckCliArgs = healthCheckCliArgs;
7508
+ function probeToKeyValuePairs(probe) {
7509
+ const sharedArgs = Object.entries({
7510
+ initialDelaySeconds: probe.initialDelaySeconds,
7511
+ timeoutSeconds: probe.timeoutSeconds,
7512
+ periodSeconds: probe.periodSeconds,
7513
+ failureThreshold: probe.failureThreshold,
7514
+ });
7515
+ switch (probe.type) {
7516
+ case "tcp":
7517
+ return [...sharedArgs, ["tcpSocket.port", PORT]];
7518
+ case "http1":
7519
+ return [
7520
+ ...sharedArgs,
7521
+ ["httpGet.port", PORT],
7522
+ ["httpGet.path", probe.path],
7523
+ // NOTE: headers are not supported by "gcloud beta" at the moment
7524
+ ];
7525
+ default:
7526
+ probe;
7527
+ return [];
7528
+ }
7529
+ }
7530
+ function toArgValue(keyValues) {
7531
+ return keyValues.map(([key, value]) => `${key}=${value}`).join(",");
7532
+ }
7533
+ //# sourceMappingURL=healthCheck.js.map
7534
+
7535
+ /***/ }),
7536
+
7438
7537
  /***/ 34069:
7439
7538
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
7440
7539
 
@@ -7740,6 +7839,25 @@ exports.gcloudServiceAccountLoginCommands = gcloudServiceAccountLoginCommands;
7740
7839
 
7741
7840
  /***/ }),
7742
7841
 
7842
+ /***/ 61741:
7843
+ /***/ ((__unused_webpack_module, exports) => {
7844
+
7845
+ "use strict";
7846
+
7847
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
7848
+ exports.getCloudRunServiceOrJobArgsArg = void 0;
7849
+ const getCloudRunServiceOrJobArgsArg = (args) => {
7850
+ return args !== undefined
7851
+ ? args.length > 0
7852
+ ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
7853
+ : ""
7854
+ : undefined;
7855
+ };
7856
+ exports.getCloudRunServiceOrJobArgsArg = getCloudRunServiceOrJobArgsArg;
7857
+ //# sourceMappingURL=getJobOrServiceArgs.js.map
7858
+
7859
+ /***/ }),
7860
+
7743
7861
  /***/ 38128:
7744
7862
  /***/ ((__unused_webpack_module, exports) => {
7745
7863
 
@@ -8282,7 +8400,9 @@ const createAppConfig = (context, application) => {
8282
8400
  const { healthRoute, command, ...rest } = application !== null && application !== void 0 ? application : {};
8283
8401
  return (0, utils_1.mergeWithMergingArrays)({
8284
8402
  host: context.environment.envVars.HOSTNAME,
8285
- command: command !== null && command !== void 0 ? command : context.build.config.startCommand,
8403
+ command: command !== null && command !== void 0 ? command : (context.build.type !== "disabled"
8404
+ ? context.build.config.startCommand
8405
+ : undefined),
8286
8406
  livenessProbe: {
8287
8407
  httpGet: {
8288
8408
  path: healthRoute !== null && healthRoute !== void 0 ? healthRoute : "__health",
@@ -8462,9 +8582,10 @@ exports.getDependencyTrackDeleteScript = exports.getDependencyTrackUploadScript
8462
8582
  const BashExpression_1 = __nccwpck_require__(42376);
8463
8583
  const sbom_1 = __nccwpck_require__(37038);
8464
8584
  const context_1 = __nccwpck_require__(61724);
8465
- const sbomDeactivated = (context) => (0, context_1.componentContextIsStandaloneBuild)(context) &&
8466
- context.build.config.type === "custom" &&
8467
- context.build.config.sbom === false;
8585
+ const sbomDeactivated = (context) => context.build.type === "disabled" ||
8586
+ ((0, context_1.componentContextIsStandaloneBuild)(context) &&
8587
+ context.build.config.type === "custom" &&
8588
+ context.build.config.sbom === false);
8468
8589
  exports.sbomDeactivated = sbomDeactivated;
8469
8590
  const getDependencyTrackUploadScript = (context) => {
8470
8591
  return (0, exports.sbomDeactivated)(context)
@@ -8514,6 +8635,22 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
8514
8635
  "use strict";
8515
8636
 
8516
8637
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8638
+ exports.defaultLivenessProbe = exports.defaultStartupProbe = void 0;
8639
+ exports.defaultStartupProbe = {
8640
+ type: "http1",
8641
+ path: "/__health",
8642
+ initialDelaySeconds: 5,
8643
+ timeoutSeconds: 1,
8644
+ periodSeconds: 30,
8645
+ failureThreshold: 3,
8646
+ };
8647
+ exports.defaultLivenessProbe = {
8648
+ ...exports.defaultStartupProbe,
8649
+ initialDelaySeconds: 0,
8650
+ timeoutSeconds: 10,
8651
+ periodSeconds: 30,
8652
+ failureThreshold: 3,
8653
+ };
8517
8654
  //# sourceMappingURL=googleCloudRun.js.map
8518
8655
 
8519
8656
  /***/ }),
@@ -8757,7 +8894,9 @@ const getCustomJobs = (context) => {
8757
8894
  return injectDefaultVarsInCustomJobs(context, rawJobs);
8758
8895
  };
8759
8896
  const createJobsForComponentContext = (context) => {
8760
- const buildJobs = build_1.BUILD_TYPES[context.build.buildType].jobs(context);
8897
+ const buildJobs = context.build.type !== "disabled"
8898
+ ? build_1.BUILD_TYPES[context.build.buildType].jobs(context)
8899
+ : [];
8761
8900
  const deployJobs = context.componentConfig.deploy !== false
8762
8901
  ? deploy_1.DEPLOY_TYPES[context.componentConfig.deploy.type].jobs(context)
8763
8902
  : [];
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const setup_1 = require("./setup");
4
+ const autocompletions_1 = require("./utils/autocompletions");
4
5
  exports.default = async (vorpal) => vorpal
5
- .command("project-setup", "Initializes all environments and creates requires resources, service accounts, etc.")
6
- .action(async function () {
7
- await (0, setup_1.setupProject)(this);
6
+ .command("project-setup [component]", "Initializes all environments and creates requires resources, service accounts, etc.")
7
+ .autocomplete(await (0, autocompletions_1.allComponents)())
8
+ .action(async function ({ component }) {
9
+ await (0, setup_1.setupProject)(this, component);
8
10
  });
9
11
  //# sourceMappingURL=commandSetup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commandSetup.js","sourceRoot":"","sources":["../../../../../../../src/apps/cli/commands/project/commandSetup.ts"],"names":[],"mappings":";;AACA,mCAAuC;AAEvC,kBAAe,KAAK,EAAE,MAAc,EAAE,EAAE,CACtC,MAAM;KACH,OAAO,CACN,eAAe,EACf,qFAAqF,CACtF;KACA,MAAM,CAAC,KAAK;IACX,MAAM,IAAA,oBAAY,EAAC,IAAI,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"commandSetup.js","sourceRoot":"","sources":["../../../../../../../src/apps/cli/commands/project/commandSetup.ts"],"names":[],"mappings":";;AACA,mCAAuC;AACvC,6DAAwD;AAExD,kBAAe,KAAK,EAAE,MAAc,EAAE,EAAE,CACtC,MAAM;KACH,OAAO,CACN,2BAA2B,EAC3B,qFAAqF,CACtF;KACA,YAAY,CAAC,MAAM,IAAA,+BAAa,GAAE,CAAC;KACnC,MAAM,CAAC,KAAK,WAAW,EAAE,SAAS,EAAE;IACnC,MAAM,IAAA,oBAAY,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  import type { CommandInstance } from "vorpal";
2
- export declare const setupProject: (instance: CommandInstance) => Promise<void>;
2
+ export declare const setupProject: (instance: CommandInstance, onlyComponents?: string | string[]) => Promise<void>;
@@ -2,32 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setupProject = void 0;
4
4
  const getProjectConfig_1 = require("../../../../../config/getProjectConfig");
5
- const commandConfigSecrets_1 = require("../commandConfigSecrets");
6
5
  const setupAccessTokens_1 = require("./setupAccessTokens");
7
6
  const setupContext_1 = require("./setupContext");
8
7
  const setupTopic_1 = require("./setupTopic");
9
- const setupProject = async (instance) => {
10
- const allContext = await (0, getProjectConfig_1.getAllPipelineContexts)();
8
+ const setupProject = async (instance, onlyComponents) => {
9
+ const allContext = await (0, getProjectConfig_1.getAllPipelineContexts)(onlyComponents);
10
+ instance.log("will setup those contexts:");
11
+ allContext.forEach((context) => {
12
+ instance.log(` - ${context.name}:${context.env}`);
13
+ });
11
14
  for (const context of allContext) {
12
15
  await (0, setupContext_1.setupContext)(instance, context);
13
16
  }
14
17
  await (0, setupAccessTokens_1.setupAccessTokens)(instance);
15
18
  await (0, setupTopic_1.setupTopic)(instance);
16
19
  instance.log("");
17
- const { configSecrets } = await instance.prompt({
18
- default: true,
19
- message: "Before deployments work, you need to config secrets. Do it now?",
20
- name: "configSecrets",
21
- type: "confirm",
22
- });
23
- instance.log("");
24
- if (configSecrets) {
25
- await (0, commandConfigSecrets_1.projectConfigSecrets)(instance);
26
- }
27
- else {
28
- instance.log("👆 don't forget to config secret using `project-config-secrets`");
29
- }
30
- instance.log("");
31
20
  instance.log("gitlab is ready! 🥂");
32
21
  instance.log("\n");
33
22
  instance.log("do not forget to make sure that:");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/setup/index.ts"],"names":[],"mappings":";;;AACA,6EAAgF;AAChF,kEAA+D;AAC/D,2DAAwD;AACxD,iDAA8C;AAC9C,6CAA0C;AAEnC,MAAM,YAAY,GAAG,KA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C,IAAI,CAAC,CAAC;IACnB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC,CAAC;AA3BW,QAAA,YAAY,gBA2BvB"}
@@ -1,3 +1,4 @@
1
1
  export declare const allEnvs: () => Promise<string[]>;
2
+ export declare const allComponents: () => Promise<string[]>;
2
3
  export declare const envAndComponents: () => Promise<string[]>;
3
4
  export declare const allEnvsAndAllComponents: () => Promise<string[]>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.allEnvsAndAllComponents = exports.envAndComponents = exports.allEnvs = void 0;
3
+ exports.allEnvsAndAllComponents = exports.envAndComponents = exports.allComponents = exports.allEnvs = void 0;
4
4
  const pipeline_1 = require("../../../../../../../pipeline/src/index.js");
5
5
  const getProjectConfig_1 = require("../../../../../config/getProjectConfig");
6
6
  const allEnvs = async () => {
@@ -11,6 +11,14 @@ const allEnvs = async () => {
11
11
  return (0, pipeline_1.getAllEnvsInAllComponents)(config);
12
12
  };
13
13
  exports.allEnvs = allEnvs;
14
+ const allComponents = async () => {
15
+ const config = await (0, getProjectConfig_1.getProjectConfig)();
16
+ if (!config) {
17
+ return [];
18
+ }
19
+ return Object.keys(config.components);
20
+ };
21
+ exports.allComponents = allComponents;
14
22
  const envAndComponents = async () => {
15
23
  const allEnvAndcomponents = await (0, getProjectConfig_1.getAllComponentsWithAllEnvsFlat)();
16
24
  return allEnvAndcomponents.reduce((acc, { env, componentName }) => [...acc, env + ":" + componentName], []);
@@ -1 +1 @@
1
- {"version":3,"file":"autocompletions.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/utils/autocompletions.ts"],"names":[],"mappings":";;;AAAA,kDAA4E;AAC5E,6EAGgD;AAEzC,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;IAChC,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAA,oCAAyB,EAAC,MAAM,CAAC,CAAC;AAC3C,CAAC,CAAC;AANW,QAAA,OAAO,WAMlB;AAEK,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;IACzC,MAAM,mBAAmB,GAAG,MAAM,IAAA,kDAA+B,GAAE,CAAC;IAEpE,OAAO,mBAAmB,CAAC,MAAM,CAC/B,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,aAAa,CAAC,EACpE,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B;AAEK,MAAM,uBAAuB,GAAG,KAAK,IAAI,EAAE;IAChD,OAAO,CAAC,GAAG,CAAC,MAAM,IAAA,eAAO,GAAE,CAAC,EAAE,GAAG,CAAC,MAAM,IAAA,wBAAgB,GAAE,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC"}
1
+ {"version":3,"file":"autocompletions.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/utils/autocompletions.ts"],"names":[],"mappings":";;;AAAA,kDAA4E;AAC5E,6EAGgD;AAEzC,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;IAChC,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAA,oCAAyB,EAAC,MAAM,CAAC,CAAC;AAC3C,CAAC,CAAC;AANW,QAAA,OAAO,WAMlB;AAEK,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE;IACtC,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC,CAAC;AAPW,QAAA,aAAa,iBAOxB;AAEK,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;IACzC,MAAM,mBAAmB,GAAG,MAAM,IAAA,kDAA+B,GAAE,CAAC;IAEpE,OAAO,mBAAmB,CAAC,MAAM,CAC/B,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,aAAa,CAAC,EACpE,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B;AAEK,MAAM,uBAAuB,GAAG,KAAK,IAAI,EAAE;IAChD,OAAO,CAAC,GAAG,CAAC,MAAM,IAAA,eAAO,GAAE,CAAC,EAAE,GAAG,CAAC,MAAM,IAAA,wBAAgB,GAAE,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC"}
@@ -11,7 +11,7 @@ export declare const getAllComponentsWithAllEnvsFlat: () => Promise<Array<{
11
11
  export declare const getAllComponentsWithAllEnvsHierarchical: () => Promise<{
12
12
  [componentName: string]: string[];
13
13
  }>;
14
- export declare const getAllPipelineContexts: () => Promise<import("../../../pipeline/src/index.js").ComponentContext[]>;
14
+ export declare const getAllPipelineContexts: (onlyComponent?: string | string[]) => Promise<import("../../../pipeline/src/index.js").ComponentContext[]>;
15
15
  export declare const getEnvironment: (env: string, componentName: string) => Promise<import("../../../pipeline/src/index.js").Environment>;
16
16
  export declare const getGitlabVar: (vorpal: CommandInstance, env: string, componentName: string, variableName: string) => Promise<string>;
17
17
  export declare const getEnvVarsResolved: (vorpal: CommandInstance | null, env: string, componentName: string | null) => Promise<Record<string, string>>;
@@ -69,9 +69,15 @@ const getAllComponentsWithAllEnvsHierarchical = async () => {
69
69
  ]));
70
70
  };
71
71
  exports.getAllComponentsWithAllEnvsHierarchical = getAllComponentsWithAllEnvsHierarchical;
72
- const getAllPipelineContexts = async () => {
72
+ const getAllPipelineContexts = async (onlyComponent) => {
73
+ const onlyComponentsArray = onlyComponent
74
+ ? Array.isArray(onlyComponent)
75
+ ? onlyComponent
76
+ : [onlyComponent]
77
+ : null;
73
78
  return Promise.all((await (0, exports.getAllComponentsWithAllEnvsFlat)())
74
79
  .filter((c) => c.env !== "local")
80
+ .filter((c) => !onlyComponentsArray || onlyComponentsArray.includes(c.componentName))
75
81
  .map(({ env, componentName }) => (0, exports.getPipelineContextByChoice)(env, componentName)));
76
82
  };
77
83
  exports.getAllPipelineContexts = getAllPipelineContexts;
@@ -1 +1 @@
1
- {"version":3,"file":"getProjectConfig.js","sourceRoot":"","sources":["../../../../src/config/getProjectConfig.ts"],"names":[],"mappings":";;;AAKA,kDAM6B;AAG7B,4CAA6E;AAE7E,gDAA+C;AAE/C,2BAA2B;AAE3B,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,IAAI,aAAa,GAAkB,IAAI,CAAC;AAExC,8BAA8B;AAC9B,MAAM,sBAAsB,GAAG,KAAK,IAAI,EAAE;IACxC,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAU,GAAE,CAAC;IACnC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;IACT,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAU,EAAC,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,wCAAwC;QACxC,OAAO;IACT,CAAC;IACD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAChC,MAAM,OAAO,GAAG,IAAA,UAAK,EAAC,IAAI,EAAE,GAAG,EAAE;QAC/B,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,sBAAsB,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;IACH,aAAa,GAAG,MAAM,CAA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