carlin 0.22.2 → 1.16.2
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PIPELINE_ECS_TASK_EXECUTION_MANUAL_APPROVAL_ACTION_NAME = exports.PIPELINE_ECS_TASK_EXECUTION_STAGE_NAME = exports.ECS_TASK_DEFAULT_MEMORY = exports.ECS_TASK_DEFAULT_CPU = void 0;
|
|
3
|
+
exports.CICD_FOLDER = exports.PIPELINE_ECS_TASK_EXECUTION_MANUAL_APPROVAL_ACTION_NAME = exports.PIPELINE_ECS_TASK_EXECUTION_STAGE_NAME = exports.ECS_TASK_DEFAULT_MEMORY = exports.ECS_TASK_DEFAULT_CPU = void 0;
|
|
4
4
|
exports.ECS_TASK_DEFAULT_CPU = '2048';
|
|
5
5
|
exports.ECS_TASK_DEFAULT_MEMORY = '4096';
|
|
6
6
|
exports.PIPELINE_ECS_TASK_EXECUTION_STAGE_NAME = `PipelineRunECSTasksStage`;
|
|
7
7
|
exports.PIPELINE_ECS_TASK_EXECUTION_MANUAL_APPROVAL_ACTION_NAME = `PipelineRunECSTasksApproval`;
|
|
8
|
+
exports.CICD_FOLDER = '.cicd';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTagCommands = exports.getMainCommands = exports.getClosedPrCommands = exports.getPrCommands = exports.getCommandFileDir = exports.pipelines = void 0;
|
|
4
|
+
const config_1 = require("./config");
|
|
4
5
|
exports.pipelines = ['pr', 'main', 'tag'];
|
|
5
|
-
const getCommandFileDir = (pipeline) =>
|
|
6
|
+
const getCommandFileDir = (pipeline) => `./${config_1.CICD_FOLDER}/commands/${pipeline}`;
|
|
6
7
|
exports.getCommandFileDir = getCommandFileDir;
|
|
7
8
|
const getPrCommands = ({ branch }) => [
|
|
8
9
|
'set -e',
|
|
@@ -12,7 +13,7 @@ const getPrCommands = ({ branch }) => [
|
|
|
12
13
|
* Update to the most recent main branch to Lerna performs the diff properly.
|
|
13
14
|
*/
|
|
14
15
|
'git pull origin main',
|
|
15
|
-
`git checkout ${branch} || echo 'branch not found, probably deleted'; exit 0`,
|
|
16
|
+
`git checkout ${branch} || (echo 'branch not found, probably deleted'; exit 0)`,
|
|
16
17
|
`git pull origin ${branch}`,
|
|
17
18
|
'git rev-parse HEAD',
|
|
18
19
|
'git status',
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.destroy = exports.canDestroyStack = exports.deploy = exports.defaultTemplatePaths = exports.enableTerminationProtection = exports.updateStack = exports.createStack = exports.deleteStack = exports.printStackOutputsAfterDeploy = exports.getStackOutput = exports.describeStack = exports.describeStackEvents = exports.doesStackExist = exports.describeStackResource = exports.describeStacks = exports.cloudFormationV2 = exports.cloudFormation = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
6
|
-
const aws_sdk_1 = tslib_1.__importDefault(require("aws-sdk"));
|
|
7
5
|
const fs = tslib_1.__importStar(require("fs"));
|
|
8
|
-
const npmlog_1 = tslib_1.__importDefault(require("npmlog"));
|
|
9
6
|
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
10
8
|
const utils_1 = require("../utils");
|
|
11
9
|
const addDefaults_cloudFormation_1 = require("./addDefaults.cloudFormation");
|
|
12
10
|
const s3_1 = require("./s3");
|
|
13
11
|
const stackName_1 = require("./stackName");
|
|
12
|
+
const aws_sdk_1 = tslib_1.__importDefault(require("aws-sdk"));
|
|
13
|
+
const npmlog_1 = tslib_1.__importDefault(require("npmlog"));
|
|
14
14
|
const logPrefix = 'cloudformation';
|
|
15
15
|
npmlog_1.default.addLevel('event', 10000, { fg: 'yellow' });
|
|
16
16
|
npmlog_1.default.addLevel('output', 10000, { fg: 'blue' });
|
|
@@ -25,7 +25,9 @@ const isTemplateBodyGreaterThanMaxSize = (template) => Buffer.byteLength(JSON.st
|
|
|
25
25
|
* @param input.template: CloudFormation template.
|
|
26
26
|
*/
|
|
27
27
|
const uploadTemplateToBaseStackBucket = async ({ stackName, template, }) => {
|
|
28
|
+
// eslint-disable-next-line no-console
|
|
28
29
|
console.info({ stackName, template });
|
|
30
|
+
// eslint-disable-next-line no-console
|
|
29
31
|
console.log('uploadTemplateToBaseStackBucket needs to be implemented.');
|
|
30
32
|
throw new Error();
|
|
31
33
|
// const key = getPepeBucketTemplateKey({ stackName });
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deployLambdaLayerCommand = exports.options = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
/* eslint-disable no-param-reassign */
|
|
6
5
|
const npmlog_1 = tslib_1.__importDefault(require("npmlog"));
|
|
7
6
|
const config_1 = require("../../config");
|
|
8
7
|
const utils_1 = require("../../utils");
|
package/dist/utils/formatCode.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uglify = exports.formatCode = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const prettier = tslib_1.__importStar(require("prettier"));
|
|
6
5
|
const UglifyJS = tslib_1.__importStar(require("uglify-js"));
|
|
6
|
+
const prettier = tslib_1.__importStar(require("prettier"));
|
|
7
7
|
const formatCode = (code) => {
|
|
8
8
|
return prettier.format(code, { parser: 'babel' });
|
|
9
9
|
};
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readObjectFile = exports.readYaml = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
/* eslint-disable import/no-dynamic-require */
|
|
6
|
-
/* eslint-disable global-require */
|
|
7
5
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
8
6
|
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
9
7
|
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carlin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.16.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"lint": "eslint src",
|
|
7
8
|
"test": "jest",
|
|
8
|
-
"build": "tsc"
|
|
9
|
-
"prepare": "npm run test && npm run build",
|
|
10
|
-
"deploy": "npm publish"
|
|
9
|
+
"build": "tsc"
|
|
11
10
|
},
|
|
12
11
|
"repository": {
|
|
13
12
|
"type": "git",
|
|
@@ -47,10 +46,12 @@
|
|
|
47
46
|
"prettier": "^2.6.2",
|
|
48
47
|
"semver": "^7.3.7",
|
|
49
48
|
"simple-git": "^3.7.1",
|
|
49
|
+
"ts-node": "^10.8.1",
|
|
50
50
|
"uglify-js": "^3.15.4",
|
|
51
51
|
"yargs": "^17.4.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
+
"@ttoss/test-utils": "^1.16.1",
|
|
54
55
|
"@types/adm-zip": "^0.5.0",
|
|
55
56
|
"@types/aws-lambda": "^8.10.95",
|
|
56
57
|
"@types/deep-equal": "^1.0.1",
|
|
@@ -61,7 +62,8 @@
|
|
|
61
62
|
"@types/npmlog": "^4.1.4",
|
|
62
63
|
"@types/semver": "^7.3.9",
|
|
63
64
|
"@types/uglify-js": "^3.13.2",
|
|
64
|
-
"@types/yargs": "^17.0.10"
|
|
65
|
+
"@types/yargs": "^17.0.10",
|
|
66
|
+
"jest": "^28.1.1"
|
|
65
67
|
},
|
|
66
68
|
"bin": {
|
|
67
69
|
"carlin": "./bin/carlin"
|
|
@@ -72,5 +74,6 @@
|
|
|
72
74
|
],
|
|
73
75
|
"engines": {
|
|
74
76
|
"node": ">=14.0.0"
|
|
75
|
-
}
|
|
77
|
+
},
|
|
78
|
+
"gitHead": "0a527d799ae51d164c26d5e9058e7465c3c22cc3"
|
|
76
79
|
}
|