@speedkit/cli 3.22.0 → 3.24.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 +15 -0
- package/README.md +1 -1
- package/dist/services/customer-config/customer-config-service.js +1 -8
- package/dist/services/customer-config/templates/config_documentHandler.js.hbs +4 -6
- package/dist/services/customer-config/templates/config_loadHandler.js.hbs +5 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [3.24.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.23.0...v3.24.0) (2026-02-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **wizzard:** remove question for scoped deployments ([96f5f27](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/96f5f279d279d65e4d309dec193958965fe95b7f))
|
|
7
|
+
|
|
8
|
+
# [3.23.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.22.0...v3.23.0) (2026-01-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **customer-config:** add a timeout to wait for potential click listeners to be completed ([36aba47](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/36aba475854d8a873a31a464c5e0e68302d2cdd9))
|
|
14
|
+
* **customer-config:** include comment about hard navigation execution ([f0fdac6](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/f0fdac631a90e818e6ed4ce3d9b3c8482df3f3aa))
|
|
15
|
+
|
|
1
16
|
# [3.22.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.21.0...v3.22.0) (2026-01-30)
|
|
2
17
|
|
|
3
18
|
|
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ class CustomerConfigService {
|
|
|
136
136
|
return true;
|
|
137
137
|
}
|
|
138
138
|
async getConfigSettings() {
|
|
139
|
-
let { production, staging,
|
|
139
|
+
let { production, staging, includeServiceWorker, activateImageOptimisation, removeLazyLoading, addSSR, addSSRInnerShadowDomSupport, addDeviceDetection, useGATracking, useScrapingBee, withGoogleOptimize, activateCfRocketLoaderPlugin, hasSoftNavigations, convertSoftToHardNavigations, isShopify, isShopware, isSalesforce, isOxid, isPlentymarkets, isPOV, } = {};
|
|
140
140
|
this.appName = await this.cli.prompt(`[App Name] Enter desired SK app name:`, {
|
|
141
141
|
validator: (input) => /^[\da-z]+(?:-[\da-z]+)*$/.test(input) ? "" : "No valid kebab-case",
|
|
142
142
|
defaultAnswer: this.appName,
|
|
@@ -173,11 +173,6 @@ class CustomerConfigService {
|
|
|
173
173
|
staging = await this.getEnvironmentConfig(customer_config_service_model_1.EnvironmentType.STAGING, production.host.replace("www", "staging"));
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
activateScopedDeployments = await this.cli.confirm("[Scoping] Is the shop using (locale-based) sub-resources, like e.g. /de-de/main.js, on the basis of which scoped deployments should to be activated to prevent local-based changes from triggering a global deployment job?", false);
|
|
177
|
-
if (activateScopedDeployments &&
|
|
178
|
-
(await this.cli.confirm("[Scoping] Should SK only be active on specific sub-routes? (e.g. /de-de)", false))) {
|
|
179
|
-
subRouteScope = await this.cli.prompt("[Scoping] Enter one exemplary sub-route to scope SK to (without leading/trailing slashes):", { defaultAnswer: "de-de" });
|
|
180
|
-
}
|
|
181
176
|
if (await this.cli.confirm("[Service Worker] Is there a Service Worker which needs to be included?", false)) {
|
|
182
177
|
includeServiceWorker = await this.cli.prompt("[Service Worker] Enter path of Service Worker to be included:", { defaultAnswer: "/sw.js" });
|
|
183
178
|
}
|
|
@@ -208,8 +203,6 @@ class CustomerConfigService {
|
|
|
208
203
|
appName: this.appName,
|
|
209
204
|
production,
|
|
210
205
|
staging,
|
|
211
|
-
activateScopedDeployments,
|
|
212
|
-
subRouteScope,
|
|
213
206
|
includeServiceWorker,
|
|
214
207
|
activateImageOptimisation,
|
|
215
208
|
removeLazyLoading,
|
|
@@ -127,13 +127,11 @@ const config = {
|
|
|
127
127
|
{{else}}
|
|
128
128
|
delayScriptPath: "/speed-kit-dom-ready.js",
|
|
129
129
|
{{/if}}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
{{else}}
|
|
130
|
+
/**
|
|
131
|
+
* @todo check for assets loaded via scoped-subroutes
|
|
132
|
+
* enable scoped deployments like this executeDeploymentDetection: {scope: true} when found
|
|
133
|
+
**/
|
|
135
134
|
executeDeploymentDetection: true,
|
|
136
|
-
{{/if}}
|
|
137
135
|
{{#if removeLazyLoading}}
|
|
138
136
|
lazyLoadList,
|
|
139
137
|
{{/if}}
|
|
@@ -449,9 +449,12 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
449
449
|
|
|
450
450
|
// Prevent soft navigation
|
|
451
451
|
event.preventDefault();
|
|
452
|
+
setTimeout(() => {
|
|
453
|
+
// let potential click listener be completed
|
|
452
454
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
+
//Execute hard navigation instead
|
|
456
|
+
location.href = target.href;
|
|
457
|
+
});
|
|
455
458
|
}
|
|
456
459
|
window.addEventListener("click", speedKitClickEventListener, true);
|
|
457
460
|
}
|
package/oclif.manifest.json
CHANGED