@catladder/cli 0.0.0-main-e126076c → 0.0.0-main-4888e4df
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.
- package/bin/catenv +1 -2
- package/bin/catladder +1 -2
- package/dist/bundles/catenv/index.js +31 -42
- package/dist/bundles/catenv/index.js.map +1 -0
- package/dist/bundles/catenv/sourcemap-register.js +1 -0
- package/dist/bundles/cli/index.js +478 -400
- package/dist/bundles/cli/index.js.map +1 -0
- package/dist/bundles/cli/sourcemap-register.js +1 -0
- package/dist/cli/src/cli.js +21 -7
- package/dist/cli/src/cli.js.map +1 -1
- package/dist/cli/src/commands/availability.d.ts +5 -0
- package/dist/cli/src/commands/availability.js +26 -0
- package/dist/cli/src/commands/availability.js.map +1 -0
- package/dist/cli/src/commands/general/commandKubeCurrentContext.js +1 -1
- package/dist/cli/src/commands/general/commandKubeCurrentContext.js.map +1 -1
- package/dist/cli/src/commands/general/commandKubeGetShell.js +1 -1
- package/dist/cli/src/commands/general/commandKubeGetShell.js.map +1 -1
- package/dist/cli/src/commands/general/commandKubeListNamespaces.js +1 -1
- package/dist/cli/src/commands/general/commandKubeListNamespaces.js.map +1 -1
- package/dist/cli/src/commands/general/commandKubeListPods.js +1 -1
- package/dist/cli/src/commands/general/commandKubeListPods.js.map +1 -1
- package/dist/cli/src/commands/general/commandKubeListSecrets.js +1 -1
- package/dist/cli/src/commands/general/commandKubeListSecrets.js.map +1 -1
- package/dist/cli/src/commands/general/commandKubePortForward.js +1 -1
- package/dist/cli/src/commands/general/commandKubePortForward.js.map +1 -1
- package/dist/cli/src/commands/general/commandKubeStopPortforward.js +1 -1
- package/dist/cli/src/commands/general/commandKubeStopPortforward.js.map +1 -1
- package/dist/cli/src/commands/index.d.ts +9 -8
- package/dist/cli/src/commands/index.js +57 -55
- package/dist/cli/src/commands/index.js.map +1 -1
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js +2 -0
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js.map +1 -1
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.js +2 -0
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.js.map +1 -1
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.js +2 -0
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.js.map +1 -1
- package/dist/cli/src/commands/project/commandCloudSqlProxy.js +2 -0
- package/dist/cli/src/commands/project/commandCloudSqlProxy.js.map +1 -1
- package/dist/cli/src/commands/project/commandOpenLogs.js +18 -3
- package/dist/cli/src/commands/project/commandOpenLogs.js.map +1 -1
- package/dist/cli/src/commands/project/commandPortForward.js +2 -0
- package/dist/cli/src/commands/project/commandPortForward.js.map +1 -1
- package/dist/cli/src/commands/project/commandProjectRestoreDb.js +5 -3
- package/dist/cli/src/commands/project/commandProjectRestoreDb.js.map +1 -1
- package/dist/cli/src/commands/project/{commandDeletePods.d.ts → k8s/commandDeletePods.d.ts} +1 -1
- package/dist/cli/src/commands/project/{commandDeletePods.js → k8s/commandDeletePods.js} +9 -7
- package/dist/cli/src/commands/project/k8s/commandDeletePods.js.map +1 -0
- package/dist/cli/src/commands/project/{commandDeleteProject.d.ts → k8s/commandDeleteProject.d.ts} +1 -1
- package/dist/cli/src/commands/project/{commandDeleteProject.js → k8s/commandDeleteProject.js} +6 -4
- package/dist/cli/src/commands/project/k8s/commandDeleteProject.js.map +1 -0
- package/dist/cli/src/commands/project/{commandGetShell.d.ts → k8s/commandGetShell.d.ts} +1 -1
- package/dist/cli/src/commands/project/{commandGetShell.js → k8s/commandGetShell.js} +9 -7
- package/dist/cli/src/commands/project/k8s/commandGetShell.js.map +1 -0
- package/dist/cli/src/commands/project/{commandListPods.d.ts → k8s/commandListPods.d.ts} +1 -1
- package/dist/cli/src/commands/project/{commandListPods.js → k8s/commandListPods.js} +7 -5
- package/dist/cli/src/commands/project/k8s/commandListPods.js.map +1 -0
- package/dist/cli/src/commands/project/{commandPauseProject.d.ts → k8s/commandNamespace.d.ts} +1 -1
- package/dist/cli/src/commands/project/{commandNamespace.js → k8s/commandNamespace.js} +6 -4
- package/dist/cli/src/commands/project/k8s/commandNamespace.js.map +1 -0
- package/dist/cli/src/commands/project/{commandNamespace.d.ts → k8s/commandPauseProject.d.ts} +1 -1
- package/dist/cli/src/commands/project/{commandPauseProject.js → k8s/commandPauseProject.js} +6 -4
- package/dist/cli/src/commands/project/{commandPauseProject.js.map → k8s/commandPauseProject.js.map} +1 -1
- package/dist/cli/src/commands/project/{commandTriggerCronjob.d.ts → k8s/commandTriggerCronjob.d.ts} +2 -2
- package/dist/cli/src/commands/project/{commandTriggerCronjob.js → k8s/commandTriggerCronjob.js} +10 -8
- package/dist/cli/src/commands/project/k8s/commandTriggerCronjob.js.map +1 -0
- package/dist/cli/src/config/getProjectConfig.js +3 -15
- package/dist/cli/src/config/getProjectConfig.js.map +1 -1
- package/dist/cli/src/core/types.d.ts +2 -0
- package/dist/cli/src/core/types.js +0 -1
- package/dist/cli/src/core/types.js.map +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +8 -8
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +1 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.js +2 -2
- package/dist/pipeline/src/build/base/createAppBuildJob.js.map +1 -1
- package/dist/pipeline/src/build/base/index.d.ts +2 -2
- package/dist/pipeline/src/build/base/index.js +4 -4
- package/dist/pipeline/src/build/base/index.js.map +1 -1
- package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/custom/buildJob.js +1 -1
- package/dist/pipeline/src/build/custom/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/custom/index.d.ts +1 -1
- package/dist/pipeline/src/build/custom/index.js +2 -2
- package/dist/pipeline/src/build/custom/index.js.map +1 -1
- package/dist/pipeline/src/build/rails/build.d.ts +1 -1
- package/dist/pipeline/src/build/rails/build.js +1 -1
- package/dist/pipeline/src/build/rails/build.js.map +1 -1
- package/dist/pipeline/src/build/rails/index.d.ts +1 -1
- package/dist/pipeline/src/build/rails/index.js +2 -2
- package/dist/pipeline/src/build/rails/index.js.map +1 -1
- package/dist/pipeline/src/constants.js +1 -1
- package/dist/pipeline/src/context/createComponentContext.js +3 -3
- package/dist/pipeline/src/context/createComponentContext.js.map +1 -1
- package/dist/pipeline/src/context/createWorkspaceContext.js +1 -1
- package/dist/pipeline/src/context/createWorkspaceContext.js.map +1 -1
- package/dist/pipeline/src/types/context.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/scripts/bundle +2 -2
- package/src/cli.ts +25 -9
- package/src/commands/availability.ts +22 -0
- package/src/commands/general/commandKubeCurrentContext.ts +1 -1
- package/src/commands/general/commandKubeGetShell.ts +1 -1
- package/src/commands/general/commandKubeListNamespaces.ts +1 -1
- package/src/commands/general/commandKubeListPods.ts +1 -1
- package/src/commands/general/commandKubeListSecrets.ts +1 -1
- package/src/commands/general/commandKubePortForward.ts +1 -1
- package/src/commands/general/commandKubeStopPortforward.ts +1 -1
- package/src/commands/index.ts +11 -11
- package/src/commands/mongodb/commandMongoDestroyMember.ts +2 -0
- package/src/commands/mongodb/commandMongoGetShell.ts +2 -0
- package/src/commands/mongodb/commandMongoPortForward.ts +2 -0
- package/src/commands/project/commandCloudSqlProxy.ts +2 -0
- package/src/commands/project/commandOpenLogs.ts +22 -3
- package/src/commands/project/commandPortForward.ts +2 -0
- package/src/commands/project/commandProjectRestoreDb.ts +5 -3
- package/src/commands/project/{commandDeletePods.ts → k8s/commandDeletePods.ts} +10 -8
- package/src/commands/project/{commandDeleteProject.ts → k8s/commandDeleteProject.ts} +6 -4
- package/src/commands/project/{commandGetShell.ts → k8s/commandGetShell.ts} +9 -7
- package/src/commands/project/{commandListPods.ts → k8s/commandListPods.ts} +7 -5
- package/src/commands/project/{commandNamespace.ts → k8s/commandNamespace.ts} +6 -4
- package/src/commands/project/{commandPauseProject.ts → k8s/commandPauseProject.ts} +6 -4
- package/src/commands/project/{commandTriggerCronjob.ts → k8s/commandTriggerCronjob.ts} +10 -8
- package/src/config/getProjectConfig.ts +3 -13
- package/src/core/types.ts +3 -0
- package/dist/cli/src/commands/project/commandDeletePods.js.map +0 -1
- package/dist/cli/src/commands/project/commandDeleteProject.js.map +0 -1
- package/dist/cli/src/commands/project/commandGetShell.js.map +0 -1
- package/dist/cli/src/commands/project/commandListPods.js.map +0 -1
- package/dist/cli/src/commands/project/commandNamespace.js.map +0 -1
- package/dist/cli/src/commands/project/commandTriggerCronjob.js.map +0 -1
package/bin/catenv
CHANGED
package/bin/catladder
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
4
|
/***/ 6057:
|
|
@@ -307,7 +307,6 @@ exports.getJobOnlyEnvVarsResolved = exports.getEnvVarsResolved = exports.getGitl
|
|
|
307
307
|
const pipeline_1 = __nccwpck_require__(241);
|
|
308
308
|
const gitlab_1 = __nccwpck_require__(4508);
|
|
309
309
|
const projects_1 = __nccwpck_require__(7414);
|
|
310
|
-
const fs_1 = __nccwpck_require__(9896);
|
|
311
310
|
var parseChoice_1 = __nccwpck_require__(4272);
|
|
312
311
|
Object.defineProperty(exports, "parseChoice", ({
|
|
313
312
|
enumerable: true,
|
|
@@ -316,31 +315,20 @@ Object.defineProperty(exports, "parseChoice", ({
|
|
|
316
315
|
}
|
|
317
316
|
}));
|
|
318
317
|
let currentConfig = null;
|
|
319
|
-
|
|
320
|
-
const reloadConfigAndObserve = async () => {
|
|
318
|
+
const loadConfig = async () => {
|
|
321
319
|
const gitRoot = await (0, projects_1.getGitRoot)();
|
|
322
320
|
if (!gitRoot) {
|
|
323
321
|
return;
|
|
324
322
|
}
|
|
325
323
|
const result = await (0, pipeline_1.readConfig)(gitRoot);
|
|
326
324
|
if (!result) {
|
|
327
|
-
// can't do anything, there is no config
|
|
328
325
|
return;
|
|
329
326
|
}
|
|
330
|
-
|
|
331
|
-
config,
|
|
332
|
-
path
|
|
333
|
-
} = result;
|
|
334
|
-
const watcher = (0, fs_1.watch)(path, () => {
|
|
335
|
-
watcher.close();
|
|
336
|
-
reloadConfigAndObserve();
|
|
337
|
-
});
|
|
338
|
-
currentConfig = config;
|
|
327
|
+
currentConfig = result.config;
|
|
339
328
|
};
|
|
340
329
|
const getProjectConfig = async () => {
|
|
341
330
|
if (!currentConfig) {
|
|
342
|
-
|
|
343
|
-
await reloadConfigAndObserve();
|
|
331
|
+
await loadConfig();
|
|
344
332
|
}
|
|
345
333
|
return currentConfig;
|
|
346
334
|
};
|
|
@@ -1316,10 +1304,10 @@ const writeDotEnv_1 = __nccwpck_require__(7652);
|
|
|
1316
1304
|
const uniqueAndAlphabeticalSort = arr => {
|
|
1317
1305
|
return (0, lodash_1.uniq)(arr).sort((a, b) => a.localeCompare(b));
|
|
1318
1306
|
};
|
|
1319
|
-
const createBuildJobArtifacts = context => {
|
|
1307
|
+
const createBuildJobArtifacts = async context => {
|
|
1320
1308
|
var _a, _b;
|
|
1321
|
-
const paths = context.type === "workspace" ? context.components.
|
|
1322
|
-
const exclude = context.type === "workspace" ? context.components.
|
|
1309
|
+
const paths = context.type === "workspace" ? (await Promise.all(context.components.map(c => getArtifactsPathForComponent(c)))).flat() : await getArtifactsPathForComponent(context, ["__build_info.json"]);
|
|
1310
|
+
const exclude = context.type === "workspace" ? (await Promise.all(context.components.map(c => getAllArtifactExcludePathsForComponent(c)))).flat() : await getAllArtifactExcludePathsForComponent(context);
|
|
1323
1311
|
return {
|
|
1324
1312
|
paths: uniqueAndAlphabeticalSort(paths),
|
|
1325
1313
|
...(exclude.length > 0 ? {
|
|
@@ -1335,21 +1323,21 @@ const createBuildJobArtifacts = context => {
|
|
|
1335
1323
|
};
|
|
1336
1324
|
};
|
|
1337
1325
|
exports.createBuildJobArtifacts = createBuildJobArtifacts;
|
|
1338
|
-
const _getArtifactPathsForComponent = (c, configKey, additionalPaths) => {
|
|
1326
|
+
const _getArtifactPathsForComponent = async (c, configKey, additionalPaths) => {
|
|
1339
1327
|
var _a, _b;
|
|
1340
|
-
return (_b = [...(c.build.type !== "disabled" ? (_a = c.build.config[configKey]) !== null && _a !== void 0 ? _a : [] : []), ...(additionalPaths !== null && additionalPaths !== void 0 ? additionalPaths : [])]) === null || _b === void 0 ? void 0 : _b.flatMap(artifact => c.build
|
|
1341
1328
|
// in theory, we only need "direct",
|
|
1342
1329
|
// but in some cases project may have packages in the workspace that create build artifacts, which aren't components
|
|
1343
1330
|
// this highly depends on the build tool. To be safe, we get all
|
|
1344
|
-
.getComponentDirs("all")
|
|
1331
|
+
const componentDirs = await c.build.getComponentDirs("all");
|
|
1332
|
+
return (_b = [...(c.build.type !== "disabled" ? (_a = c.build.config[configKey]) !== null && _a !== void 0 ? _a : [] : []), ...(additionalPaths !== null && additionalPaths !== void 0 ? additionalPaths : [])]) === null || _b === void 0 ? void 0 : _b.flatMap(artifact => componentDirs.flatMap(cDir => (0, path_1.join)(cDir, artifact)));
|
|
1345
1333
|
};
|
|
1346
1334
|
const getArtifactsPathForComponent = (c, additionalPaths) => {
|
|
1347
1335
|
return _getArtifactPathsForComponent(c, "artifactsPaths", additionalPaths);
|
|
1348
1336
|
};
|
|
1349
|
-
const getAllArtifactExcludePathsForComponent = c => {
|
|
1337
|
+
const getAllArtifactExcludePathsForComponent = async c => {
|
|
1350
1338
|
return [...getDotEnvPathsForComponent(c),
|
|
1351
1339
|
// always exclude .env files
|
|
1352
|
-
...getArtifactExcludePathsForComponent(c)];
|
|
1340
|
+
...(await getArtifactExcludePathsForComponent(c))];
|
|
1353
1341
|
};
|
|
1354
1342
|
const getArtifactExcludePathsForComponent = (c, additionalPaths) => {
|
|
1355
1343
|
return _getArtifactPathsForComponent(c, "artifactsExcludePaths", additionalPaths);
|
|
@@ -1401,7 +1389,7 @@ const yarn_1 = __nccwpck_require__(8897);
|
|
|
1401
1389
|
const constants_1 = __nccwpck_require__(2727);
|
|
1402
1390
|
const writeBuildInfo_1 = __nccwpck_require__(2877);
|
|
1403
1391
|
const writeDotEnv_1 = __nccwpck_require__(7652);
|
|
1404
|
-
const createAppBuildJob = (context, {
|
|
1392
|
+
const createAppBuildJob = async (context, {
|
|
1405
1393
|
script,
|
|
1406
1394
|
variables,
|
|
1407
1395
|
runnerVariables,
|
|
@@ -1431,7 +1419,7 @@ const createAppBuildJob = (context, {
|
|
|
1431
1419
|
script: [...(context.type === "component" ? (0, writeDotEnv_1.componentContextNeedsBuildTimeDotEnv)(context) ? (0, writeDotEnv_1.writeDotEnv)(context) : [] : context.type === "workspace" ? context.components.filter(c => (0, writeDotEnv_1.componentContextNeedsBuildTimeDotEnv)(c)).flatMap(c => (0, writeDotEnv_1.writeDotEnv)(c)) : []), ...(context.type === "component" ? (0, writeBuildInfo_1.writeBuildInfo)(context) : []), ...(0, yarn_1.ensureNodeVersion)(context),
|
|
1432
1420
|
// in pure node repos, we might want to have the nvmrc file in top-level
|
|
1433
1421
|
`cd ${context.build.dir}`, ...(0, utils_1.ensureArray)(script)],
|
|
1434
|
-
artifacts: (0, createBuildJobArtifact_1.createBuildJobArtifacts)(context)
|
|
1422
|
+
artifacts: await (0, createBuildJobArtifact_1.createBuildJobArtifacts)(context)
|
|
1435
1423
|
}, def);
|
|
1436
1424
|
};
|
|
1437
1425
|
exports.createAppBuildJob = createAppBuildJob;
|
|
@@ -1511,9 +1499,9 @@ const context_1 = __nccwpck_require__(3660);
|
|
|
1511
1499
|
const docker_1 = __nccwpck_require__(2764);
|
|
1512
1500
|
const constants_1 = __nccwpck_require__(2727);
|
|
1513
1501
|
const createAppBuildJob_1 = __nccwpck_require__(1950);
|
|
1514
|
-
const createComponentBuildJobs = (context, definitions) => {
|
|
1502
|
+
const createComponentBuildJobs = async (context, definitions) => {
|
|
1515
1503
|
var _a;
|
|
1516
|
-
return [...(definitions.appBuild && (0, context_1.componentContextIsStandaloneBuild)(context) ? [(0, createAppBuildJob_1.createAppBuildJob)(context, definitions.appBuild)] : []), ...((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobBase)(context, {
|
|
1504
|
+
return [...(definitions.appBuild && (0, context_1.componentContextIsStandaloneBuild)(context) ? [await (0, createAppBuildJob_1.createAppBuildJob)(context, definitions.appBuild)] : []), ...((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobBase)(context, {
|
|
1517
1505
|
...definitions.dockerBuild,
|
|
1518
1506
|
needs: [...((_a = definitions.dockerBuild.needs) !== null && _a !== void 0 ? _a : []), ...(definitions.appBuild && (0, context_1.componentContextIsStandaloneBuild)(context) ? [constants_1.APP_BUILD_JOB_NAME] : (0, context_1.componentContextHasWorkspaceBuild)(context) ? [{
|
|
1519
1507
|
job: constants_1.APP_BUILD_JOB_NAME,
|
|
@@ -1523,8 +1511,8 @@ const createComponentBuildJobs = (context, definitions) => {
|
|
|
1523
1511
|
})] : [])];
|
|
1524
1512
|
};
|
|
1525
1513
|
exports.createComponentBuildJobs = createComponentBuildJobs;
|
|
1526
|
-
const createWorkspaceBuildJobs = (context, definitions) => {
|
|
1527
|
-
return definitions.appBuild ? [(0, createAppBuildJob_1.createAppBuildJob)(context, definitions.appBuild)] : [];
|
|
1514
|
+
const createWorkspaceBuildJobs = async (context, definitions) => {
|
|
1515
|
+
return definitions.appBuild ? [await (0, createAppBuildJob_1.createAppBuildJob)(context, definitions.appBuild)] : [];
|
|
1528
1516
|
};
|
|
1529
1517
|
exports.createWorkspaceBuildJobs = createWorkspaceBuildJobs;
|
|
1530
1518
|
|
|
@@ -1723,7 +1711,7 @@ const docker_1 = __nccwpck_require__(2764);
|
|
|
1723
1711
|
const types_1 = __nccwpck_require__(9851);
|
|
1724
1712
|
const base_1 = __nccwpck_require__(8121);
|
|
1725
1713
|
const createBuildJobDefinition_1 = __nccwpck_require__(6254);
|
|
1726
|
-
const createCustomBuildJobs = context => {
|
|
1714
|
+
const createCustomBuildJobs = async context => {
|
|
1727
1715
|
const buildConfig = context.build.config;
|
|
1728
1716
|
if (!(0, types_1.isOfBuildType)(buildConfig, "custom")) {
|
|
1729
1717
|
throw new Error("deploy config is not custom");
|
|
@@ -1752,8 +1740,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
1752
1740
|
exports.createCustomJobs = void 0;
|
|
1753
1741
|
const buildJob_1 = __nccwpck_require__(985);
|
|
1754
1742
|
const testJob_1 = __nccwpck_require__(7039);
|
|
1755
|
-
const createCustomJobs = context => {
|
|
1756
|
-
return [...(0, testJob_1.createCustomTestJobs)(context), ...(0, buildJob_1.createCustomBuildJobs)(context)];
|
|
1743
|
+
const createCustomJobs = async context => {
|
|
1744
|
+
return [...(0, testJob_1.createCustomTestJobs)(context), ...(await (0, buildJob_1.createCustomBuildJobs)(context))];
|
|
1757
1745
|
};
|
|
1758
1746
|
exports.createCustomJobs = createCustomJobs;
|
|
1759
1747
|
|
|
@@ -2497,7 +2485,7 @@ const __1 = __nccwpck_require__(241);
|
|
|
2497
2485
|
const base_1 = __nccwpck_require__(8121);
|
|
2498
2486
|
const docker_1 = __nccwpck_require__(2764);
|
|
2499
2487
|
const types_1 = __nccwpck_require__(9851);
|
|
2500
|
-
const createRailsBuildJobs = context => {
|
|
2488
|
+
const createRailsBuildJobs = async context => {
|
|
2501
2489
|
var _a, _b, _c;
|
|
2502
2490
|
const buildConfig = context.build.config;
|
|
2503
2491
|
if (!(0, types_1.isOfBuildType)(buildConfig, "rails")) {
|
|
@@ -2548,8 +2536,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
2548
2536
|
exports.createRailsJobs = void 0;
|
|
2549
2537
|
const build_1 = __nccwpck_require__(3188);
|
|
2550
2538
|
const testJob_1 = __nccwpck_require__(7983);
|
|
2551
|
-
const createRailsJobs = context => {
|
|
2552
|
-
return [...(0, testJob_1.createRailsTestJobs)(context), ...(0, build_1.createRailsBuildJobs)(context)];
|
|
2539
|
+
const createRailsJobs = async context => {
|
|
2540
|
+
return [...(0, testJob_1.createRailsTestJobs)(context), ...(await (0, build_1.createRailsBuildJobs)(context))];
|
|
2553
2541
|
};
|
|
2554
2542
|
exports.createRailsJobs = createRailsJobs;
|
|
2555
2543
|
|
|
@@ -2824,7 +2812,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
2824
2812
|
value: true
|
|
2825
2813
|
}));
|
|
2826
2814
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
2827
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
2815
|
+
exports.PIPELINE_IMAGE_TAG = "main-4888e4df" || 0;
|
|
2828
2816
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
2829
2817
|
|
|
2830
2818
|
/***/ }),
|
|
@@ -2900,18 +2888,18 @@ const createComponentContext = async ctx => {
|
|
|
2900
2888
|
deploy: {}
|
|
2901
2889
|
};
|
|
2902
2890
|
const componentConfig = (0, utils_1.mergeWithMergingArrays)(defaults, componentConfigWithoutDefaults);
|
|
2903
|
-
const
|
|
2891
|
+
const environment = await (0, getEnvironment_1.getEnvironment)(ctx);
|
|
2904
2892
|
const {
|
|
2905
2893
|
deploy,
|
|
2906
2894
|
build,
|
|
2907
2895
|
customJobs,
|
|
2908
2896
|
dir
|
|
2909
2897
|
} = componentConfig;
|
|
2910
|
-
const getComponentDirs = mode => {
|
|
2898
|
+
const getComponentDirs = async mode => {
|
|
2911
2899
|
var _a;
|
|
2912
2900
|
return [dir,
|
|
2913
2901
|
// also copy workspace dependencies in monorepo if packages are shared and they create build artifacts
|
|
2914
|
-
...(mode === "all" ? (_a =
|
|
2902
|
+
...(mode === "all" ? (_a = (await packageManagerInfoPromise).currentWorkspaceDependencies) !== null && _a !== void 0 ? _a : [] : [])];
|
|
2915
2903
|
};
|
|
2916
2904
|
const _getBuildContext = () => {
|
|
2917
2905
|
var _a;
|
|
@@ -3014,7 +3002,7 @@ async function createWorkspaceContext({
|
|
|
3014
3002
|
build: {
|
|
3015
3003
|
type: "workspace",
|
|
3016
3004
|
dir: (_b = workspaceConfig.dir) !== null && _b !== void 0 ? _b : ".",
|
|
3017
|
-
getComponentDirs: mode => (0, lodash_1.uniq)(components.
|
|
3005
|
+
getComponentDirs: async mode => (0, lodash_1.uniq)((await Promise.all(components.map(c => c.build.getComponentDirs(mode)))).flat()),
|
|
3018
3006
|
buildType: workspaceConfig.type,
|
|
3019
3007
|
config: workspaceConfig
|
|
3020
3008
|
}
|
|
@@ -54474,4 +54462,5 @@ module.exports = /*#__PURE__*/JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45
|
|
|
54474
54462
|
/******/ module.exports = __webpack_exports__;
|
|
54475
54463
|
/******/
|
|
54476
54464
|
/******/ })()
|
|
54477
|
-
;
|
|
54465
|
+
;
|
|
54466
|
+
//# sourceMappingURL=index.js.map
|