@raisenow/tamaro-cli 1.8.0-dev.5 → 1.8.0-dev.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.
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/tamaro-cli.iml" filepath="$PROJECT_DIR$/.idea/tamaro-cli.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -2,29 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="03cc3f97-55ca-4737-9fe2-779ac8457ab2" name="Changes" comment="">
5
- <change beforePath="$PROJECT_DIR$/eslint.config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/eslint.config.ts" afterDir="false" />
6
- <change beforePath="$PROJECT_DIR$/src/cli.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/cli.ts" afterDir="false" />
7
- <change beforePath="$PROJECT_DIR$/src/commands/archive.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/archive.ts" afterDir="false" />
8
- <change beforePath="$PROJECT_DIR$/src/commands/build.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/build.ts" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/src/commands/deploy-email-config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/deploy-email-config.ts" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/src/commands/deploy.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/deploy.ts" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/src/commands/dev.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/dev.ts" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/src/commands/list-deployed.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/list-deployed.ts" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/src/commands/serve.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/serve.ts" afterDir="false" />
14
- <change beforePath="$PROJECT_DIR$/src/commands/unarchive.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/unarchive.ts" afterDir="false" />
15
- <change beforePath="$PROJECT_DIR$/src/commands/undeploy-email-config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/undeploy-email-config.ts" afterDir="false" />
16
- <change beforePath="$PROJECT_DIR$/src/commands/undeploy.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/undeploy.ts" afterDir="false" />
17
- <change beforePath="$PROJECT_DIR$/src/commands/validate.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/commands/validate.ts" afterDir="false" />
18
- <change beforePath="$PROJECT_DIR$/src/lib/InterpolateHtmlPlugin.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/InterpolateHtmlPlugin.ts" afterDir="false" />
19
- <change beforePath="$PROJECT_DIR$/src/lib/aws.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/aws.ts" afterDir="false" />
20
- <change beforePath="$PROJECT_DIR$/src/lib/command.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/command.ts" afterDir="false" />
21
- <change beforePath="$PROJECT_DIR$/src/lib/env.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/env.ts" afterDir="false" />
22
- <change beforePath="$PROJECT_DIR$/src/lib/https.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/https.ts" afterDir="false" />
23
- <change beforePath="$PROJECT_DIR$/src/lib/notifier.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/notifier.ts" afterDir="false" />
24
- <change beforePath="$PROJECT_DIR$/src/lib/resolve.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/resolve.ts" afterDir="false" />
25
- <change beforePath="$PROJECT_DIR$/src/lib/validators/assertTagValid.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/validators/assertTagValid.ts" afterDir="false" />
26
- <change beforePath="$PROJECT_DIR$/src/lib/validators/validateEmailTemplates.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/validators/validateEmailTemplates.ts" afterDir="false" />
27
- <change beforePath="$PROJECT_DIR$/src/webpack.config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/webpack.config.ts" afterDir="false" />
5
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
28
6
  </list>
29
7
  <option name="SHOW_DIALOG" value="false" />
30
8
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -45,19 +23,19 @@
45
23
  <option name="showLibraryContents" value="true" />
46
24
  <option name="showMembers" value="true" />
47
25
  </component>
