@stackonward/cli 1.1.0 → 1.2.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/dist/index.js +194 -32
- package/dist/index.js.map +1 -1
- package/dist/resources/registry.json +9 -3
- package/dist/resources/templates/go-backend/scripts/test-migrations.sh +0 -0
- package/dist/resources/templates/nuxt/.husky/commit-msg +0 -0
- package/dist/resources/templates/nuxt/.husky/pre-commit +0 -0
- package/dist/resources/templates/nuxt/README.md +13 -1
- package/dist/resources/templates/nuxt/package.json +1 -1
- package/package.json +14 -12
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
"name": "@stackonward/analytics-core",
|
|
10
10
|
"description": "Provider-neutral analytics pipeline and browser autocapture",
|
|
11
11
|
"type": "npm",
|
|
12
|
-
"version": "^0.
|
|
12
|
+
"version": "^0.2.0"
|
|
13
13
|
},
|
|
14
14
|
"@stackonward/analytics-nuxt": {
|
|
15
15
|
"name": "@stackonward/analytics-nuxt",
|
|
16
16
|
"description": "Provider-neutral Nuxt analytics lifecycle",
|
|
17
17
|
"type": "npm",
|
|
18
|
-
"version": "^0.1.
|
|
18
|
+
"version": "^0.1.1"
|
|
19
19
|
},
|
|
20
20
|
"@stackonward/cli": {
|
|
21
21
|
"name": "@stackonward/cli",
|
|
22
22
|
"description": "StackOnward project and resource CLI",
|
|
23
23
|
"type": "npm",
|
|
24
|
-
"version": "^1.
|
|
24
|
+
"version": "^1.2.0"
|
|
25
25
|
},
|
|
26
26
|
"@stackonward/cms-client": {
|
|
27
27
|
"name": "@stackonward/cms-client",
|
|
@@ -69,6 +69,12 @@
|
|
|
69
69
|
"name": "@stackonward/google-tag-manager-nuxt",
|
|
70
70
|
"description": "Consent-aware Google Tag Manager analytics integration for Nuxt",
|
|
71
71
|
"type": "npm",
|
|
72
|
+
"version": "^0.2.0"
|
|
73
|
+
},
|
|
74
|
+
"@stackonward/google-tag-manager": {
|
|
75
|
+
"name": "@stackonward/google-tag-manager",
|
|
76
|
+
"description": "Google Tag Manager transport and declarative container generator",
|
|
77
|
+
"type": "npm",
|
|
72
78
|
"version": "^0.1.0"
|
|
73
79
|
},
|
|
74
80
|
"@stackonward/identity-browser": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -16,7 +16,19 @@ Product-specific copy, assets, auth, analytics, CMS providers and business workf
|
|
|
16
16
|
|
|
17
17
|
Set `NUXT_PUBLIC_GTM_ID` to a published GTM container such as `GTM-ABC123`. The integration remains disabled when the ID is empty. The included consent UI restores the product-owned local decision and starts analytics only after acceptance.
|
|
18
18
|
|
|
19
|
-
Global capture defaults and product overrides live under `googleTagManager.analytics` in `nuxt.config.ts`. Products can configure selectors, internal domains, tracked link types, module naming/rules, event names, device breakpoints and privacy-sensitive field capture. Business event names remain typed in product source.
|
|
19
|
+
Global capture defaults and product overrides live under `googleTagManager.analytics` in `nuxt.config.ts`. Products can configure selectors, internal domains, tracked link types, module naming/rules, event names, device breakpoints and privacy-sensitive field capture. Business event names remain typed in product source.
|
|
20
|
+
|
|
21
|
+
Create a product-owned `analytics.google.json` with the GA4 measurement ID and any product event parameters, then generate the GTM import artifact without granting account credentials to the application:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pnpm dlx @stackonward/cli analytics schema --provider google-tag-manager
|
|
25
|
+
pnpm dlx @stackonward/cli analytics generate \
|
|
26
|
+
--provider google-tag-manager \
|
|
27
|
+
--config analytics.google.json \
|
|
28
|
+
--out gtm.container.json
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Import the generated JSON into a selected GTM web-container workspace, preview the merge, and publish the reviewed version. The generated Google Tag disables automatic page views because the Nuxt integration owns SPA page-view dispatch.
|
|
20
32
|
|
|
21
33
|
## Engineering workflow
|
|
22
34
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@stackonward/api-client": "^0.0.2",
|
|
32
|
-
"@stackonward/google-tag-manager-nuxt": "^0.
|
|
32
|
+
"@stackonward/google-tag-manager-nuxt": "^0.2.0",
|
|
33
33
|
"@stackonward/nuxt-layer-base": "^0.0.3",
|
|
34
34
|
"@stackonward/nuxt-site-shell": "^0.1.0"
|
|
35
35
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackonward/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "StackOnward CLI for creating projects and installing reusable components and snippets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "tsup --watch",
|
|
15
|
+
"build": "tsup",
|
|
16
|
+
"prepack": "pnpm build",
|
|
17
|
+
"clean": "rm -rf dist",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"check:package": "node scripts/check-package.mjs"
|
|
21
|
+
},
|
|
13
22
|
"keywords": [
|
|
14
23
|
"cli",
|
|
15
24
|
"stackonward",
|
|
@@ -28,6 +37,8 @@
|
|
|
28
37
|
"directory": "packages/cli"
|
|
29
38
|
},
|
|
30
39
|
"dependencies": {
|
|
40
|
+
"@stackonward/api-client": "workspace:*",
|
|
41
|
+
"@stackonward/google-tag-manager": "workspace:*",
|
|
31
42
|
"commander": "^12.0.0",
|
|
32
43
|
"execa": "^9.0.0",
|
|
33
44
|
"fs-extra": "^11.2.0",
|
|
@@ -35,8 +46,7 @@
|
|
|
35
46
|
"kolorist": "^1.8.0",
|
|
36
47
|
"ora": "^8.0.0",
|
|
37
48
|
"prompts": "^2.4.2",
|
|
38
|
-
"zod": "4"
|
|
39
|
-
"@stackonward/api-client": "0.0.2"
|
|
49
|
+
"zod": "4"
|
|
40
50
|
},
|
|
41
51
|
"devDependencies": {
|
|
42
52
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -47,13 +57,5 @@
|
|
|
47
57
|
},
|
|
48
58
|
"engines": {
|
|
49
59
|
"node": ">=20.0.0"
|
|
50
|
-
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
"dev": "tsup --watch",
|
|
53
|
-
"build": "tsup",
|
|
54
|
-
"clean": "rm -rf dist",
|
|
55
|
-
"typecheck": "tsc --noEmit",
|
|
56
|
-
"test": "vitest run",
|
|
57
|
-
"check:package": "node scripts/check-package.mjs"
|
|
58
60
|
}
|
|
59
|
-
}
|
|
61
|
+
}
|