@catladder/cli 0.0.0-main-93f3e75d → 0.0.0-main-085e963c
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/dist/bundles/catenv/index.js +37 -28
- package/dist/bundles/cli/index.js +37 -28
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js.map +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js.map +1 -1
- package/dist/cli/src/config/getProjectConfig.d.ts +2 -2
- package/dist/cli/src/config/getProjectConfig.js +1 -1
- package/dist/cli/src/config/getProjectConfig.js.map +1 -1
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +2 -2
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js.map +1 -1
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +2 -2
- package/dist/cli/src/gcloud/serviceAccounts.js.map +1 -1
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +3 -3
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js.map +1 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +2 -2
- package/dist/pipeline/src/build/base/createAppBuildJob.js +1 -1
- 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.map +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +2 -2
- package/dist/pipeline/src/build/base/writeBuildInfo.js.map +1 -1
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +2 -2
- package/dist/pipeline/src/build/base/writeDotEnv.js.map +1 -1
- package/dist/pipeline/src/build/custom/buildJob.d.ts +2 -2
- package/dist/pipeline/src/build/custom/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/custom/index.d.ts +2 -2
- package/dist/pipeline/src/build/custom/index.js.map +1 -1
- package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
- package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
- package/dist/pipeline/src/build/docker.d.ts +9 -9
- package/dist/pipeline/src/build/docker.js.map +1 -1
- package/dist/pipeline/src/build/index.d.ts +2 -2
- package/dist/pipeline/src/build/node/buildJob.d.ts +2 -2
- package/dist/pipeline/src/build/node/buildJob.js +6 -6
- package/dist/pipeline/src/build/node/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/node/cache.d.ts +5 -5
- package/dist/pipeline/src/build/node/cache.js +4 -4
- package/dist/pipeline/src/build/node/cache.js.map +1 -1
- package/dist/pipeline/src/build/node/index.d.ts +4 -4
- package/dist/pipeline/src/build/node/index.js.map +1 -1
- package/dist/pipeline/src/build/node/meteor.d.ts +2 -2
- package/dist/pipeline/src/build/node/meteor.js +2 -2
- package/dist/pipeline/src/build/node/meteor.js.map +1 -1
- package/dist/pipeline/src/build/node/testJob.d.ts +2 -2
- package/dist/pipeline/src/build/node/testJob.js +4 -4
- package/dist/pipeline/src/build/node/testJob.js.map +1 -1
- package/dist/pipeline/src/build/node/yarn.d.ts +4 -4
- package/dist/pipeline/src/build/node/yarn.js +1 -3
- package/dist/pipeline/src/build/node/yarn.js.map +1 -1
- package/dist/pipeline/src/build/rails/build.d.ts +2 -2
- package/dist/pipeline/src/build/rails/build.js.map +1 -1
- package/dist/pipeline/src/build/rails/index.d.ts +2 -2
- package/dist/pipeline/src/build/rails/index.js.map +1 -1
- package/dist/pipeline/src/build/rails/test.d.ts +2 -2
- package/dist/pipeline/src/build/rails/test.js.map +1 -1
- package/dist/pipeline/src/build/sbom.d.ts +2 -2
- package/dist/pipeline/src/build/sbom.js +2 -2
- package/dist/pipeline/src/build/sbom.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironment.d.ts +2 -2
- package/dist/pipeline/src/context/getEnvironment.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +2 -2
- package/dist/pipeline/src/context/getEnvironmentContext.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +4 -4
- package/dist/pipeline/src/context/getEnvironmentVariables.js.map +1 -1
- package/dist/pipeline/src/context/getLabels.d.ts +2 -2
- package/dist/pipeline/src/context/getLabels.js.map +1 -1
- package/dist/pipeline/src/context/index.d.ts +7 -3
- package/dist/pipeline/src/context/index.js +12 -3
- package/dist/pipeline/src/context/index.js.map +1 -1
- package/dist/pipeline/src/deploy/base/deploy.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/deploy.js.map +1 -1
- package/dist/pipeline/src/deploy/base/index.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/index.js.map +1 -1
- package/dist/pipeline/src/deploy/base/rollback.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/rollback.js.map +1 -1
- package/dist/pipeline/src/deploy/base/stop.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/stop.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +7 -7
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +6 -6
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +3 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +4 -4
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +3 -3
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +2 -2
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js.map +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +2 -2
- package/dist/pipeline/src/deploy/custom/deployJob.js +3 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +2 -2
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/index.d.ts +2 -2
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +3 -3
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +2 -2
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +2 -2
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +2 -2
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +2 -2
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js.map +1 -1
- package/dist/pipeline/src/deploy/sbom.d.ts +4 -4
- package/dist/pipeline/src/deploy/sbom.js.map +1 -1
- package/dist/pipeline/src/deploy/utils.d.ts +2 -2
- package/dist/pipeline/src/deploy/utils.js.map +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +2 -2
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.js.map +1 -1
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js.map +1 -1
- package/dist/pipeline/src/types/config.d.ts +2 -2
- package/dist/pipeline/src/types/context.d.ts +16 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apps/cli/commands/project/commandCloudSqlProxy.ts +3 -3
- package/src/apps/cli/commands/project/commandPortForward.ts +5 -2
- package/src/apps/cli/commands/project/setup/setupCloudRun.ts +2 -2
- package/src/apps/cli/commands/project/setup/setupContext.ts +2 -2
- package/src/apps/cli/commands/project/setup/setupKubernetes.ts +2 -2
- package/src/apps/cli/commands/project/utils/ensureNamespace.ts +2 -2
- package/src/config/getProjectConfig.ts +2 -2
- package/src/gcloud/cloudRun/openCloudRunDashboards.ts +2 -2
- package/src/gcloud/serviceAccounts.ts +3 -3
- package/src/kubernetes/openKubernetesDashboards.ts +3 -3
|
@@ -811,7 +811,7 @@ var getPipelineContextByChoice = function (env, componentName) { return __awaite
|
|
|
811
811
|
case 0: return [4 /*yield*/, (0, exports.getProjectConfig)()];
|
|
812
812
|
case 1:
|
|
813
813
|
config = _a.sent();
|
|
814
|
-
return [4 /*yield*/, (0, pipeline_1.
|
|
814
|
+
return [4 /*yield*/, (0, pipeline_1.createComponentContext)({
|
|
815
815
|
config: config,
|
|
816
816
|
componentName: componentName,
|
|
817
817
|
env: env,
|
|
@@ -2271,7 +2271,7 @@ var createAppBuildJob = function (context, _a) {
|
|
|
2271
2271
|
runnerVariables: __assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), (runnerVariables !== null && runnerVariables !== void 0 ? runnerVariables : {})), ((_c = context.componentConfig.build.runnerVariables) !== null && _c !== void 0 ? _c : {})),
|
|
2272
2272
|
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((context.componentConfig.dotEnv === true // don't build when set to `local`
|
|
2273
2273
|
? (0, writeDotEnv_1.writeDotEnv)(context)
|
|
2274
|
-
: [])), false), __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), [
|
|
2274
|
+
: [])), false), __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context.buildContext)), false), [
|
|
2275
2275
|
"cd ".concat(context.componentConfig.dir)
|
|
2276
2276
|
], false), __read(((_d = (0, utils_1.ensureArray)(script)) !== null && _d !== void 0 ? _d : [])), false),
|
|
2277
2277
|
artifacts: {
|
|
@@ -2968,18 +2968,18 @@ var createNodeBuildJobs = function (context) {
|
|
|
2968
2968
|
throw new Error("deploy config is not node, node-static or storybook");
|
|
2969
2969
|
}
|
|
2970
2970
|
var defaultImage = (0, runner_1.getRunnerImage)("jobs-default");
|
|
2971
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
2971
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext);
|
|
2972
2972
|
return (0, base_1.createBuildJobs)(context, {
|
|
2973
2973
|
appBuild: buildConfig.buildCommand !== null
|
|
2974
2974
|
? {
|
|
2975
2975
|
image: (_a = buildConfig.jobImage) !== null && _a !== void 0 ? _a : defaultImage,
|
|
2976
2976
|
runnerVariables: constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
2977
|
-
cache: __spreadArray(__spreadArray(__spreadArray([], __read(((_b = (0, utils_1.ensureArray)(buildConfig.jobCache)) !== null && _b !== void 0 ? _b : [])), false), __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
2977
|
+
cache: __spreadArray(__spreadArray(__spreadArray([], __read(((_b = (0, utils_1.ensureArray)(buildConfig.jobCache)) !== null && _b !== void 0 ? _b : [])), false), __read((0, cache_1.getNodeCache)(context.buildContext)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
2978
2978
|
script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read(((_c = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _c !== void 0 ? _c : [])), false),
|
|
2979
2979
|
artifacts: {
|
|
2980
2980
|
paths: __spreadArray([
|
|
2981
2981
|
context.componentConfig.dir
|
|
2982
|
-
], __read(((_e = (_d = context.packageManagerInfo) === null || _d === void 0 ? void 0 : _d.currentWorkspaceDependencies) !== null && _e !== void 0 ? _e : [])), false).flatMap(function (dir) {
|
|
2982
|
+
], __read(((_e = (_d = context.buildContext.packageManagerInfo) === null || _d === void 0 ? void 0 : _d.currentWorkspaceDependencies) !== null && _e !== void 0 ? _e : [])), false).flatMap(function (dir) {
|
|
2983
2983
|
var _a, _b;
|
|
2984
2984
|
return __spreadArray([
|
|
2985
2985
|
(0, path_1.join)(dir, "__build_info.json"),
|
|
@@ -2999,11 +2999,11 @@ var createNodeBuildJobs = function (context) {
|
|
|
2999
2999
|
script: (0, docker_1.getDockerBuildDefaultScript)(context, buildConfig.type === "node-static" || buildConfig.type === "storybook"
|
|
3000
3000
|
? "ensureNginxDockerfile"
|
|
3001
3001
|
: "ensureNodeDockerfile"),
|
|
3002
|
-
cache: __spreadArray([], __read((0, cache_1.getYarnCache)(context, "pull")), false),
|
|
3002
|
+
cache: __spreadArray([], __read((0, cache_1.getYarnCache)(context.buildContext, "pull")), false),
|
|
3003
3003
|
variables: {
|
|
3004
3004
|
// only required for non static
|
|
3005
|
-
DOCKER_COPY_AND_INSTALL_APP: (0, yarn_1.getDockerAppCopyAndBuildScript)(context),
|
|
3006
|
-
DOCKER_COPY_WORKSPACE_FILES: (_g = (_f = context.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.pathsToCopyInDocker.map(function (dir) { return "COPY --chown=node:node ".concat(dir, " /app/").concat(dir); })) === null || _g === void 0 ? void 0 : _g.join("\n"),
|
|
3005
|
+
DOCKER_COPY_AND_INSTALL_APP: (0, yarn_1.getDockerAppCopyAndBuildScript)(context.buildContext),
|
|
3006
|
+
DOCKER_COPY_WORKSPACE_FILES: (_g = (_f = context.buildContext.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.pathsToCopyInDocker.map(function (dir) { return "COPY --chown=node:node ".concat(dir, " /app/").concat(dir); })) === null || _g === void 0 ? void 0 : _g.join("\n"),
|
|
3007
3007
|
},
|
|
3008
3008
|
},
|
|
3009
3009
|
});
|
|
@@ -3063,9 +3063,9 @@ var getYarnCache = function (context, policy) {
|
|
|
3063
3063
|
paths: [".yarn"],
|
|
3064
3064
|
}
|
|
3065
3065
|
: {
|
|
3066
|
-
key: (0, slugify_1.default)(context.
|
|
3066
|
+
key: (0, slugify_1.default)(context.dir) + "-yarn",
|
|
3067
3067
|
policy: policy,
|
|
3068
|
-
paths: [(0, path_1.join)(context.
|
|
3068
|
+
paths: [(0, path_1.join)(context.dir, ".yarn")],
|
|
3069
3069
|
},
|
|
3070
3070
|
];
|
|
3071
3071
|
};
|
|
@@ -3081,7 +3081,7 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
3081
3081
|
// if component is in a shared workspace, use workspace cache. use individual cache else
|
|
3082
3082
|
key: componentIsInWorkspace
|
|
3083
3083
|
? "node-modules-workspace"
|
|
3084
|
-
: (0, slugify_1.default)(context.
|
|
3084
|
+
: (0, slugify_1.default)(context.dir) + "-node-modules", // we use the dirname, not the component name, because in certain cases we have two apps in the same directory and want to share the cache, e.g. when having storybook in the same package.json
|
|
3085
3085
|
policy: policy,
|
|
3086
3086
|
paths: __spreadArray([], __read((componentIsInWorkspace
|
|
3087
3087
|
? (0, lodash_1.uniq)(__spreadArray([
|
|
@@ -3089,7 +3089,7 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
3089
3089
|
], __read(((_c = (_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.workspaces.map(function (w) {
|
|
3090
3090
|
return (0, path_1.join)(w.location, "node_modules");
|
|
3091
3091
|
})) !== null && _c !== void 0 ? _c : [])), false))
|
|
3092
|
-
: [(0, path_1.join)(context.
|
|
3092
|
+
: [(0, path_1.join)(context.dir, "node_modules")])), false),
|
|
3093
3093
|
},
|
|
3094
3094
|
];
|
|
3095
3095
|
};
|
|
@@ -3234,11 +3234,11 @@ var createMeteorBuildJobs = function (context) {
|
|
|
3234
3234
|
if (!(0, types_1.isOfBuildType)(buildConfig, "meteor")) {
|
|
3235
3235
|
throw new Error("deploy config is not meteor");
|
|
3236
3236
|
}
|
|
3237
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
3237
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext);
|
|
3238
3238
|
return (0, base_1.createBuildJobs)(context, {
|
|
3239
3239
|
appBuild: buildConfig.buildCommand !== null
|
|
3240
3240
|
? {
|
|
3241
|
-
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read(getMeteorCache(context)), false),
|
|
3241
|
+
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context.buildContext)), false), __read(getMeteorCache(context)), false),
|
|
3242
3242
|
image: (0, runner_1.getRunnerImage)("jobs-meteor"),
|
|
3243
3243
|
variables: {
|
|
3244
3244
|
METEOR_DISABLE_OPTIMISTIC_CACHING: "1", // see https://forums.meteor.com/t/veeery-long-building-time-inside-docker-container/58673/17?u=macrozone
|
|
@@ -3336,21 +3336,21 @@ var createNodeTestJobs = function (context) {
|
|
|
3336
3336
|
needs: [],
|
|
3337
3337
|
envMode: "none",
|
|
3338
3338
|
};
|
|
3339
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
3339
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext);
|
|
3340
3340
|
var auditJob = buildConfig.audit !== false
|
|
3341
3341
|
? __assign(__assign(__assign({ name: "🛡 audit" }, base), { image: (_c = (_b = buildConfig.audit) === null || _b === void 0 ? void 0 : _b.jobImage) !== null && _c !== void 0 ? _c : defaultImage, cache: undefined, script: __spreadArray([
|
|
3342
3342
|
"cd ".concat(context.componentConfig.dir)
|
|
3343
3343
|
], __read(((_e = (0, utils_1.ensureArray)((_d = buildConfig.audit) === null || _d === void 0 ? void 0 : _d.command)) !== null && _e !== void 0 ? _e : [
|
|
3344
|
-
((_f = context.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.isClassic)
|
|
3344
|
+
((_f = context.buildContext.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.isClassic)
|
|
3345
3345
|
? "yarn audit"
|
|
3346
3346
|
: "yarn npm audit --environment production", // yarn 2
|
|
3347
3347
|
])), false), allow_failure: true }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts)) : null;
|
|
3348
3348
|
var lintJob = buildConfig.lint !== false
|
|
3349
|
-
? __assign(__assign(__assign({ name: "👮 lint" }, base), { image: (_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.jobImage) !== null && _k !== void 0 ? _k : defaultImage, cache: (0, cache_1.getNodeCache)(context), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), [
|
|
3349
|
+
? __assign(__assign(__assign({ name: "👮 lint" }, base), { image: (_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.jobImage) !== null && _k !== void 0 ? _k : defaultImage, cache: (0, cache_1.getNodeCache)(context.buildContext), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context.buildContext)), false), [
|
|
3350
3350
|
"cd ".concat(context.componentConfig.dir)
|
|
3351
3351
|
], false), __read(yarnInstall), false), __read(((_m = (0, utils_1.ensureArray)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : ["yarn lint"])), false) }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts)) : null;
|
|
3352
3352
|
var testJob = buildConfig.test !== false
|
|
3353
|
-
? __assign(__assign(__assign({ name: "🧪 test" }, base), { image: (_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.jobImage) !== null && _r !== void 0 ? _r : (0, runner_1.getRunnerImage)("jobs-testing-chrome"), cache: (0, cache_1.getNodeCache)(context), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), [
|
|
3353
|
+
? __assign(__assign(__assign({ name: "🧪 test" }, base), { image: (_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.jobImage) !== null && _r !== void 0 ? _r : (0, runner_1.getRunnerImage)("jobs-testing-chrome"), cache: (0, cache_1.getNodeCache)(context.buildContext), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context.buildContext)), false), [
|
|
3354
3354
|
"cd ".concat(context.componentConfig.dir)
|
|
3355
3355
|
], false), __read(yarnInstall), false), __read(((_t = (0, utils_1.ensureArray)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : ["yarn test"])), false) }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.artifactsReports, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifacts)) : null;
|
|
3356
3356
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -3414,9 +3414,7 @@ var ensureNodeVersion = function (context) {
|
|
|
3414
3414
|
exports.ensureNodeVersion = ensureNodeVersion;
|
|
3415
3415
|
var getYarnInstall = function (context, options) {
|
|
3416
3416
|
var _a;
|
|
3417
|
-
var postInstall = "postInstall" in context.
|
|
3418
|
-
? context.componentConfig.build.postInstall
|
|
3419
|
-
: null;
|
|
3417
|
+
var postInstall = "postInstall" in context.config ? context.config.postInstall : null;
|
|
3420
3418
|
return __spreadArray(__spreadArray(__spreadArray([], __read((0, exports.ensureNodeVersion)(context)), false), __read((0, gitlab_1.collapseableSection)("yarninstall", "Yarn install")([getYarnInstallCommand(context)])), false), __read((postInstall && !(options === null || options === void 0 ? void 0 : options.noCustomPostInstall)
|
|
3421
3419
|
? (0, gitlab_1.collapseableSection)("postinstall", "Custom post install")((_a = (0, utils_1.ensureArray)(postInstall)) !== null && _a !== void 0 ? _a : [])
|
|
3422
3420
|
: [])), false);
|
|
@@ -3688,9 +3686,9 @@ var createSbomBuildJob = function (context) {
|
|
|
3688
3686
|
var buildConfig = context.componentConfig.build;
|
|
3689
3687
|
var defaultImage = "aquasec/trivy:0.38.3";
|
|
3690
3688
|
var defaultScript = [
|
|
3691
|
-
"trivy fs --quiet --format cyclonedx --output \"".concat(exports.SBOM_FILE, "\" ").concat(((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace)
|
|
3689
|
+
"trivy fs --quiet --format cyclonedx --output \"".concat(exports.SBOM_FILE, "\" ").concat(((_a = context.buildContext.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace)
|
|
3692
3690
|
? "."
|
|
3693
|
-
: context.
|
|
3691
|
+
: context.buildContext.dir),
|
|
3694
3692
|
];
|
|
3695
3693
|
var image = buildConfig.type === "custom" && buildConfig.sbom !== false
|
|
3696
3694
|
? (_c = (_b = buildConfig.sbom) === null || _b === void 0 ? void 0 : _b.jobImage) !== null && _c !== void 0 ? _c : defaultImage
|
|
@@ -4406,7 +4404,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
4406
4404
|
}
|
|
4407
4405
|
};
|
|
4408
4406
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4409
|
-
exports.createContext = void 0;
|
|
4407
|
+
exports.createContext = exports.createComponentContext = void 0;
|
|
4410
4408
|
var build_1 = __nccwpck_require__(7862);
|
|
4411
4409
|
var deploy_1 = __nccwpck_require__(8483);
|
|
4412
4410
|
var utils_1 = __nccwpck_require__(2497);
|
|
@@ -4414,7 +4412,7 @@ var getEnvironment_1 = __nccwpck_require__(5699);
|
|
|
4414
4412
|
var getEnvironmentContext_1 = __nccwpck_require__(3663);
|
|
4415
4413
|
__exportStar(__nccwpck_require__(5699), exports);
|
|
4416
4414
|
__exportStar(__nccwpck_require__(5133), exports);
|
|
4417
|
-
var
|
|
4415
|
+
var createComponentContext = function (ctx) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4418
4416
|
var envContext, componentConfigWithoutDefaults, defaults, componentConfig;
|
|
4419
4417
|
var _a;
|
|
4420
4418
|
return __generator(this, function (_b) {
|
|
@@ -4438,6 +4436,11 @@ var createContext = function (ctx) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
4438
4436
|
_a = {
|
|
4439
4437
|
fullConfig: ctx.config,
|
|
4440
4438
|
componentConfig: componentConfig,
|
|
4439
|
+
buildContext: {
|
|
4440
|
+
dir: componentConfig.dir,
|
|
4441
|
+
packageManagerInfo: ctx.packageManagerInfo,
|
|
4442
|
+
config: componentConfig.build,
|
|
4443
|
+
},
|
|
4441
4444
|
componentName: ctx.componentName
|
|
4442
4445
|
};
|
|
4443
4446
|
return [4 /*yield*/, (0, getEnvironment_1.getEnvironment)(ctx)];
|
|
@@ -4449,7 +4452,11 @@ var createContext = function (ctx) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
4449
4452
|
}
|
|
4450
4453
|
});
|
|
4451
4454
|
}); };
|
|
4452
|
-
exports.
|
|
4455
|
+
exports.createComponentContext = createComponentContext;
|
|
4456
|
+
/**
|
|
4457
|
+
* @deprecated use createComponentContext instead
|
|
4458
|
+
*/
|
|
4459
|
+
exports.createContext = exports.createComponentContext;
|
|
4453
4460
|
//# sourceMappingURL=index.js.map
|
|
4454
4461
|
|
|
4455
4462
|
/***/ }),
|
|
@@ -6341,7 +6348,9 @@ var createCustomDeployJobs = function (context) {
|
|
|
6341
6348
|
throw new Error("deploy config is not custom");
|
|
6342
6349
|
}
|
|
6343
6350
|
// FIXME: custom deploy currently assumes yarn-based project
|
|
6344
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context, {
|
|
6351
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext, {
|
|
6352
|
+
noCustomPostInstall: true,
|
|
6353
|
+
});
|
|
6345
6354
|
return (0, base_1.createDeployementJobs)(context, {
|
|
6346
6355
|
deploy: {
|
|
6347
6356
|
image: (_a = deployConfig.jobImage) !== null && _a !== void 0 ? _a : (0, runner_1.getRunnerImage)("jobs-default"),
|
|
@@ -7642,7 +7651,7 @@ var createJobsForComponent = function (contextContext) { return __awaiter(void 0
|
|
|
7642
7651
|
case 0: return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfo)(contextContext.config, contextContext.componentName)];
|
|
7643
7652
|
case 1:
|
|
7644
7653
|
packageManagerInfo = _a.sent();
|
|
7645
|
-
return [4 /*yield*/, (0, context_1.
|
|
7654
|
+
return [4 /*yield*/, (0, context_1.createComponentContext)(__assign(__assign({}, contextContext), { packageManagerInfo: packageManagerInfo }))];
|
|
7646
7655
|
case 2:
|
|
7647
7656
|
context = _a.sent();
|
|
7648
7657
|
return [2 /*return*/, createRawJobs(context).map(function (job) { return (__assign(__assign({}, job), { context: context })); })];
|
|
@@ -6513,7 +6513,7 @@ var getPipelineContextByChoice = function (env, componentName) { return __awaite
|
|
|
6513
6513
|
case 0: return [4 /*yield*/, (0, exports.getProjectConfig)()];
|
|
6514
6514
|
case 1:
|
|
6515
6515
|
config = _a.sent();
|
|
6516
|
-
return [4 /*yield*/, (0, pipeline_1.
|
|
6516
|
+
return [4 /*yield*/, (0, pipeline_1.createComponentContext)({
|
|
6517
6517
|
config: config,
|
|
6518
6518
|
componentName: componentName,
|
|
6519
6519
|
env: env,
|
|
@@ -9695,7 +9695,7 @@ var createAppBuildJob = function (context, _a) {
|
|
|
9695
9695
|
runnerVariables: __assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), (runnerVariables !== null && runnerVariables !== void 0 ? runnerVariables : {})), ((_c = context.componentConfig.build.runnerVariables) !== null && _c !== void 0 ? _c : {})),
|
|
9696
9696
|
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((context.componentConfig.dotEnv === true // don't build when set to `local`
|
|
9697
9697
|
? (0, writeDotEnv_1.writeDotEnv)(context)
|
|
9698
|
-
: [])), false), __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), [
|
|
9698
|
+
: [])), false), __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context.buildContext)), false), [
|
|
9699
9699
|
"cd ".concat(context.componentConfig.dir)
|
|
9700
9700
|
], false), __read(((_d = (0, utils_1.ensureArray)(script)) !== null && _d !== void 0 ? _d : [])), false),
|
|
9701
9701
|
artifacts: {
|
|
@@ -10392,18 +10392,18 @@ var createNodeBuildJobs = function (context) {
|
|
|
10392
10392
|
throw new Error("deploy config is not node, node-static or storybook");
|
|
10393
10393
|
}
|
|
10394
10394
|
var defaultImage = (0, runner_1.getRunnerImage)("jobs-default");
|
|
10395
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
10395
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext);
|
|
10396
10396
|
return (0, base_1.createBuildJobs)(context, {
|
|
10397
10397
|
appBuild: buildConfig.buildCommand !== null
|
|
10398
10398
|
? {
|
|
10399
10399
|
image: (_a = buildConfig.jobImage) !== null && _a !== void 0 ? _a : defaultImage,
|
|
10400
10400
|
runnerVariables: constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
10401
|
-
cache: __spreadArray(__spreadArray(__spreadArray([], __read(((_b = (0, utils_1.ensureArray)(buildConfig.jobCache)) !== null && _b !== void 0 ? _b : [])), false), __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
10401
|
+
cache: __spreadArray(__spreadArray(__spreadArray([], __read(((_b = (0, utils_1.ensureArray)(buildConfig.jobCache)) !== null && _b !== void 0 ? _b : [])), false), __read((0, cache_1.getNodeCache)(context.buildContext)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
10402
10402
|
script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read(((_c = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _c !== void 0 ? _c : [])), false),
|
|
10403
10403
|
artifacts: {
|
|
10404
10404
|
paths: __spreadArray([
|
|
10405
10405
|
context.componentConfig.dir
|
|
10406
|
-
], __read(((_e = (_d = context.packageManagerInfo) === null || _d === void 0 ? void 0 : _d.currentWorkspaceDependencies) !== null && _e !== void 0 ? _e : [])), false).flatMap(function (dir) {
|
|
10406
|
+
], __read(((_e = (_d = context.buildContext.packageManagerInfo) === null || _d === void 0 ? void 0 : _d.currentWorkspaceDependencies) !== null && _e !== void 0 ? _e : [])), false).flatMap(function (dir) {
|
|
10407
10407
|
var _a, _b;
|
|
10408
10408
|
return __spreadArray([
|
|
10409
10409
|
(0, path_1.join)(dir, "__build_info.json"),
|
|
@@ -10423,11 +10423,11 @@ var createNodeBuildJobs = function (context) {
|
|
|
10423
10423
|
script: (0, docker_1.getDockerBuildDefaultScript)(context, buildConfig.type === "node-static" || buildConfig.type === "storybook"
|
|
10424
10424
|
? "ensureNginxDockerfile"
|
|
10425
10425
|
: "ensureNodeDockerfile"),
|
|
10426
|
-
cache: __spreadArray([], __read((0, cache_1.getYarnCache)(context, "pull")), false),
|
|
10426
|
+
cache: __spreadArray([], __read((0, cache_1.getYarnCache)(context.buildContext, "pull")), false),
|
|
10427
10427
|
variables: {
|
|
10428
10428
|
// only required for non static
|
|
10429
|
-
DOCKER_COPY_AND_INSTALL_APP: (0, yarn_1.getDockerAppCopyAndBuildScript)(context),
|
|
10430
|
-
DOCKER_COPY_WORKSPACE_FILES: (_g = (_f = context.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.pathsToCopyInDocker.map(function (dir) { return "COPY --chown=node:node ".concat(dir, " /app/").concat(dir); })) === null || _g === void 0 ? void 0 : _g.join("\n"),
|
|
10429
|
+
DOCKER_COPY_AND_INSTALL_APP: (0, yarn_1.getDockerAppCopyAndBuildScript)(context.buildContext),
|
|
10430
|
+
DOCKER_COPY_WORKSPACE_FILES: (_g = (_f = context.buildContext.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.pathsToCopyInDocker.map(function (dir) { return "COPY --chown=node:node ".concat(dir, " /app/").concat(dir); })) === null || _g === void 0 ? void 0 : _g.join("\n"),
|
|
10431
10431
|
},
|
|
10432
10432
|
},
|
|
10433
10433
|
});
|
|
@@ -10487,9 +10487,9 @@ var getYarnCache = function (context, policy) {
|
|
|
10487
10487
|
paths: [".yarn"],
|
|
10488
10488
|
}
|
|
10489
10489
|
: {
|
|
10490
|
-
key: (0, slugify_1.default)(context.
|
|
10490
|
+
key: (0, slugify_1.default)(context.dir) + "-yarn",
|
|
10491
10491
|
policy: policy,
|
|
10492
|
-
paths: [(0, path_1.join)(context.
|
|
10492
|
+
paths: [(0, path_1.join)(context.dir, ".yarn")],
|
|
10493
10493
|
},
|
|
10494
10494
|
];
|
|
10495
10495
|
};
|
|
@@ -10505,7 +10505,7 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
10505
10505
|
// if component is in a shared workspace, use workspace cache. use individual cache else
|
|
10506
10506
|
key: componentIsInWorkspace
|
|
10507
10507
|
? "node-modules-workspace"
|
|
10508
|
-
: (0, slugify_1.default)(context.
|
|
10508
|
+
: (0, slugify_1.default)(context.dir) + "-node-modules", // we use the dirname, not the component name, because in certain cases we have two apps in the same directory and want to share the cache, e.g. when having storybook in the same package.json
|
|
10509
10509
|
policy: policy,
|
|
10510
10510
|
paths: __spreadArray([], __read((componentIsInWorkspace
|
|
10511
10511
|
? (0, lodash_1.uniq)(__spreadArray([
|
|
@@ -10513,7 +10513,7 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
10513
10513
|
], __read(((_c = (_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.workspaces.map(function (w) {
|
|
10514
10514
|
return (0, path_1.join)(w.location, "node_modules");
|
|
10515
10515
|
})) !== null && _c !== void 0 ? _c : [])), false))
|
|
10516
|
-
: [(0, path_1.join)(context.
|
|
10516
|
+
: [(0, path_1.join)(context.dir, "node_modules")])), false),
|
|
10517
10517
|
},
|
|
10518
10518
|
];
|
|
10519
10519
|
};
|
|
@@ -10658,11 +10658,11 @@ var createMeteorBuildJobs = function (context) {
|
|
|
10658
10658
|
if (!(0, types_1.isOfBuildType)(buildConfig, "meteor")) {
|
|
10659
10659
|
throw new Error("deploy config is not meteor");
|
|
10660
10660
|
}
|
|
10661
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
10661
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext);
|
|
10662
10662
|
return (0, base_1.createBuildJobs)(context, {
|
|
10663
10663
|
appBuild: buildConfig.buildCommand !== null
|
|
10664
10664
|
? {
|
|
10665
|
-
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read(getMeteorCache(context)), false),
|
|
10665
|
+
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context.buildContext)), false), __read(getMeteorCache(context)), false),
|
|
10666
10666
|
image: (0, runner_1.getRunnerImage)("jobs-meteor"),
|
|
10667
10667
|
variables: {
|
|
10668
10668
|
METEOR_DISABLE_OPTIMISTIC_CACHING: "1", // see https://forums.meteor.com/t/veeery-long-building-time-inside-docker-container/58673/17?u=macrozone
|
|
@@ -10760,21 +10760,21 @@ var createNodeTestJobs = function (context) {
|
|
|
10760
10760
|
needs: [],
|
|
10761
10761
|
envMode: "none",
|
|
10762
10762
|
};
|
|
10763
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
10763
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext);
|
|
10764
10764
|
var auditJob = buildConfig.audit !== false
|
|
10765
10765
|
? __assign(__assign(__assign({ name: "🛡 audit" }, base), { image: (_c = (_b = buildConfig.audit) === null || _b === void 0 ? void 0 : _b.jobImage) !== null && _c !== void 0 ? _c : defaultImage, cache: undefined, script: __spreadArray([
|
|
10766
10766
|
"cd ".concat(context.componentConfig.dir)
|
|
10767
10767
|
], __read(((_e = (0, utils_1.ensureArray)((_d = buildConfig.audit) === null || _d === void 0 ? void 0 : _d.command)) !== null && _e !== void 0 ? _e : [
|
|
10768
|
-
((_f = context.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.isClassic)
|
|
10768
|
+
((_f = context.buildContext.packageManagerInfo) === null || _f === void 0 ? void 0 : _f.isClassic)
|
|
10769
10769
|
? "yarn audit"
|
|
10770
10770
|
: "yarn npm audit --environment production", // yarn 2
|
|
10771
10771
|
])), false), allow_failure: true }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts)) : null;
|
|
10772
10772
|
var lintJob = buildConfig.lint !== false
|
|
10773
|
-
? __assign(__assign(__assign({ name: "👮 lint" }, base), { image: (_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.jobImage) !== null && _k !== void 0 ? _k : defaultImage, cache: (0, cache_1.getNodeCache)(context), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), [
|
|
10773
|
+
? __assign(__assign(__assign({ name: "👮 lint" }, base), { image: (_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.jobImage) !== null && _k !== void 0 ? _k : defaultImage, cache: (0, cache_1.getNodeCache)(context.buildContext), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context.buildContext)), false), [
|
|
10774
10774
|
"cd ".concat(context.componentConfig.dir)
|
|
10775
10775
|
], false), __read(yarnInstall), false), __read(((_m = (0, utils_1.ensureArray)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : ["yarn lint"])), false) }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts)) : null;
|
|
10776
10776
|
var testJob = buildConfig.test !== false
|
|
10777
|
-
? __assign(__assign(__assign({ name: "🧪 test" }, base), { image: (_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.jobImage) !== null && _r !== void 0 ? _r : (0, runner_1.getRunnerImage)("jobs-testing-chrome"), cache: (0, cache_1.getNodeCache)(context), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), [
|
|
10777
|
+
? __assign(__assign(__assign({ name: "🧪 test" }, base), { image: (_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.jobImage) !== null && _r !== void 0 ? _r : (0, runner_1.getRunnerImage)("jobs-testing-chrome"), cache: (0, cache_1.getNodeCache)(context.buildContext), script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context.buildContext)), false), [
|
|
10778
10778
|
"cd ".concat(context.componentConfig.dir)
|
|
10779
10779
|
], false), __read(yarnInstall), false), __read(((_t = (0, utils_1.ensureArray)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : ["yarn test"])), false) }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.artifactsReports, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifacts)) : null;
|
|
10780
10780
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -10838,9 +10838,7 @@ var ensureNodeVersion = function (context) {
|
|
|
10838
10838
|
exports.ensureNodeVersion = ensureNodeVersion;
|
|
10839
10839
|
var getYarnInstall = function (context, options) {
|
|
10840
10840
|
var _a;
|
|
10841
|
-
var postInstall = "postInstall" in context.
|
|
10842
|
-
? context.componentConfig.build.postInstall
|
|
10843
|
-
: null;
|
|
10841
|
+
var postInstall = "postInstall" in context.config ? context.config.postInstall : null;
|
|
10844
10842
|
return __spreadArray(__spreadArray(__spreadArray([], __read((0, exports.ensureNodeVersion)(context)), false), __read((0, gitlab_1.collapseableSection)("yarninstall", "Yarn install")([getYarnInstallCommand(context)])), false), __read((postInstall && !(options === null || options === void 0 ? void 0 : options.noCustomPostInstall)
|
|
10845
10843
|
? (0, gitlab_1.collapseableSection)("postinstall", "Custom post install")((_a = (0, utils_1.ensureArray)(postInstall)) !== null && _a !== void 0 ? _a : [])
|
|
10846
10844
|
: [])), false);
|
|
@@ -11112,9 +11110,9 @@ var createSbomBuildJob = function (context) {
|
|
|
11112
11110
|
var buildConfig = context.componentConfig.build;
|
|
11113
11111
|
var defaultImage = "aquasec/trivy:0.38.3";
|
|
11114
11112
|
var defaultScript = [
|
|
11115
|
-
"trivy fs --quiet --format cyclonedx --output \"".concat(exports.SBOM_FILE, "\" ").concat(((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace)
|
|
11113
|
+
"trivy fs --quiet --format cyclonedx --output \"".concat(exports.SBOM_FILE, "\" ").concat(((_a = context.buildContext.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace)
|
|
11116
11114
|
? "."
|
|
11117
|
-
: context.
|
|
11115
|
+
: context.buildContext.dir),
|
|
11118
11116
|
];
|
|
11119
11117
|
var image = buildConfig.type === "custom" && buildConfig.sbom !== false
|
|
11120
11118
|
? (_c = (_b = buildConfig.sbom) === null || _b === void 0 ? void 0 : _b.jobImage) !== null && _c !== void 0 ? _c : defaultImage
|
|
@@ -11830,7 +11828,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
11830
11828
|
}
|
|
11831
11829
|
};
|
|
11832
11830
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
11833
|
-
exports.createContext = void 0;
|
|
11831
|
+
exports.createContext = exports.createComponentContext = void 0;
|
|
11834
11832
|
var build_1 = __nccwpck_require__(67862);
|
|
11835
11833
|
var deploy_1 = __nccwpck_require__(68483);
|
|
11836
11834
|
var utils_1 = __nccwpck_require__(32497);
|
|
@@ -11838,7 +11836,7 @@ var getEnvironment_1 = __nccwpck_require__(45699);
|
|
|
11838
11836
|
var getEnvironmentContext_1 = __nccwpck_require__(13663);
|
|
11839
11837
|
__exportStar(__nccwpck_require__(45699), exports);
|
|
11840
11838
|
__exportStar(__nccwpck_require__(45133), exports);
|
|
11841
|
-
var
|
|
11839
|
+
var createComponentContext = function (ctx) { return __awaiter(void 0, void 0, void 0, function () {
|
|
11842
11840
|
var envContext, componentConfigWithoutDefaults, defaults, componentConfig;
|
|
11843
11841
|
var _a;
|
|
11844
11842
|
return __generator(this, function (_b) {
|
|
@@ -11862,6 +11860,11 @@ var createContext = function (ctx) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
11862
11860
|
_a = {
|
|
11863
11861
|
fullConfig: ctx.config,
|
|
11864
11862
|
componentConfig: componentConfig,
|
|
11863
|
+
buildContext: {
|
|
11864
|
+
dir: componentConfig.dir,
|
|
11865
|
+
packageManagerInfo: ctx.packageManagerInfo,
|
|
11866
|
+
config: componentConfig.build,
|
|
11867
|
+
},
|
|
11865
11868
|
componentName: ctx.componentName
|
|
11866
11869
|
};
|
|
11867
11870
|
return [4 /*yield*/, (0, getEnvironment_1.getEnvironment)(ctx)];
|
|
@@ -11873,7 +11876,11 @@ var createContext = function (ctx) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
11873
11876
|
}
|
|
11874
11877
|
});
|
|
11875
11878
|
}); };
|
|
11876
|
-
exports.
|
|
11879
|
+
exports.createComponentContext = createComponentContext;
|
|
11880
|
+
/**
|
|
11881
|
+
* @deprecated use createComponentContext instead
|
|
11882
|
+
*/
|
|
11883
|
+
exports.createContext = exports.createComponentContext;
|
|
11877
11884
|
//# sourceMappingURL=index.js.map
|
|
11878
11885
|
|
|
11879
11886
|
/***/ }),
|
|
@@ -13765,7 +13772,9 @@ var createCustomDeployJobs = function (context) {
|
|
|
13765
13772
|
throw new Error("deploy config is not custom");
|
|
13766
13773
|
}
|
|
13767
13774
|
// FIXME: custom deploy currently assumes yarn-based project
|
|
13768
|
-
var yarnInstall = (0, yarn_1.getYarnInstall)(context, {
|
|
13775
|
+
var yarnInstall = (0, yarn_1.getYarnInstall)(context.buildContext, {
|
|
13776
|
+
noCustomPostInstall: true,
|
|
13777
|
+
});
|
|
13769
13778
|
return (0, base_1.createDeployementJobs)(context, {
|
|
13770
13779
|
deploy: {
|
|
13771
13780
|
image: (_a = deployConfig.jobImage) !== null && _a !== void 0 ? _a : (0, runner_1.getRunnerImage)("jobs-default"),
|
|
@@ -15066,7 +15075,7 @@ var createJobsForComponent = function (contextContext) { return __awaiter(void 0
|
|
|
15066
15075
|
case 0: return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfo)(contextContext.config, contextContext.componentName)];
|
|
15067
15076
|
case 1:
|
|
15068
15077
|
packageManagerInfo = _a.sent();
|
|
15069
|
-
return [4 /*yield*/, (0, context_1.
|
|
15078
|
+
return [4 /*yield*/, (0, context_1.createComponentContext)(__assign(__assign({}, contextContext), { packageManagerInfo: packageManagerInfo }))];
|
|
15070
15079
|
case 2:
|
|
15071
15080
|
context = _a.sent();
|
|
15072
15081
|
return [2 /*return*/, createRawJobs(context).map(function (job) { return (__assign(__assign({}, job), { context: context })); })];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandCloudSqlProxy.js","sourceRoot":"","sources":["../../../../../../../src/apps/cli/commands/project/commandCloudSqlProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAG6B;AAG7B,wEAI6C;AAC7C,2DAA2D;AAC3D,qEAA0F;AAQ1F,mBAAe,UAAO,MAAc;;;;;gBAClC,KAAA,CAAA,KAAA,MAAM;qBACH,OAAO,CAAC,wCAAwC,EAAE,uBAAuB,CAAC,CAAA;qBAC1E,YAAY,CAAA;gBAAC,qBAAM,IAAA,kCAAgB,GAAE,EAAA;oBAFxC,sBAAA,cAEgB,SAAwB,EAAC;qBACtC,MAAM,CAAC;wEAAgB,EAAgB;;4BAAd,YAAY,kBAAA;;;;oCAC9B,KAAyB,IAAA,8BAAW,EAAC,YAAY,CAAC,EAAhD,GAAG,SAAA,EAAE,aAAa,mBAAA,CAA+B;oCACzD,IAAI,CAAC,aAAa,EAAE,CAAC;wCACnB,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;wCAC/B,sBAAO;oCACT,CAAC;oCAEe,qBAAM,IAAA,6CAA0B,EAAC,GAAG,EAAE,aAAa,CAAC,EAAA;;oCAA9D,OAAO,GAAG,SAAo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ACtG,CAAC;oCACF,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oCACb,IAAI,CAAC,GAAG,CACN,wDAAiD,SAAS,cAAI,OAAO,iCAAuB,OAAO,uBAAa,WAAW,CAAE,CAC9H,CAAC;oCACF,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oCAEb,qBAAM,IAAA,6CAAgC,EAAC;4CACrC,YAAY,cAAA;4CACZ,SAAS,WAAA;yCACV,CAAC,EAAA;;oCAHF,SAGE,CAAC;;;;;iBACJ,CAAC,EAAA;;;KAAA,EAAC;AAEP,IAAM,yBAAyB,GAAG,UAChC,MAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"commandCloudSqlProxy.js","sourceRoot":"","sources":["../../../../../../../src/apps/cli/commands/project/commandCloudSqlProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAG6B;AAG7B,wEAI6C;AAC7C,2DAA2D;AAC3D,qEAA0F;AAQ1F,mBAAe,UAAO,MAAc;;;;;gBAClC,KAAA,CAAA,KAAA,MAAM;qBACH,OAAO,CAAC,wCAAwC,EAAE,uBAAuB,CAAC,CAAA;qBAC1E,YAAY,CAAA;gBAAC,qBAAM,IAAA,kCAAgB,GAAE,EAAA;oBAFxC,sBAAA,cAEgB,SAAwB,EAAC;qBACtC,MAAM,CAAC;wEAAgB,EAAgB;;4BAAd,YAAY,kBAAA;;;;oCAC9B,KAAyB,IAAA,8BAAW,EAAC,YAAY,CAAC,EAAhD,GAAG,SAAA,EAAE,aAAa,mBAAA,CAA+B;oCACzD,IAAI,CAAC,aAAa,EAAE,CAAC;wCACnB,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;wCAC/B,sBAAO;oCACT,CAAC;oCAEe,qBAAM,IAAA,6CAA0B,EAAC,GAAG,EAAE,aAAa,CAAC,EAAA;;oCAA9D,OAAO,GAAG,SAAoD;oCAGpE,IAAI,GAAG,KAAK,QAA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,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC;oBAClE,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,EACxC,CAAC;oBACD,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;gBACjC,CAAC;gBAEe,qBAAM,IAAA,qCAAkB,EACtC,MAAM,EACN,OAAO,CAAC,WAAW,CAAC,SAAS,EAC7B,OAAO,CAAC,aAAa,CACtB,EAAA;;gBAJK,OAAO,GAAG,SAIf;gBAEK,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;gBACnC,OAAO,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC;gBAE3B,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;gBAE/D,sBAAO;wBACL,YAAY,EACV,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB;wBAChE,WAAW,aAAA;wBACX,OAAO,SAAA;wBACP,OAAO,SAAA;qBACR,EAAC;;;KACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandPortForward.js","sourceRoot":"","sources":["../../../../../../../src/apps/cli/commands/project/commandPortForward.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAA4D;AAC5D,6CAAiD;AACjD,kEAA0E;AAC1E,uDAAiE;AACjE,2DAA2D;AAC3D,wEAAkD;AAElD,8DAA6D;AAC7D,wEAAiF;AAEjF,gDAAqD;AACrD,+DAAyE;AACzE,8CAAwB;AACxB,IAAM,eAAe,GAAG,UAAO,GAAoB,EAAE,YAAoB;;;;oBACvE,qBAAM,uBAAa,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,EAAA;;gBAA3C,SAA2C,CAAC;gBAC1B,qBAAM,IAAA,8BAAmB,EAAC,YAAY,CAAC,EAAA;;gBAAnD,SAAS,GAAG,SAAuC;gBACxC,qBAAM,IAAA,+BAAkB,EAAC,YAAY,CAAC,EAAA;;gBAAjD,QAAQ,GAAG,SAAsC;gBACvD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC1B,IAAA,cAAQ,EAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC;oBACtC,sBAAO;gBACT,CAAC;gBACmB,qBAAM,GAAG,CAAC,MAAM,CAAC;wBACnC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,QAAQ;wBACjB,OAAO,EAAE,eAAe;qBACzB,CAAC,EAAA;;gBALM,OAAO,GAAK,CAAA,SAKlB,CAAA,QALa;gBAOO,qBAAM,GAAG,CAAC,MAAM,CAAC;wBACrC,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,WAAW;wBAEjB,OAAO,EAAE,cAAc;qBACxB,CAAC,EAAA;;gBALM,SAAS,GAAK,CAAA,SAKpB,CAAA,UALe;gBAOM,qBAAM,GAAG,CAAC,MAAM,CAAC;wBACtC,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,YAAY;wBAElB,OAAO,EAAE,eAAe;qBACzB,CAAC,EAAA;;gBALM,UAAU,GAAK,CAAA,SAKrB,CAAA,WALgB;gBAOlB,sBAAO,IAAA,kCAAoB,EAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,EAAC;;;KACxE,CAAC;AAEF,IAAM,mBAAmB,GAAG,
|
|
1
|
+
{"version":3,"file":"commandPortForward.js","sourceRoot":"","sources":["../../../../../../../src/apps/cli/commands/project/commandPortForward.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAA4D;AAC5D,6CAAiD;AACjD,kEAA0E;AAC1E,uDAAiE;AACjE,2DAA2D;AAC3D,wEAAkD;AAElD,8DAA6D;AAC7D,wEA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4BAAd,YAAY,kBAAA;;;;oCAC9B,KAAyB,IAAA,yBAAW,EAAC,YAAY,CAAC,EAAhD,GAAG,SAAA,EAAE,aAAa,mBAAA,CAA+B;oCACzC,qBAAM,IAAA,6CAA0B,EAAC,GAAG,EAAE,aAAa,CAAC,EAAA;;oCAA9D,OAAO,GAAG,SAAoD;yCAEhE,IAAA,yBAAc,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,YAAY,CAAC,EAA5D,wBAA4D;oCAC9D,qBAAM,eAAe,CAAC,IAAI,EAAE,YAAY,CAAC,EAAA;;oCAAzC,SAAyC,CAAC;;;yCAExC,IAAA,yBAAc,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAjE,wBAAiE;oCACnE,qBAAM,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,EAAA;;oCAAxC,SAAwC,CAAC;;;;;;iBAE5C,CAAC,EAAA;;;KAAA,EAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentContext } from "../../../../../../../pipeline/src/index.js";
|
|
2
2
|
import type { CommandInstance } from "vorpal";
|
|
3
|
-
export declare const setupCloudRun: (instance: CommandInstance, context:
|
|
3
|
+
export declare const setupCloudRun: (instance: CommandInstance, context: ComponentContext) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupCloudRun.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/setup/setupCloudRun.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAI6B;AAG7B,6EAAwF;AACxF,kGAAiG;AACjG,uEAA4E;AAC5E,yEAAgG;AAChG,sDAAiE;AAE1D,IAAM,aAAa,GAAG,UAC3B,QAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"setupCloudRun.js","sourceRoot":"","sources":["../../../../../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CAAkC;4BAClC,iBAAiB;4BACjB,8BAA8B;4BAC9B,4BAA4B;kCACzB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,SACrD;qBACF,EACD,wCAA6B,CAC9B,EAAA;;gBAlBD,SAkBC,CAAC;gBAEF,+CAA+C;gBAC/C,qDAAqD;gBACrD,qEAAqE;gBACrE,iEAAiE;gBACjE,QAAQ,CAAC,GAAG,CACV,gEAAgE,CACjE,CAAC;gBACa,qBAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,EAAA;;gBAA9C,MAAM,GAAG,SAAqC;gBACpD,QAAQ,CAAC,GAAG,CAAC,iBAAiB,GAAG,MAAM,CAAC,CAAC;gBAEzC,qBAAM,IAAA,2BAAkB,EACtB,QAAQ;wBAEN,GAAC,2CAAgC,IAAG,MAAM;6BAE5C,OAAO,CAAC,WAAW,CAAC,SAAS,EAC7B,OAAO,CAAC,aAAa,EACrB,KAAK,EAAE,SAAS;oBAChB,KAAK,CACN,EAAA;;gBATD,SASC,CAAC;;;;KACH,CAAC;AArEW,QAAA,aAAa,iBAqExB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentContext } from "../../../../../../../pipeline/src/index.js";
|
|
2
2
|
import type { CommandInstance } from "vorpal";
|
|
3
|
-
export declare const setupContext: (instance: CommandInstance, context:
|
|
3
|
+
export declare const setupContext: (instance: CommandInstance, context: ComponentContext) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupContext.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/setup/setupContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAqD;AAErD,iDAAgD;AAEhD,qDAAoD;AAE7C,IAAM,YAAY,GAAG,UAC1B,QAAyB,EACzB,
|
|
1
|
+
{"version":3,"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1
|
-
import type {
|
|
1
|
+
import type { ComponentContext } from "../../../../../../../pipeline/src/index.js";
|
|
2
2
|
import type { CommandInstance } from "vorpal";
|
|
3
|
-
export declare const setupKubernetes: (instance: CommandInstance, context:
|
|
3
|
+
export declare const setupKubernetes: (instance: CommandInstance, context: ComponentContext) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupKubernetes.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/setup/setupKubernetes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAG6B;AAE7B,+DAA6C;AAC7C,wDAAgE;AAChE,sDAIqC;AACrC,6EAAuD;AAEhD,IAAM,eAAe,GAAG,UAC7B,QAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"setupKubernetes.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/setup/setupKubernetes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAG6B;AAE7B,+DAA6C;AAC7C,wDAAgE;AAChE,sDAIqC;AACrC,6EAAuD;AAEhD,IAAM,eAAe,GAAG,UAC7B,QAAyB,EACzB,OAAyB;;;;;gBAEnB,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC;gBACpD,IAAI,CAAC,IAAA,yBAAc,EAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;oBAChD,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;gBAC9E,CAAC;gBAEyB,qBAAM,IAAA,uBAAc,EAAC,QAAQ,CAAC,EAAA;;gBAA5C,SAAS,GAAK,CAAA,SAA8B,CAAA,GAAnC;gBACC,qBAAM,IAAA,wBAAe,EACzC,QAAQ,EACR,mBAAY,SAAS,mBAAgB,CACtC,EAAA;;gBAHK,aAAa,GAAG,SAGrB;qBAGC,CAAC,aAAa,CAAC,IAAI,CACjB,U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AI,GAAG;oBACX,UAAU,YAAA;oBACV,WAAW,aAAA;oBACX,QAAQ,UAAA;iBACT,CAAC;gBAEI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,CAAC,CAAC,EAAL,CAAK,CAAC,CAAC;gBAC1D,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACvB,MAAM,IAAI,KAAK,CACb,6CAA6C;wBAC3C,OAAO,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,CAAC,EAAJ,CAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;wBACnC,2DAA2D;wBAC3D,QAAQ;wBACR,GAAG,CACN,CAAC;gBACJ,CAAC;gBAED,QAAQ,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;gBAEpD,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACjB,QAAQ,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;gBAE5C,qBAAM,IAAA,2BAAkB,EACtB,QAAQ,EACR,IAAI,EACJ,OAAO,CAAC,WAAW,CAAC,SAAS,EAC7B,OAAO,CAAC,aAAa,EACrB,KAAK,CACN,EAAA;;gBAND,SAMC,CAAC;gBACF,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;;;;KACvB,CAAC;AA3JW,QAAA,eAAe,mBA2J1B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export default function (context:
|
|
1
|
+
import type { ComponentContext } from "../../../../../../../pipeline/src/index.js";
|
|
2
|
+
export default function (context: ComponentContext): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensureNamespace.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/utils/ensureNamespace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAA6D;AAE7D,uDAAsD;AACtD,gDAAkD;AAElD,mBAA+B,
|
|
1
|
+
{"version":3,"file":"ensureNamespace.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/utils/ensureNamespace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAA6D;AAE7D,uDAAsD;AACtD,gDAAkD;AAElD,mBAA+B,OAAyB;;;;;;;oBAChD,SAAS,GAAG,IAAA,iCAAsB,EACtC,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,WAAW,CAAC,SAAS,CAC9B,CAAC;oBACI,aAAa,GAAG,IAAI,yBAAW,EAAE,CAAC;oBAClC,QAAQ,GAAiB;wBAC7B,IAAI,EAAE,SAAS;wBACf,MAAM,sBACJ,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,YAAY,EAC7C,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,EACnC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,EAC1C,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAChE,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;iCACrD,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,CAAC,IAAI,EAAjB,CAAiB,CAAC;iCAClC,IAAI,CAAC,GAAG,CAAC,IACT,MAAM,CAAC,WAAW,CACnB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,GAAG,CAC/C,UAAC,EAAuB;gCAAvB,KAAA,aAAuB,EAAtB,aAAa,QAAA,EAAE,MAAM,QAAA;4BAAM,OAAA;gCAC3B,YAAY,GAAG,aAAa;gCAC5B,MAAM,CAAC,KAAK,CAAC,IAAI;6BAClB;wBAH4B,CAG5B,CACF,CACF,GACE,CAAC,MAAA,MAAA,OAAO,CAAC,UAAU,CAAC,IAAI,0CAAE,MAAM,mCAAI,EAAE,CAAC,CAC3C;qBACF,CAAC;oBAEF,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC;oBAC5B,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;;;;oBAEzB,qBAAM,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,EAAA;;oBAArC,SAAqC,CAAC;oBAEtC,qBAAM,MAAM,CAAC,cAAc,CACzB,SAAS,EACT,aAAa,EACb,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,8BAA8B,EAAE,EAAE,CAChE,EAAA;;oBARD,SAQC,CAAC,CAAC,mBAAmB;;;;yBAElB,CAAA,CAAA,MAAA,MAAA,GAAC,CAAC,QAAQ,0CAAE,IAAI,0CAAE,MAAM,MAAK,UAAU,CAAA,EAAvC,wBAAuC;oBACzC,qBAAM,MAAM,CAAC,eAAe,CAAC,aAAa,CAAC,EAAA;;oBAA3C,SAA2C,CAAC;;;oBAE5C,OAAO,CAAC,KAAK,CAAC,MAAA,GAAC,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAC;oBAChC,MAAM,GAAC,CAAC;;wBAGZ,sBAAO,SAAS,EAAC;;;;CAClB;AAnDD,4BAmDC"}
|
|
@@ -3,7 +3,7 @@ import type { CommandInstance } from "vorpal";
|
|
|
3
3
|
export { parseChoice } from "./parseChoice";
|
|
4
4
|
export declare const getProjectConfig: () => Promise<Config>;
|
|
5
5
|
export declare const getProjectComponents: () => Promise<string[]>;
|
|
6
|
-
export declare const getPipelineContextByChoice: (env: string, componentName: string) => Promise<import("../../../pipeline/src/index.js").
|
|
6
|
+
export declare const getPipelineContextByChoice: (env: string, componentName: string) => Promise<import("../../../pipeline/src/index.js").ComponentContext>;
|
|
7
7
|
export declare const getAllComponentsWithAllEnvsFlat: () => Promise<Array<{
|
|
8
8
|
env: string;
|
|
9
9
|
componentName: string;
|
|
@@ -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").
|
|
14
|
+
export declare const getAllPipelineContexts: () => 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>>;
|
|
@@ -131,7 +131,7 @@ var getPipelineContextByChoice = function (env, componentName) { return __awaite
|
|
|
131
131
|
case 0: return [4 /*yield*/, (0, exports.getProjectConfig)()];
|
|
132
132
|
case 1:
|
|
133
133
|
config = _a.sent();
|
|
134
|
-
return [4 /*yield*/, (0, pipeline_1.
|
|
134
|
+
return [4 /*yield*/, (0, pipeline_1.createComponentContext)({
|
|
135
135
|
config: config,
|
|
136
136
|
componentName: componentName,
|
|
137
137
|
env: env,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProjectConfig.js","sourceRoot":"","sources":["../../../../src/config/getProjectConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAM6B;AAG7B,0CAA6E;AAE7E,8CAA+C;AAE/C,yBAA2B;AAE3B,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,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