@raisenow/tamaro-cli 1.1.5 → 1.1.7
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/.nvmrc +1 -1
- package/dist/{chunk-TXIBRHT6.js → chunk-NJVU7WR2.js} +20 -24
- package/dist/cli.js +180 -137
- package/dist/webpack.config.js +10 -6
- package/package.json +55 -53
- package/src/cli.ts +15 -5
- package/src/commands/build.ts +13 -7
- package/src/commands/deploy-email-config.ts +76 -12
- package/src/commands/deploy.ts +28 -30
- package/src/commands/dev.ts +5 -7
- package/src/commands/list-deployed.ts +17 -11
- package/src/commands/serve.ts +4 -6
- package/src/lib/aws.ts +34 -55
- package/src/lib/command.ts +4 -8
- package/src/lib/constants.ts +3 -4
- package/src/lib/env.ts +1 -2
- package/src/webpack.config.ts +9 -5
- package/tsconfig.json +25 -73
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v20.18.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/.pnpm/tsup@8.
|
|
1
|
+
// node_modules/.pnpm/tsup@8.3.5_jiti@1.21.0_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -27,12 +27,25 @@ var logDataTable = (data) => {
|
|
|
27
27
|
console.log("");
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
+
// src/lib/command.ts
|
|
31
|
+
import { execaCommandSync } from "execa";
|
|
32
|
+
var halt = (message) => {
|
|
33
|
+
logError(message);
|
|
34
|
+
process.exit(1);
|
|
35
|
+
};
|
|
36
|
+
var prepareCommand = (cmd) => {
|
|
37
|
+
return cmd.replace(/\n/gm, " ").replace(/[ \t]{2,}/gm, " ").trim();
|
|
38
|
+
};
|
|
39
|
+
var runCommandSync = (cmd, options) => {
|
|
40
|
+
return execaCommandSync(prepareCommand(cmd), options);
|
|
41
|
+
};
|
|
42
|
+
|
|
30
43
|
// src/lib/constants.ts
|
|
31
44
|
var DEFAULT_TAG = "latest";
|
|
32
45
|
var DEFAULT_PORT = 1234;
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
46
|
+
var AWS_S3_BUCKET_TAMARO = "tamaro.raisenow.com";
|
|
47
|
+
var AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_STAGE = "rnw-stage-email-service";
|
|
48
|
+
var AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_PROD = "rnw-email-service";
|
|
36
49
|
var CORE_CONFIG_NAME = "tamaro-core";
|
|
37
50
|
var AWS_CLOUDFRONT_DISTRIBUTION_ID = "EHJ1OM458YQ0I";
|
|
38
51
|
var HTTPS_CRT_FILE = "localhost.crt";
|
|
@@ -141,23 +154,6 @@ import { config as dotenvConfig } from "dotenv";
|
|
|
141
154
|
import { expand as dotenvExpand } from "dotenv-expand";
|
|
142
155
|
import { globSync } from "glob";
|
|
143
156
|
import stripIndent3 from "strip-indent";
|
|
144
|
-
|
|
145
|
-
// src/lib/command.ts
|
|
146
|
-
import {
|
|
147
|
-
execaCommandSync
|
|
148
|
-
} from "execa";
|
|
149
|
-
var halt = (message, exitCode = 1) => {
|
|
150
|
-
logError(message);
|
|
151
|
-
process.exit(exitCode);
|
|
152
|
-
};
|
|
153
|
-
var prepareCommand = (cmd) => {
|
|
154
|
-
return cmd.replace(/\n/gm, " ").replace(/[ \t]{2,}/gm, " ").trim();
|
|
155
|
-
};
|
|
156
|
-
var runCommandSync = (cmd, options) => {
|
|
157
|
-
return execaCommandSync(prepareCommand(cmd), options);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
// src/lib/env.ts
|
|
161
157
|
var require3 = createRequire2(import.meta.url);
|
|
162
158
|
var getEnvVars = (files, ifMin, ifCore, ifLocalCore, ifHttps) => {
|
|
163
159
|
const filePath = files.find((file) => basename2(file) === ".env");
|
|
@@ -280,9 +276,9 @@ export {
|
|
|
280
276
|
runCommandSync,
|
|
281
277
|
DEFAULT_TAG,
|
|
282
278
|
DEFAULT_PORT,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
AWS_S3_BUCKET_TAMARO,
|
|
280
|
+
AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_STAGE,
|
|
281
|
+
AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_PROD,
|
|
286
282
|
CORE_CONFIG_NAME,
|
|
287
283
|
AWS_CLOUDFRONT_DISTRIBUTION_ID,
|
|
288
284
|
HTTPS_CRT_FILE,
|