@speedkit/cli 3.6.0-beta.1 → 3.6.1

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,4 +1,11 @@
1
- # [3.6.0-beta.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.5.1...v3.6.0-beta.1) (2025-09-02)
1
+ ## [3.6.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.6.0...v3.6.1) (2025-09-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **wizard:** pov promt ([0c8b71f](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/0c8b71ffbddbe71d233cc1618fa72ca25cac5adb))
7
+
8
+ # [3.6.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.5.1...v3.6.0) (2025-09-02)
2
9
 
3
10
 
4
11
  ### Features
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/3.6.0-beta.1 linux-x64 node-v20.19.4
24
+ @speedkit/cli/3.6.1 linux-x64 node-v20.19.5
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -39,6 +39,7 @@ export interface CustomerConfigSettings {
39
39
  withGoogleOptimize?: boolean;
40
40
  activateCfRocketLoaderWorkaround?: boolean;
41
41
  hasSoftNavigations?: boolean;
42
+ isPOV?: boolean;
42
43
  isShopify?: boolean;
43
44
  isShopware?: boolean;
44
45
  isSalesforce?: boolean;
@@ -136,7 +136,7 @@ class CustomerConfigService {
136
136
  return true;
137
137
  }
138
138
  async getConfigSettings() {
139
- let { production, staging, activateScopedDeployments, subRouteScope, includeServiceWorker, activateImageOptimisation, removeLazyLoading, addPreRendering, addUADetection, supportShadowDomInPreRendering, shadowDomCustomElementPrefix, activateRumTracking, useGATracking, useScrapingBee, withGoogleOptimize, activateCfRocketLoaderWorkaround, hasSoftNavigations, isShopify, isShopware, isSalesforce, isOxid, isPlentymarkets, } = {};
139
+ let { production, staging, activateScopedDeployments, subRouteScope, includeServiceWorker, activateImageOptimisation, removeLazyLoading, addPreRendering, addUADetection, supportShadowDomInPreRendering, shadowDomCustomElementPrefix, activateRumTracking, useGATracking, useScrapingBee, withGoogleOptimize, activateCfRocketLoaderWorkaround, hasSoftNavigations, 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,
@@ -204,6 +204,7 @@ class CustomerConfigService {
204
204
  }
205
205
  hasSoftNavigations = await this.cli.confirm("[Tracking] Add tracking for Soft Navigations?", false);
206
206
  // }
207
+ isPOV = await this.cli.confirm("[Tracking] Is a POV (proof of value) anticipated, so that additional tracking is needed?", false);
207
208
  withGoogleOptimize = await this.cli.confirm("[Services] Is Google Optimize used?", false);
208
209
  activateCfRocketLoaderWorkaround = isShopify
209
210
  ? true
@@ -232,6 +233,7 @@ class CustomerConfigService {
232
233
  isSalesforce,
233
234
  isOxid,
234
235
  isPlentymarkets,
236
+ isPOV,
235
237
  };
236
238
  }
237
239
  async logWarnings(configSettings) {
@@ -5,7 +5,11 @@ import { HistoryApiPlugin } from 'rum/HistoryApiPlugin';
5
5
  {{#if useGATracking}}
6
6
  import { GAEcommerceTrackingPlugin } from 'rum/GAEcommerceTrackingPlugin';
7
7
  {{/if}}
8
-
8
+ {{#if isPOV}}
9
+ import { HostTrackingPlugin } from "rum/HostTrackingPlugin";
10
+ import { UserFrictionPlugin } from "rum/UserFrictionPlugin";
11
+ import { ClickPlugin } from "rum/ClickPlugin";
12
+ {{/if}}
9
13
  import { PredictivePreloading } from 'predictive-preloading/predictivePreloading';
10
14
 
11
15
  !function() {
@@ -28,7 +32,25 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
28
32
  window.SpeedKit = window.SpeedKit || {};
29
33
  SpeedKit.rumPlugins = SpeedKit.rumPlugins || [];
30
34
  SpeedKit.rumPlugins.push(
31
- new BaseBundle(),
35
+ new BaseBundle({{#if isPOV}}
36
+ {
37
+ resourceTimingsOptions: {
38
+ rules: [
39
+ // TODO: check if this is the correct endpoint for the main API requests
40
+ {
41
+ // API Requests
42
+ url: ["https://{{production.host}}"],
43
+ initiatorTypes: ["fetch", "xmlhttprequest"],
44
+ },
45
+ // TODO: check if other 3rd party requests need to be added here
46
+ {
47
+ // Critical resources
48
+ onlyTrackRenderBlocking: true,
49
+ },
50
+ ],
51
+ },
52
+ }
53
+ {{/if}}),
32
54
  {{#if hasSoftNavigations}}
33
55
  new HistoryApiPlugin(), // Soft Navigation Tracking using History API
34
56
  {{/if}}
@@ -40,7 +62,11 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
40
62
  {{/if}}
41
63
  }),
42
64
  {{/if}}
43
-
65
+ {{#if isPOV}}
66
+ new HostTrackingPlugin(),
67
+ new UserFrictionPlugin(),
68
+ new ClickPlugin(),
69
+ {{/if}}
44
70
  {
45
71
  key: 'language',
46
72
  type: 'SessionDimension',
@@ -61,7 +61,6 @@ class VirtualOrestesApp {
61
61
  "content-type": `text/html;charset=${responseEncoding}`,
62
62
  }));
63
63
  if (customResponse.success === false) {
64
- console.error("[DOC_HANDLER_RESPONSE]", customResponse);
65
64
  return this.returnErrorResponse(customResponse, customHeaders);
66
65
  }
67
66
  const skResponse = customResponse.data;
@@ -732,5 +732,5 @@
732
732
  ]
733
733
  }
734
734
  },
735
- "version": "3.6.0-beta.1"
735
+ "version": "3.6.1"
736
736
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "3.6.0-beta.1",
4
+ "version": "3.6.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"