@catladder/cli 0.0.0-main-071efcd6 → 0.0.0-main-42a9feaf
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 +4 -5
- package/dist/bundles/cli/index.js +4 -5
- package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +3 -4
- package/dist/pipeline/src/pipeline/getPipelineStages.js +4 -5
- package/dist/pipeline/src/pipeline/getPipelineStages.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -8026,13 +8026,12 @@ exports.getPipelineStages = void 0;
|
|
|
8026
8026
|
var config_1 = __nccwpck_require__(3352);
|
|
8027
8027
|
var jobs_1 = __nccwpck_require__(7432);
|
|
8028
8028
|
/**
|
|
8029
|
-
*
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
8029
|
+
* while technically not required, we group different envs in its own stage
|
|
8030
|
+
* each job from `createJobs` that is defined as `envMode: "stagePerEnv"` will have `deploy dev`, etc. instead of just `deploy`
|
|
8031
|
+
* this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
8033
8032
|
*/
|
|
8034
8033
|
function getPipelineStages(config) {
|
|
8035
|
-
var allEnvs = (0, config_1.getAllEnvsInAllComponents)(config);
|
|
8034
|
+
var allEnvs = (0, config_1.getAllEnvsInAllComponents)(config).filter(function (e) { return e !== "local"; });
|
|
8036
8035
|
var stages = jobs_1.BASE_STAGES.reduce(function (acc, baseStage) { return __spreadArray(__spreadArray(__spreadArray([], __read(acc), false), [
|
|
8037
8036
|
baseStage
|
|
8038
8037
|
], false), __read(allEnvs.map(function (e) { return "".concat(baseStage, " ").concat(e); })), false); }, []);
|
|
@@ -15463,13 +15463,12 @@ exports.getPipelineStages = void 0;
|
|
|
15463
15463
|
var config_1 = __nccwpck_require__(13352);
|
|
15464
15464
|
var jobs_1 = __nccwpck_require__(17432);
|
|
15465
15465
|
/**
|
|
15466
|
-
*
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
15466
|
+
* while technically not required, we group different envs in its own stage
|
|
15467
|
+
* each job from `createJobs` that is defined as `envMode: "stagePerEnv"` will have `deploy dev`, etc. instead of just `deploy`
|
|
15468
|
+
* this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
15470
15469
|
*/
|
|
15471
15470
|
function getPipelineStages(config) {
|
|
15472
|
-
var allEnvs = (0, config_1.getAllEnvsInAllComponents)(config);
|
|
15471
|
+
var allEnvs = (0, config_1.getAllEnvsInAllComponents)(config).filter(function (e) { return e !== "local"; });
|
|
15473
15472
|
var stages = jobs_1.BASE_STAGES.reduce(function (acc, baseStage) { return __spreadArray(__spreadArray(__spreadArray([], __read(acc), false), [
|
|
15474
15473
|
baseStage
|
|
15475
15474
|
], false), __read(allEnvs.map(function (e) { return "".concat(baseStage, " ").concat(e); })), false); }, []);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Config } from "../types/config";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
3
|
+
* while technically not required, we group different envs in its own stage
|
|
4
|
+
* each job from `createJobs` that is defined as `envMode: "stagePerEnv"` will have `deploy dev`, etc. instead of just `deploy`
|
|
5
|
+
* this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
7
6
|
*/
|
|
8
7
|
export declare function getPipelineStages(config: Config): string[];
|
|
@@ -29,13 +29,12 @@ exports.getPipelineStages = void 0;
|
|
|
29
29
|
var config_1 = require("../config");
|
|
30
30
|
var jobs_1 = require("../types/jobs");
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
32
|
+
* while technically not required, we group different envs in its own stage
|
|
33
|
+
* each job from `createJobs` that is defined as `envMode: "stagePerEnv"` will have `deploy dev`, etc. instead of just `deploy`
|
|
34
|
+
* this is just so that it looks nicer in gitlab and makes running mutliple manual tasks more easy to use
|
|
36
35
|
*/
|
|
37
36
|
function getPipelineStages(config) {
|
|
38
|
-
var allEnvs = (0, config_1.getAllEnvsInAllComponents)(config);
|
|
37
|
+
var allEnvs = (0, config_1.getAllEnvsInAllComponents)(config).filter(function (e) { return e !== "local"; });
|
|
39
38
|
var stages = jobs_1.BASE_STAGES.reduce(function (acc, baseStage) { return __spreadArray(__spreadArray(__spreadArray([], __read(acc), false), [
|
|
40
39
|
baseStage
|
|
41
40
|
], false), __read(allEnvs.map(function (e) { return "".concat(baseStage, " ").concat(e); })), false); }, []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPipelineStages.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/getPipelineStages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAsD;AAEtD,sCAA4C;AAE5C
|
|
1
|
+
{"version":3,"file":"getPipelineStages.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/getPipelineStages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAsD;AAEtD,sCAA4C;AAE5C;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,MAAc;IAC9C,IAAM,OAAO,GAAG,IAAA,kCAAyB,EAAC,MAAM,CAAC,CAAC,MAAM,CACtD,UAAC,CAAC,IAAK,OAAA,CAAC,KAAK,OAAO,EAAb,CAAa,CACrB,CAAC;IACF,IAAM,MAAM,GAAG,kBAAW,CAAC,MAAM,CAC/B,UAAC,GAAG,EAAE,SAAS,IAAK,4DACf,GAAG;QACN,SAAS;sBACN,OAAO,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,UAAG,SAAS,cAAI,CAAC,CAAE,EAAnB,CAAmB,CAAC,WAHxB,CAInB,EACD,EAAE,CACH,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC;AAbD,8CAaC"}
|