48
- <component name="PropertiesComponent"><![CDATA[{
49
- "keyToString": {
50
- "RunOnceActivity.OpenProjectViewOnStart": "true",
51
- "RunOnceActivity.ShowReadmeOnStart": "true",
52
- "WebServerToolWindowFactoryState": "false",
53
- "node.js.detected.package.eslint": "true",
54
- "node.js.selected.package.eslint": "(autodetect)",
55
- "nodejs_package_manager_path": "pnpm",
56
- "prettierjs.PrettierConfiguration.Package": "/Users/sigerello/dev/_raisenow/tools/tamaro-cli/node_modules/prettier",
57
- "ts.external.directory.path": "/Users/sigerello/dev/_raisenow/tools/tamaro-cli/node_modules/typescript/lib",
58
- "vue.rearranger.settings.migration": "true"
26
+ <component name="PropertiesComponent">{
27
+ &quot;keyToString&quot;: {
28
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
29
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
30
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
31
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
32
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
33
+ &quot;nodejs_package_manager_path&quot;: &quot;pnpm&quot;,
34
+ &quot;prettierjs.PrettierConfiguration.Package&quot;: &quot;/Users/sigerello/dev/_raisenow/tools/tamaro-cli/node_modules/prettier&quot;,
35
+ &quot;ts.external.directory.path&quot;: &quot;/Users/sigerello/dev/_raisenow/tools/tamaro-cli/node_modules/typescript/lib&quot;,
36
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
59
37
  }
60
- }]]></component>
38
+ }</component>
61
39
  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
62
40
  <component name="TaskManager">
63
41
  <task active="true" id="Default" summary="Default task">
@@ -66,7 +44,8 @@
66
44
  <option name="number" value="Default" />
67
45
  <option name="presentableId" value="Default" />
68
46
  <updated>1775412859839</updated>
69
- <workItem from="1775412861312" duration="865000" />
47
+ <workItem from="1775412861312" duration="2060000" />
48
+ <workItem from="1776174639969" duration="648000" />
70
49
  </task>
71
50
  <servers />
72
51
  </component>
@@ -33,7 +33,7 @@ definitions:
33
33
  - pnpm test
34
34
  # Do not bother for dev deps
35
35
  # @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
36
- - pnpm audit --audit-level=critical --prod
36
+ # - pnpm audit --audit-level=critical --prod
37
37
 
38
38
  pipelines:
39
39
  default:
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as promptConfirmation, D as logError, E as logDataTable, O as logSuccess, S as halt, T as logCommand, _ as getWidgetUuid, a as AWS_S3_BUCKET_TAMARO, c as CORE_CONFIG_NAME, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, h as getPaths, i as AWS_CLOUDFRONT_DISTRIBUTION_ID, k as logTitle, l as DEFAULT_PORT, m as getIfCoreFns, n as assertEnvValid, o as AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_PROD, s as AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_STAGE, t as applyEnv, u as DEFAULT_TAG, w as runCommandSync, x as resolveOwn, y as resolveBin } from "./env-B20cxmcB.js";
2
+ import { C as promptConfirmation, D as logError, E as logDataTable, O as logSuccess, S as halt, T as logCommand, _ as getWidgetUuid, a as AWS_S3_BUCKET_TAMARO, c as CORE_CONFIG_NAME, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, h as getPaths, i as AWS_CLOUDFRONT_DISTRIBUTION_ID, k as logTitle, l as DEFAULT_PORT, m as getIfCoreFns, n as assertEnvValid, o as AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_PROD, s as AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_STAGE, t as applyEnv, u as DEFAULT_TAG, w as runCommandSync, x as resolveOwn, y as resolveBin } from "./env-CSg7BrvF.js";
3
3
  import { createCommand } from "commander";
4
4
  import fs, { existsSync, mkdirSync, renameSync } from "node:fs";
5
5
  import path from "node:path";
