@speedkit/cli 2.25.0 → 2.26.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [2.26.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.25.0...v2.26.0) (2024-04-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customer-config:** improve deployment detection ([86bc831](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/86bc831683d1fb6dcdae5937f212668f6b4b981e))
|
|
7
|
+
* **customer-config:** improve deployment detection ([b7b8c38](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/b7b8c38ca7b84af7da527faabe1e801453ef73f2))
|
|
8
|
+
|
|
1
9
|
# [2.25.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.24.0...v2.25.0) (2024-04-17)
|
|
2
10
|
|
|
3
11
|
|
package/README.md
CHANGED
|
@@ -7,10 +7,51 @@ const minutesToMilliseconds = (minutes) => {
|
|
|
7
7
|
return minutes * 60000;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
const LOCALES_BY_LAYOUT = [
|
|
11
|
+
// TODO: adjust/replace this exemplary list
|
|
12
|
+
ExampleLayoutA: ["de_DE", "en_DE"],
|
|
13
|
+
ExampleLayoutB: ["en_US"],
|
|
14
|
+
];
|
|
15
|
+
const ASSET_SUB_PATHS = [
|
|
16
|
+
// These assets are expected to be found via the following base URL:
|
|
17
|
+
// https://<ORIGIN>/on/demandware.static/Sites-<LAYOUT>-Site/-/<LOCALE>/v<VERSION>/...
|
|
18
|
+
|
|
19
|
+
// TODO: adjust/replace this exemplary list
|
|
20
|
+
|
|
21
|
+
// JS:
|
|
22
|
+
"js/main.js",
|
|
23
|
+
"internal/jscript/dwanalytics-(.*).js",
|
|
24
|
+
|
|
25
|
+
// CSS:
|
|
26
|
+
"css/style.css",
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
function getAssetList() {
|
|
30
|
+
return Object.entries(LOCALES_BY_LAYOUT).flatMap(([layout, locales]) =>
|
|
31
|
+
locales.flatMap((locale) =>
|
|
32
|
+
ASSET_SUB_PATHS.map(
|
|
33
|
+
(subPath) =>
|
|
34
|
+
{{#if staging.host}}
|
|
35
|
+
`^https://(?:{{production.host}}|{{staging.host}})/on/demandware.static/Sites-${layout}-Site/-/${locale}/v(\\d{13})/${subPath}`,
|
|
36
|
+
{{else}}
|
|
37
|
+
`^https://{{production.host}}/on/demandware.static/Sites-${layout}-Site/-/${locale}/v(\\d{13})/${subPath}`,
|
|
38
|
+
{{/if}}
|
|
39
|
+
),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
10
43
|
const deploymentConfig = {
|
|
11
44
|
slack: "<1Password deployment token>",
|
|
12
45
|
origins: [
|
|
46
|
+
// Production:
|
|
13
47
|
"https://{{production.host}}",
|
|
48
|
+
{{#if staging.host}}
|
|
49
|
+
|
|
50
|
+
// Staging:
|
|
51
|
+
"https://{{staging.host}}",
|
|
52
|
+
{{/if}}
|
|
53
|
+
|
|
54
|
+
// TODO: also check for other origins like e.g. https://*.my.salesforce.com
|
|
14
55
|
],
|
|
15
56
|
jobType: "deployment", // "instant" | "deployment"
|
|
16
57
|
|
|
@@ -24,9 +65,9 @@ const deploymentConfig = {
|
|
|
24
65
|
compareContentHashes: true,
|
|
25
66
|
|
|
26
67
|
assetList: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
68
|
+
...getAssetList(),
|
|
69
|
+
|
|
70
|
+
// TODO: add additional non-demandware asset urls as needed
|
|
30
71
|
],
|
|
31
72
|
}
|
|
32
73
|
|
package/oclif.manifest.json
CHANGED