@goldstack/template-s3-cli 0.4.2 → 0.4.5
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,2 +1,2 @@
|
|
|
1
|
-
export declare const run: (args: string[]) => Promise<void>;
|
|
1
|
+
export declare const run: (args: string[]) => Promise<void>;
|
|
2
2
|
//# sourceMappingURL=templateS3Cli.d.ts.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.run = void 0;
|
|
7
|
-
const utils_package_1 = require("@goldstack/utils-package");
|
|
8
|
-
const utils_cli_1 = require("@goldstack/utils-cli");
|
|
9
|
-
const utils_terraform_1 = require("@goldstack/utils-terraform");
|
|
10
|
-
const templateS3Deploy_1 = require("./templateS3Deploy");
|
|
11
|
-
const utils_terraform_aws_1 = require("@goldstack/utils-terraform-aws");
|
|
12
|
-
const utils_package_config_1 = require("@goldstack/utils-package-config");
|
|
13
|
-
const yargs_1 = __importDefault(require("yargs"));
|
|
14
|
-
const run = async (args) => {
|
|
15
|
-
await (0, utils_cli_1.wrapCli)(async () => {
|
|
16
|
-
const argv = (0, utils_package_1.buildCli)({
|
|
17
|
-
yargs: yargs_1.default,
|
|
18
|
-
deployCommands: (0, utils_package_1.buildDeployCommands)(),
|
|
19
|
-
infraCommands: (0, utils_terraform_1.infraCommands)(),
|
|
20
|
-
}).help().argv;
|
|
21
|
-
const packageConfig = new utils_package_config_1.PackageConfig({
|
|
22
|
-
packagePath: './',
|
|
23
|
-
});
|
|
24
|
-
const config = packageConfig.getConfig();
|
|
25
|
-
const command = argv._[0];
|
|
26
|
-
const [, , , ...opArgs] = args;
|
|
27
|
-
if (command === 'infra') {
|
|
28
|
-
await (0, utils_terraform_aws_1.terraformAwsCli)(opArgs);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (command === 'deploy') {
|
|
32
|
-
await (0, templateS3Deploy_1.deployCli)(config, ['deploy', ...opArgs]);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
throw new Error('Unknown command: ' + command);
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
exports.run = run;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.run = void 0;
|
|
7
|
+
const utils_package_1 = require("@goldstack/utils-package");
|
|
8
|
+
const utils_cli_1 = require("@goldstack/utils-cli");
|
|
9
|
+
const utils_terraform_1 = require("@goldstack/utils-terraform");
|
|
10
|
+
const templateS3Deploy_1 = require("./templateS3Deploy");
|
|
11
|
+
const utils_terraform_aws_1 = require("@goldstack/utils-terraform-aws");
|
|
12
|
+
const utils_package_config_1 = require("@goldstack/utils-package-config");
|
|
13
|
+
const yargs_1 = __importDefault(require("yargs"));
|
|
14
|
+
const run = async (args) => {
|
|
15
|
+
await (0, utils_cli_1.wrapCli)(async () => {
|
|
16
|
+
const argv = (0, utils_package_1.buildCli)({
|
|
17
|
+
yargs: yargs_1.default,
|
|
18
|
+
deployCommands: (0, utils_package_1.buildDeployCommands)(),
|
|
19
|
+
infraCommands: (0, utils_terraform_1.infraCommands)(),
|
|
20
|
+
}).help().argv;
|
|
21
|
+
const packageConfig = new utils_package_config_1.PackageConfig({
|
|
22
|
+
packagePath: './',
|
|
23
|
+
});
|
|
24
|
+
const config = packageConfig.getConfig();
|
|
25
|
+
const command = argv._[0];
|
|
26
|
+
const [, , , ...opArgs] = args;
|
|
27
|
+
if (command === 'infra') {
|
|
28
|
+
await (0, utils_terraform_aws_1.terraformAwsCli)(opArgs);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (command === 'deploy') {
|
|
32
|
+
await (0, templateS3Deploy_1.deployCli)(config, ['deploy', ...opArgs]);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
throw new Error('Unknown command: ' + command);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
exports.run = run;
|
|
39
39
|
//# sourceMappingURL=templateS3Cli.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S3Configuration } from '@goldstack/template-s3';
|
|
2
|
-
export declare const deployCli: (config: S3Configuration, args: string[]) => Promise<void>;
|
|
1
|
+
import { S3Configuration } from '@goldstack/template-s3';
|
|
2
|
+
export declare const deployCli: (config: S3Configuration, args: string[]) => Promise<void>;
|
|
3
3
|
//# sourceMappingURL=templateS3Deploy.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deployCli = void 0;
|
|
4
|
-
const deployCli = async (config, args) => {
|
|
5
|
-
throw new Error('Deploy not supported yet.');
|
|
6
|
-
};
|
|
7
|
-
exports.deployCli = deployCli;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deployCli = void 0;
|
|
4
|
+
const deployCli = async (config, args) => {
|
|
5
|
+
throw new Error('Deploy not supported yet.');
|
|
6
|
+
};
|
|
7
|
+
exports.deployCli = deployCli;
|
|
8
8
|
//# sourceMappingURL=templateS3Deploy.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/template-s3-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Building blocks for linking a package to an AWS S3 bucket.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@goldstack/template-s3": "0.3.
|
|
46
|
-
"@goldstack/utils-cli": "0.2.
|
|
47
|
-
"@goldstack/utils-docker": "0.3.
|
|
48
|
-
"@goldstack/utils-log": "0.2.
|
|
49
|
-
"@goldstack/utils-package": "0.3.
|
|
50
|
-
"@goldstack/utils-package-config": "0.3.
|
|
51
|
-
"@goldstack/utils-s3-deployment": "0.3.
|
|
52
|
-
"@goldstack/utils-sh": "0.4.
|
|
53
|
-
"@goldstack/utils-template": "0.3.
|
|
54
|
-
"@goldstack/utils-terraform": "0.3.
|
|
55
|
-
"@goldstack/utils-terraform-aws": "0.3.
|
|
45
|
+
"@goldstack/template-s3": "0.3.101",
|
|
46
|
+
"@goldstack/utils-cli": "0.2.14",
|
|
47
|
+
"@goldstack/utils-docker": "0.3.39",
|
|
48
|
+
"@goldstack/utils-log": "0.2.15",
|
|
49
|
+
"@goldstack/utils-package": "0.3.39",
|
|
50
|
+
"@goldstack/utils-package-config": "0.3.40",
|
|
51
|
+
"@goldstack/utils-s3-deployment": "0.3.56",
|
|
52
|
+
"@goldstack/utils-sh": "0.4.32",
|
|
53
|
+
"@goldstack/utils-template": "0.3.36",
|
|
54
|
+
"@goldstack/utils-terraform": "0.3.69",
|
|
55
|
+
"@goldstack/utils-terraform-aws": "0.3.68",
|
|
56
56
|
"aws-sdk": "2.1055.0",
|
|
57
57
|
"source-map-support": "^0.5.21",
|
|
58
58
|
"yargs": "^15.4.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@goldstack/utils-docs-cli": "0.3.11",
|
|
62
|
-
"@goldstack/utils-git": "0.1.
|
|
63
|
-
"@goldstack/utils-package-config-generate": "0.2.
|
|
62
|
+
"@goldstack/utils-git": "0.1.35",
|
|
63
|
+
"@goldstack/utils-package-config-generate": "0.2.15",
|
|
64
64
|
"@types/jest": "^27.5.1",
|
|
65
65
|
"@types/mock-aws-s3": "^2.6.3",
|
|
66
66
|
"@types/node": "^17.0.33",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"jest": "^28.1.0",
|
|
69
69
|
"rimraf": "^3.0.2",
|
|
70
70
|
"ts-jest": "^28.0.2",
|
|
71
|
-
"ts-node": "^10.
|
|
71
|
+
"ts-node": "^10.8.0",
|
|
72
72
|
"typescript": "^4.6.4"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|