@goldstack/template-email-send-cli 0.4.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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Goldstack Email Send Template Tools
2
+
3
+ This library provides an API and CLI for building Node.js modules that interact with AWS SES to send email messages.
4
+
5
+ For more information, see [Email Send Template](https://docs.goldstack.party/docs/templates/email-send)
package/bin/template ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
4
+ require('source-map-support').install();
5
+
6
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
7
+ require('./../dist/src/templateEmailSendCli')
8
+ .run(process.argv)
9
+ .catch((e) => {
10
+ console.log(e);
11
+ process.exit(1);
12
+ });
@@ -0,0 +1,2 @@
1
+ export declare const run: (args: string[]) => Promise<void>;
2
+ //# sourceMappingURL=templateEmailSendCli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateEmailSendCli.d.ts","sourceRoot":"","sources":["../../src/templateEmailSendCli.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,GAAG,SAAgB,MAAM,EAAE,KAAG,QAAQ,IAAI,CAyBtD,CAAC"}
@@ -0,0 +1,34 @@
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 utils_terraform_aws_1 = require("@goldstack/utils-terraform-aws");
11
+ const utils_package_config_1 = require("@goldstack/utils-package-config");
12
+ const yargs_1 = __importDefault(require("yargs"));
13
+ const run = async (args) => {
14
+ await (0, utils_cli_1.wrapCli)(async () => {
15
+ const argv = (0, utils_package_1.buildCli)({
16
+ yargs: yargs_1.default,
17
+ deployCommands: (yargs) => yargs,
18
+ infraCommands: (0, utils_terraform_1.infraCommands)(),
19
+ }).help().argv;
20
+ const packageConfig = new utils_package_config_1.PackageConfig({
21
+ packagePath: './',
22
+ });
23
+ const config = packageConfig.getConfig();
24
+ const command = argv._[0];
25
+ const [, , , ...opArgs] = args;
26
+ if (command === 'infra') {
27
+ await (0, utils_terraform_aws_1.terraformAwsCli)(opArgs);
28
+ return;
29
+ }
30
+ throw new Error('Unknown command: ' + command);
31
+ });
32
+ };
33
+ exports.run = run;
34
+ //# sourceMappingURL=templateEmailSendCli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateEmailSendCli.js","sourceRoot":"","sources":["../../src/templateEmailSendCli.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoD;AACpD,oDAA+C;AAC/C,gEAA2D;AAC3D,wEAAiE;AACjE,0EAAgE;AAKhE,kDAA0B;AAEnB,MAAM,GAAG,GAAG,KAAK,EAAE,IAAc,EAAiB,EAAE;IACzD,MAAM,IAAA,mBAAO,EAAC,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,IAAA,wBAAQ,EAAC;YACpB,KAAK,EAAL,eAAK;YACL,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;YAChC,aAAa,EAAE,IAAA,+BAAa,GAAE;SAC/B,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC;QAEf,MAAM,aAAa,GAAG,IAAI,oCAAa,CAGrC;YACA,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,aAAa,CAAC,SAAS,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,EAAE,AAAD,EAAG,AAAD,EAAG,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;QAE/B,IAAI,OAAO,KAAK,OAAO,EAAE;YACvB,MAAM,IAAA,qCAAe,EAAC,MAAM,CAAC,CAAC;YAC9B,OAAO;SACR;QAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,OAAO,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAzBW,QAAA,GAAG,OAyBd"}
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@goldstack/template-email-send-cli",
3
+ "version": "0.4.1",
4
+ "description": "Utilities for packages that implement email sending using AWS SES",
5
+ "keywords": [
6
+ "goldstack",
7
+ "utility",
8
+ "infrastructure",
9
+ "IaC",
10
+ "aws",
11
+ "SES",
12
+ "email",
13
+ "configuration"
14
+ ],
15
+ "homepage": "https://goldstack.party",
16
+ "bugs": {
17
+ "url": "https://github.com/goldstack/goldstack/issues"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/goldstack/goldstack.git"
22
+ },
23
+ "license": "MIT",
24
+ "author": "Max Rohde",
25
+ "sideEffects": false,
26
+ "main": "dist/src/templateEmailSendCli.js",
27
+ "bin": {
28
+ "template": "./bin/template",
29
+ "template-email-send": "./bin/template"
30
+ },
31
+ "scripts": {
32
+ "build": "yarn clean && yarn compile",
33
+ "build:watch": "yarn clean && yarn compile-watch",
34
+ "clean": "rimraf ./dist",
35
+ "compile": "tsc -p tsconfig.json",
36
+ "compile-watch": "tsc -p tsconfig.json --watch",
37
+ "compile-watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
38
+ "coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js --runInBand",
39
+ "prepublishOnly": "yarn run build",
40
+ "publish": "utils-git changed --exec \"yarn npm publish $@\"",
41
+ "test": "GOLDSTACK_DEPLOYMENT=local jest --watch --config=./jest.config.js --runInBand",
42
+ "test-ci": "GOLDSTACK_DEPLOYMENT=local jest --passWithNoTests --config=./jest.config.js --runInBand",
43
+ "version:apply": "utils-git changed --exec \"yarn version $@ && yarn version apply\"",
44
+ "version:apply:force": "yarn version $@ && yarn version apply"
45
+ },
46
+ "dependencies": {
47
+ "@goldstack/template-email-send": "0.3.103",
48
+ "@goldstack/utils-cli": "0.2.13",
49
+ "@goldstack/utils-package": "0.3.38",
50
+ "@goldstack/utils-package-config": "0.3.39",
51
+ "@goldstack/utils-terraform": "0.3.68",
52
+ "@goldstack/utils-terraform-aws": "0.3.67",
53
+ "yargs": "^15.4.1"
54
+ },
55
+ "devDependencies": {
56
+ "@goldstack/utils-git": "0.1.34",
57
+ "@goldstack/utils-package-config-generate": "0.2.14",
58
+ "@types/jest": "^27.5.1",
59
+ "@types/node": "^17.0.33",
60
+ "@types/yargs": "^15.0.5",
61
+ "jest": "^28.1.0",
62
+ "rimraf": "^3.0.2",
63
+ "ts-jest": "^28.0.2",
64
+ "ts-node": "^10.7.0",
65
+ "typescript": "^4.6.4"
66
+ },
67
+ "publishConfig": {
68
+ "main": "dist/src/templateEmailSendCli.js"
69
+ }
70
+ }