@goldstack/template-user-management-cli 0.1.1
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/bin/template +11 -0
- package/dist/src/templateUserManagementCli.d.ts +2 -0
- package/dist/src/templateUserManagementCli.d.ts.map +1 -0
- package/dist/src/templateUserManagementCli.js +41 -0
- package/dist/src/templateUserManagementCli.js.map +1 -0
- package/dist/src/templateUserManagementDeploy.d.ts +3 -0
- package/dist/src/templateUserManagementDeploy.d.ts.map +1 -0
- package/dist/src/templateUserManagementDeploy.js +8 -0
- package/dist/src/templateUserManagementDeploy.js.map +1 -0
- package/package.json +75 -0
package/bin/template
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
4
|
+
require('source-map-support').install();
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
6
|
+
require('./../dist/src/templateUserManagementCli')
|
|
7
|
+
.run(process.argv)
|
|
8
|
+
.catch((e) => {
|
|
9
|
+
console.log(e);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateUserManagementCli.d.ts","sourceRoot":"","sources":["../../src/templateUserManagementCli.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,GAAG,SAAgB,MAAM,EAAE,KAAG,QAAQ,IAAI,CAgCtD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 templateUserManagementDeploy_1 = require("./templateUserManagementDeploy");
|
|
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 = await (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
|
+
})
|
|
21
|
+
.help()
|
|
22
|
+
.parse();
|
|
23
|
+
const packageConfig = new utils_package_config_1.PackageConfig({
|
|
24
|
+
packagePath: './',
|
|
25
|
+
});
|
|
26
|
+
const config = packageConfig.getConfig();
|
|
27
|
+
const command = argv._[0];
|
|
28
|
+
const [, , , ...opArgs] = args;
|
|
29
|
+
if (command === 'infra') {
|
|
30
|
+
await (0, utils_terraform_aws_1.terraformAwsCli)(opArgs);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (command === 'deploy') {
|
|
34
|
+
await (0, templateUserManagementDeploy_1.deployCli)(config, ['deploy', ...opArgs]);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
throw new Error('Unknown command: ' + command);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
exports.run = run;
|
|
41
|
+
//# sourceMappingURL=templateUserManagementCli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateUserManagementCli.js","sourceRoot":"","sources":["../../src/templateUserManagementCli.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAyE;AACzE,oDAA+C;AAC/C,gEAA2D;AAC3D,iFAA2D;AAC3D,wEAAiE;AACjE,0EAAgE;AAKhE,k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IAAI,CAEd,CAAC"}
|
|
@@ -0,0 +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;
|
|
8
|
+
//# sourceMappingURL=templateUserManagementDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateUserManagementDeploy.js","sourceRoot":"","sources":["../../src/templateUserManagementDeploy.ts"],"names":[],"mappings":";;;AAGO,MAAM,SAAS,GAAG,KAAK,EAC5B,MAAmC,EACnC,IAAc,EACC,EAAE;IACjB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAC/C,CAAC,CAAC;AALW,QAAA,SAAS,aAKpB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@goldstack/template-user-management-cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Command line tools for User Management template",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"goldstack",
|
|
7
|
+
"utility",
|
|
8
|
+
"infrastructure",
|
|
9
|
+
"cognito",
|
|
10
|
+
"aws",
|
|
11
|
+
"IaC",
|
|
12
|
+
"configuration"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://goldstack.party",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/goldstack/goldstack/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/goldstack/goldstack.git"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "Max Rohde",
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"main": "dist/src/templateUserManagementCli.js",
|
|
26
|
+
"bin": {
|
|
27
|
+
"template": "./bin/template",
|
|
28
|
+
"template-user-management": "./bin/template"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn clean && yarn compile",
|
|
32
|
+
"build:watch": "yarn clean && yarn compile-watch",
|
|
33
|
+
"clean": "rimraf ./dist",
|
|
34
|
+
"compile": "tsc -p tsconfig.json",
|
|
35
|
+
"compile-watch": "tsc -p tsconfig.json --watch",
|
|
36
|
+
"compile-watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
|
|
37
|
+
"coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js --runInBand",
|
|
38
|
+
"prepublishOnly": "yarn run build",
|
|
39
|
+
"publish": "utils-git changed --exec \"yarn npm publish $@\"",
|
|
40
|
+
"test-ci": "jest --passWithNoTests --config=./jest.config.js --runInBand",
|
|
41
|
+
"version:apply": "utils-git changed --exec \"yarn version $@ && yarn version apply\"",
|
|
42
|
+
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@goldstack/template-user-management": "0.1.1",
|
|
46
|
+
"@goldstack/utils-cli": "0.3.4",
|
|
47
|
+
"@goldstack/utils-docker": "0.4.4",
|
|
48
|
+
"@goldstack/utils-log": "0.3.4",
|
|
49
|
+
"@goldstack/utils-package": "0.4.4",
|
|
50
|
+
"@goldstack/utils-package-config": "0.4.4",
|
|
51
|
+
"@goldstack/utils-sh": "0.5.4",
|
|
52
|
+
"@goldstack/utils-template": "0.4.4",
|
|
53
|
+
"@goldstack/utils-terraform": "0.4.7",
|
|
54
|
+
"@goldstack/utils-terraform-aws": "0.4.7",
|
|
55
|
+
"aws-sdk": "^2.1222.0",
|
|
56
|
+
"source-map-support": "^0.5.21",
|
|
57
|
+
"yargs": "^17.5.1"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@goldstack/utils-docs-cli": "0.3.11",
|
|
61
|
+
"@goldstack/utils-git": "0.2.4",
|
|
62
|
+
"@goldstack/utils-package-config-generate": "0.3.4",
|
|
63
|
+
"@types/jest": "^29.0.1",
|
|
64
|
+
"@types/node": "^18.7.13",
|
|
65
|
+
"@types/yargs": "^17.0.10",
|
|
66
|
+
"jest": "^28.1.0",
|
|
67
|
+
"rimraf": "^3.0.2",
|
|
68
|
+
"ts-jest": "^28.0.2",
|
|
69
|
+
"ts-node": "^10.9.1",
|
|
70
|
+
"typescript": "^4.8.4"
|
|
71
|
+
},
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"main": "dist/src/templateUserManagementCli.js"
|
|
74
|
+
}
|
|
75
|
+
}
|