@catladder/cli 0.0.0-inventory-af55dfdb → 0.0.0-inventory-b18e43b6
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 +13 -10
- package/dist/bundles/cli/index.js +13 -10
- package/package.json +2 -2
|
@@ -38691,7 +38691,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
38691
38691
|
};
|
|
38692
38692
|
|
|
38693
38693
|
exports.__esModule = true;
|
|
38694
|
-
exports.createBuildJob =
|
|
38694
|
+
exports.createBuildJob = void 0;
|
|
38695
38695
|
|
|
38696
38696
|
var lodash_1 = __nccwpck_require__(3255);
|
|
38697
38697
|
|
|
@@ -38707,8 +38707,6 @@ var constants_1 = __nccwpck_require__(1542);
|
|
|
38707
38707
|
|
|
38708
38708
|
var getBuildInfo_1 = __nccwpck_require__(9197);
|
|
38709
38709
|
|
|
38710
|
-
exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES = reportingJob_1.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX + "_app.json";
|
|
38711
|
-
|
|
38712
38710
|
var createBuildJob = function (context, _a) {
|
|
38713
38711
|
var _b, _c;
|
|
38714
38712
|
|
|
@@ -38726,7 +38724,7 @@ var createBuildJob = function (context, _a) {
|
|
|
38726
38724
|
variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
|
|
38727
38725
|
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
|
|
38728
38726
|
artifacts: {
|
|
38729
|
-
paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" +
|
|
38727
|
+
paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + reportingJob_1.INVENTORY_ARTIFACTS_DIR]
|
|
38730
38728
|
}
|
|
38731
38729
|
}, def);
|
|
38732
38730
|
};
|
|
@@ -39079,6 +39077,8 @@ var constants_2 = __nccwpck_require__(9284);
|
|
|
39079
39077
|
|
|
39080
39078
|
var yarn_1 = __nccwpck_require__(464);
|
|
39081
39079
|
|
|
39080
|
+
var reportingJob_1 = __nccwpck_require__(9572);
|
|
39081
|
+
|
|
39082
39082
|
var createNodeBuildJobs = function (context) {
|
|
39083
39083
|
var _a, _b, _c, _d, _e, _f;
|
|
39084
39084
|
|
|
@@ -39090,7 +39090,7 @@ var createNodeBuildJobs = function (context) {
|
|
|
39090
39090
|
|
|
39091
39091
|
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
39092
39092
|
var yarnReportDependenciesListCommand = ((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.isClassic) ? "npm ls --depth 0 --json | jq '.dependencies | to_entries | .[] | {artifact: .key, version: .value.version, type: \"npm\"}'" : "yarn info --json -A| jq '{version: .children.Version, artifact: .value, type: \"npm\" }'";
|
|
39093
|
-
var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " +
|
|
39093
|
+
var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES + "/app.jsonl";
|
|
39094
39094
|
var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
|
|
39095
39095
|
variables: __assign({}, constants_2.NODE_RUNNER_BUILD_VARIABLES),
|
|
39096
39096
|
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
@@ -39831,7 +39831,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
39831
39831
|
|
|
39832
39832
|
exports.__esModule = true;
|
|
39833
39833
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
39834
|
-
exports.PIPELINE_IMAGE_TAG = "inventory-
|
|
39834
|
+
exports.PIPELINE_IMAGE_TAG = "inventory-b18e43b6" || 0;
|
|
39835
39835
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
39836
39836
|
|
|
39837
39837
|
/***/ }),
|
|
@@ -42200,11 +42200,14 @@ __exportStar(__nccwpck_require__(223), exports);
|
|
|
42200
42200
|
|
|
42201
42201
|
|
|
42202
42202
|
exports.__esModule = true;
|
|
42203
|
-
exports.createInventoryReporitngJob = exports.
|
|
42203
|
+
exports.createInventoryReporitngJob = exports.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES = exports.INVENTORY_ARTIFACTS_DIR = void 0;
|
|
42204
42204
|
|
|
42205
42205
|
var lodash_1 = __nccwpck_require__(3255);
|
|
42206
42206
|
|
|
42207
|
-
|
|
42207
|
+
var path_1 = __nccwpck_require__(1017);
|
|
42208
|
+
|
|
42209
|
+
exports.INVENTORY_ARTIFACTS_DIR = "__cl__reporting";
|
|
42210
|
+
exports.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES = (0, path_1.join)(exports.INVENTORY_ARTIFACTS_DIR, "dependencies");
|
|
42208
42211
|
|
|
42209
42212
|
var createInventoryReporitngJob = function (context) {
|
|
42210
42213
|
var inventoryTemplate = {
|
|
@@ -42215,13 +42218,13 @@ var createInventoryReporitngJob = function (context) {
|
|
|
42215
42218
|
build: context.componentConfig.build,
|
|
42216
42219
|
deploy: context.componentConfig.deploy
|
|
42217
42220
|
};
|
|
42218
|
-
var
|
|
42221
|
+
var printReportComand = "echo '".concat(JSON.stringify(inventoryTemplate), "' | jq --argjson dependencies \"$(cat ").concat(exports.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES, "/* | jq -n '. |= [inputs]')\" '. + {dependencies: $dependencies}'");
|
|
42219
42222
|
return {
|
|
42220
42223
|
envMode: "jobPerEnv",
|
|
42221
42224
|
name: "inventory:reporting",
|
|
42222
42225
|
stage: "reporting",
|
|
42223
42226
|
variables: {},
|
|
42224
|
-
script: [
|
|
42227
|
+
script: [printReportComand]
|
|
42225
42228
|
};
|
|
42226
42229
|
};
|
|
42227
42230
|
|
|
@@ -349461,7 +349461,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
349461
349461
|
};
|
|
349462
349462
|
|
|
349463
349463
|
exports.__esModule = true;
|
|
349464
|
-
exports.createBuildJob =
|
|
349464
|
+
exports.createBuildJob = void 0;
|
|
349465
349465
|
|
|
349466
349466
|
var lodash_1 = __nccwpck_require__(23255);
|
|
349467
349467
|
|
|
@@ -349477,8 +349477,6 @@ var constants_1 = __nccwpck_require__(11542);
|
|
|
349477
349477
|
|
|
349478
349478
|
var getBuildInfo_1 = __nccwpck_require__(9197);
|
|
349479
349479
|
|
|
349480
|
-
exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES = reportingJob_1.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX + "_app.json";
|
|
349481
|
-
|
|
349482
349480
|
var createBuildJob = function (context, _a) {
|
|
349483
349481
|
var _b, _c;
|
|
349484
349482
|
|
|
@@ -349496,7 +349494,7 @@ var createBuildJob = function (context, _a) {
|
|
|
349496
349494
|
variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
|
|
349497
349495
|
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
|
|
349498
349496
|
artifacts: {
|
|
349499
|
-
paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" +
|
|
349497
|
+
paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + reportingJob_1.INVENTORY_ARTIFACTS_DIR]
|
|
349500
349498
|
}
|
|
349501
349499
|
}, def);
|
|
349502
349500
|
};
|
|
@@ -349849,6 +349847,8 @@ var constants_2 = __nccwpck_require__(69284);
|
|
|
349849
349847
|
|
|
349850
349848
|
var yarn_1 = __nccwpck_require__(10464);
|
|
349851
349849
|
|
|
349850
|
+
var reportingJob_1 = __nccwpck_require__(89572);
|
|
349851
|
+
|
|
349852
349852
|
var createNodeBuildJobs = function (context) {
|
|
349853
349853
|
var _a, _b, _c, _d, _e, _f;
|
|
349854
349854
|
|
|
@@ -349860,7 +349860,7 @@ var createNodeBuildJobs = function (context) {
|
|
|
349860
349860
|
|
|
349861
349861
|
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
349862
349862
|
var yarnReportDependenciesListCommand = ((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.isClassic) ? "npm ls --depth 0 --json | jq '.dependencies | to_entries | .[] | {artifact: .key, version: .value.version, type: \"npm\"}'" : "yarn info --json -A| jq '{version: .children.Version, artifact: .value, type: \"npm\" }'";
|
|
349863
|
-
var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " +
|
|
349863
|
+
var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES + "/app.jsonl";
|
|
349864
349864
|
var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
|
|
349865
349865
|
variables: __assign({}, constants_2.NODE_RUNNER_BUILD_VARIABLES),
|
|
349866
349866
|
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
@@ -350601,7 +350601,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
350601
350601
|
|
|
350602
350602
|
exports.__esModule = true;
|
|
350603
350603
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
350604
|
-
exports.PIPELINE_IMAGE_TAG = "inventory-
|
|
350604
|
+
exports.PIPELINE_IMAGE_TAG = "inventory-b18e43b6" || 0;
|
|
350605
350605
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
350606
350606
|
|
|
350607
350607
|
/***/ }),
|
|
@@ -352970,11 +352970,14 @@ __exportStar(__nccwpck_require__(90223), exports);
|
|
|
352970
352970
|
|
|
352971
352971
|
|
|
352972
352972
|
exports.__esModule = true;
|
|
352973
|
-
exports.createInventoryReporitngJob = exports.
|
|
352973
|
+
exports.createInventoryReporitngJob = exports.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES = exports.INVENTORY_ARTIFACTS_DIR = void 0;
|
|
352974
352974
|
|
|
352975
352975
|
var lodash_1 = __nccwpck_require__(23255);
|
|
352976
352976
|
|
|
352977
|
-
|
|
352977
|
+
var path_1 = __nccwpck_require__(71017);
|
|
352978
|
+
|
|
352979
|
+
exports.INVENTORY_ARTIFACTS_DIR = "__cl__reporting";
|
|
352980
|
+
exports.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES = (0, path_1.join)(exports.INVENTORY_ARTIFACTS_DIR, "dependencies");
|
|
352978
352981
|
|
|
352979
352982
|
var createInventoryReporitngJob = function (context) {
|
|
352980
352983
|
var inventoryTemplate = {
|
|
@@ -352985,13 +352988,13 @@ var createInventoryReporitngJob = function (context) {
|
|
|
352985
352988
|
build: context.componentConfig.build,
|
|
352986
352989
|
deploy: context.componentConfig.deploy
|
|
352987
352990
|
};
|
|
352988
|
-
var
|
|
352991
|
+
var printReportComand = "echo '".concat(JSON.stringify(inventoryTemplate), "' | jq --argjson dependencies \"$(cat ").concat(exports.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES, "/* | jq -n '. |= [inputs]')\" '. + {dependencies: $dependencies}'");
|
|
352989
352992
|
return {
|
|
352990
352993
|
envMode: "jobPerEnv",
|
|
352991
352994
|
name: "inventory:reporting",
|
|
352992
352995
|
stage: "reporting",
|
|
352993
352996
|
variables: {},
|
|
352994
|
-
script: [
|
|
352997
|
+
script: [printReportComand]
|
|
352995
352998
|
};
|
|
352996
352999
|
};
|
|
352997
353000
|
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": ">=12.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@catladder/pipeline": "0.0.0-inventory-
|
|
27
|
+
"@catladder/pipeline": "0.0.0-inventory-b18e43b6",
|
|
28
28
|
"@kubernetes/client-node": "^0.16.2",
|
|
29
29
|
"@tsconfig/node14": "^1.0.1",
|
|
30
30
|
"@types/common-tags": "^1.8.0",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"typescript": "^4.5.4",
|
|
58
58
|
"vorpal": "^1.12.0"
|
|
59
59
|
},
|
|
60
|
-
"version": "0.0.0-inventory-
|
|
60
|
+
"version": "0.0.0-inventory-b18e43b6",
|
|
61
61
|
"stableVersion": "0.0.0"
|
|
62
62
|
}
|