@@ -789,7 +789,7 @@ const promptBucketTamaroEmailConfig = async () => {
789
789
  //#endregion
790
790
  //#region package.json
791
791
  var name = "@raisenow/tamaro-cli";
792
- var version = "1.8.0-dev.5";
792
+ var version = "1.8.0-dev.7";
793
793
  //#endregion
794
794
  //#region src/cli.ts
795
795
  /**
@@ -50,7 +50,7 @@ const promptConfirmation = async (message, skipConfirmation) => {
50
50
  if (!confirmed) halt("Operation cancelled.");
51
51
  };
52
52
  //#endregion
53
- //#region node_modules/.pnpm/tsdown@0.21.7_synckit@0.11.11_typescript@6.0.2/node_modules/tsdown/esm-shims.js
53
+ //#region node_modules/.pnpm/tsdown@0.21.8_synckit@0.11.11_typescript@6.0.2/node_modules/tsdown/esm-shims.js
54
54
  const getFilename = () => fileURLToPath(import.meta.url);
55
55
  const getDirname = () => path.dirname(getFilename());
56
56
  const __dirname = /* @__PURE__ */ getDirname();
@@ -185,6 +185,23 @@ const HTTPS_KEY_FILE = "localhost.key";
185
185
  //#endregion
186
186
  //#region src/lib/env.ts
187
187
  const require = createRequire(import.meta.url);
188
+ const execGitCommand = (command) => {
189
+ try {
190
+ const { stdout } = execaCommandSync(command);
191
+ return stdout.trim();
192
+ } catch {
193
+ return;
194
+ }
195
+ };
196
+ const getGitCommitHash = () => {
197
+ return execGitCommand("git rev-parse HEAD");
198
+ };
199
+ const getGitBranchName = () => {
200
+ return execGitCommand("git rev-parse --abbrev-ref HEAD");
201
+ };
202
+ const getGitTagName = () => {
203
+ return execGitCommand("git describe --tags --exact-match");
204
+ };
188
205
  const getEnvVars = (files, ifMin, ifCore, ifLocalCore, ifHttps) => {
189
206
  const filePath = files.find((file) => path.basename(file) === ".env");
190
207
  if (filePath) config({ path: filePath });
@@ -213,6 +230,12 @@ const getEnvVars = (files, ifMin, ifCore, ifLocalCore, ifHttps) => {
213
230
  process.env.CORE_URL ??= process.env.CORE_URL_PATTERN.replace("{{version}}", version);
214
231
  }
215
232
  }
233
+ const gitCommitHash = getGitCommitHash();
234
+ const gitBranchName = getGitBranchName();
235
+ const gitTagName = getGitTagName();
236
+ if (gitCommitHash) process.env.GIT_COMMIT_HASH = gitCommitHash;
237
+ if (gitBranchName) process.env.GIT_BRANCH_NAME = gitBranchName;
238
+ if (gitTagName) process.env.GIT_TAG_NAME = gitTagName;
216
239
  const varNames = new Set([
217
240
  "NODE_ENV",
218
241
  "BABEL_ENV",
@@ -228,6 +251,9 @@ const getEnvVars = (files, ifMin, ifCore, ifLocalCore, ifHttps) => {
228
251
  "CORE_URL_PATTERN",
229
252
  "CORE_VERSION",
230
253
  "DISABLE_URL_VERSION_OVERRIDE",
254
+ "GIT_COMMIT_HASH",
255
+ "GIT_BRANCH_NAME",
256
+ "GIT_TAG_NAME",
231
257
  "EPP_API_KEY_DEFAULT",
232
258
  "EPP_API_URL_STAGE",
233
259
  "EPP_API_URL_PROD",
@@ -1,4 +1,4 @@
1
- import { E as logDataTable, b as resolveEslintPluginConfig, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, g as getRelativePaths, h as getPaths, k as logTitle, m as getIfCoreFns, p as extensions, r as getEnvVars, v as resolveApp } from "./env-B20cxmcB.js";
1
+ import { E as logDataTable, b as resolveEslintPluginConfig, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, g as getRelativePaths, h as getPaths, k as logTitle, m as getIfCoreFns, p as extensions, r as getEnvVars, v as resolveApp } from "./env-CSg7BrvF.js";
2
2
  import { createRequire } from "node:module";
3
3
  import { existsSync } from "node:fs";
4
4
  import path from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raisenow/tamaro-cli",
3
- "version": "1.8.0-dev.5",
3
+ "version": "1.8.0-dev.7",
4
4
  "author": {
5
5
  "name": "RaiseNow",
6
6
  "email": "development@raisenow.com"
@@ -30,9 +30,9 @@
30
30
  "@types/prompts": "^2.4.9",
31
31
  "@types/resolve-bin": "^0.4.3",
32
32
  "@types/webpack-config-utils": "^2.3.4",
33
- "autoprefixer": "^10.4.27",
33
+ "autoprefixer": "^10.5.0",
34
34
  "babel-loader": "^10.1.1",
35
- "babel-plugin-istanbul": "^7.0.1",
35
+ "babel-plugin-istanbul": "^8.0.0",
36
36
  "babel-plugin-lodash": "^3.3.4",
37
37
  "chalk": "^5.6.2",
38
38
  "clean-webpack-plugin": "^4.0.0",
@@ -42,9 +42,9 @@
42
42
  "core-js": "^3.49.0",
43
43
  "css-loader": "^7.1.4",
44
44
  "css-minimizer-webpack-plugin": "^8.0.0",
45
- "dotenv": "^17.4.0",
45
+ "dotenv": "^17.4.2",
46
46
  "escape-string-regexp": "^5.0.0",
47
- "eslint-webpack-plugin": "^5.0.3",
47
+ "eslint-webpack-plugin": "^6.0.0",
48
48
  "execa": "^9.6.1",
49
49
  "file-loader": "^6.2.0",
50
50
  "fork-ts-checker-webpack-plugin": "^9.1.0",
@@ -58,7 +58,7 @@
58
58
  "mini-css-extract-plugin": "^2.10.2",
59
59
  "node-notifier": "^10.0.1",
60
60
  "portfinder": "^1.0.38",
61
- "postcss": "^8.5.8",
61
+ "postcss": "^8.5.9",
62
62
  "postcss-import": "^16.1.1",
63
63
  "postcss-loader": "^8.2.1",
64
64
  "postcss-nested": "^7.0.2",
@@ -71,23 +71,23 @@
71
71
  "style-loader": "^4.0.0",
72
72
  "terser-webpack-plugin": "^5.4.0",
73
73
  "tsconfig-paths-webpack-plugin": "^4.2.0",
74
- "tsdown": "^0.21.7",
74
+ "tsdown": "^0.21.8",
75
75
  "typescript": "^6.0.2",
76
76
  "url-loader": "^4.1.1",
77
- "vitest": "^4.1.2",
78
- "webpack": "^5.105.4",
77
+ "vitest": "^4.1.4",
78
+ "webpack": "^5.106.1",
79
79
  "webpack-cli": "^7.0.2",
80
80
  "webpack-config-utils": "^2.3.1",
81
81
  "webpack-dev-server": "^5.2.3",
82
82
  "yaml-loader": "^0.9.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@rnw-npm/eslint-config": "2.0.0-dev.1",
85
+ "@rnw-npm/eslint-config": "^2.0.0",
86
86
  "@rnw-npm/prettier-config": "^1.0.0",
87
- "eslint": "^10.1.0",
87
+ "eslint": "^10.2.0",
88
88
  "husky": "^9.1.7",
89
89
  "lint-staged": "^16.4.0",
90
- "prettier": "^3.8.1"
90
+ "prettier": "^3.8.2"
91
91
  },
92
92
  "prettier": "@rnw-npm/prettier-config",
93
93
  "lint-staged": {