@raisenow/tamaro-cli 1.8.0-dev.6 → 1.8.0
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/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/tamaro-cli.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +16 -13
- package/bitbucket-pipelines.yml +1 -1
- package/dist/cli.js +2 -2
- package/dist/{env-B20cxmcB.js → env-CSg7BrvF.js} +27 -1
- package/dist/webpack.config.js +1 -1
- package/package.json +9 -9
|
@@ -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
package/.idea/workspace.xml
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="03cc3f97-55ca-4737-9fe2-779ac8457ab2" name="Changes" comment=""
|
|
4
|
+
<list default="true" id="03cc3f97-55ca-4737-9fe2-779ac8457ab2" name="Changes" comment="">
|
|
5
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
6
|
+
</list>
|
|
5
7
|
<option name="SHOW_DIALOG" value="false" />
|
|
6
8
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
9
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -21,19 +23,19 @@
|
|
|
21
23
|
<option name="showLibraryContents" value="true" />
|
|
22
24
|
<option name="showMembers" value="true" />
|
|
23
25
|
</component>
|
|
24
|
-
<component name="PropertiesComponent"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
<component name="PropertiesComponent">{
|
|
27
|
+
"keyToString": {
|
|
28
|
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
29
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
30
|
+
"WebServerToolWindowFactoryState": "false",
|
|
31
|
+
"node.js.detected.package.eslint": "true",
|
|
32
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
33
|
+
"nodejs_package_manager_path": "pnpm",
|
|
34
|
+
"prettierjs.PrettierConfiguration.Package": "/Users/sigerello/dev/_raisenow/tools/tamaro-cli/node_modules/prettier",
|
|
35
|
+
"ts.external.directory.path": "/Users/sigerello/dev/_raisenow/tools/tamaro-cli/node_modules/typescript/lib",
|
|
36
|
+
"vue.rearranger.settings.migration": "true"
|
|
35
37
|
}
|
|
36
|
-
}
|
|
38
|
+
}</component>
|
|
37
39
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
38
40
|
<component name="TaskManager">
|
|
39
41
|
<task active="true" id="Default" summary="Default task">
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
<option name="presentableId" value="Default" />
|
|
44
46
|
<updated>1775412859839</updated>
|
|
45
47
|
<workItem from="1775412861312" duration="2060000" />
|
|
48
|
+
<workItem from="1776174639969" duration="648000" />
|
|
46
49
|
</task>
|
|
47
50
|
<servers />
|
|
48
51
|
</component>
|
package/bitbucket-pipelines.yml
CHANGED
|
@@ -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-
|
|
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
|
|
792
|
+
var version = "1.8.0";
|
|
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.
|
|
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",
|
package/dist/webpack.config.js
CHANGED
|
@@ -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-
|
|
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
|
|
3
|
+
"version": "1.8.0",
|
|
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.
|
|
33
|
+
"autoprefixer": "^10.5.0",
|
|
34
34
|
"babel-loader": "^10.1.1",
|
|
35
|
-
"babel-plugin-istanbul": "^
|
|
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,7 +42,7 @@
|
|
|
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.
|
|
45
|
+
"dotenv": "^17.4.2",
|
|
46
46
|
"escape-string-regexp": "^5.0.0",
|
|
47
47
|
"eslint-webpack-plugin": "^6.0.0",
|
|
48
48
|
"execa": "^9.6.1",
|
|
@@ -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.
|
|
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,11 +71,11 @@
|
|
|
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.
|
|
74
|
+
"tsdown": "^0.21.8",
|
|
75
75
|
"typescript": "^6.0.2",
|
|
76
76
|
"url-loader": "^4.1.1",
|
|
77
|
-
"vitest": "^4.1.
|
|
78
|
-
"webpack": "^5.
|
|
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",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"eslint": "^10.2.0",
|
|
88
88
|
"husky": "^9.1.7",
|
|
89
89
|
"lint-staged": "^16.4.0",
|
|
90
|
-
"prettier": "^3.8.
|
|
90
|
+
"prettier": "^3.8.2"
|
|
91
91
|
},
|
|
92
92
|
"prettier": "@rnw-npm/prettier-config",
|
|
93
93
|
"lint-staged": {
|