@uxf/scripts 11.124.0 → 11.125.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/README.md +33 -33
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,20 +19,20 @@ Most binaries are already available in the UXF Docker images, so CI jobs can cal
|
|
|
19
19
|
yarn add -D @uxf/scripts
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Requires **Node.js >= 24** (`engines.node`). No peer dependencies. Runtime dependencies (`
|
|
22
|
+
Requires **Node.js >= 24** (`engines.node`). No peer dependencies. Runtime dependencies (`cheerio`, `dayjs`, `fast-glob`, `got`, `rev-dep`, `robots-txt-parser`, `semver`, `yaml`, `yargs`) are bundled.
|
|
23
23
|
|
|
24
24
|
## Commands
|
|
25
25
|
|
|
26
|
-
| Command
|
|
27
|
-
|
|
|
28
|
-
| `uxf-release`
|
|
29
|
-
| `uxf-push-notifier`
|
|
30
|
-
| `uxf-dependencies-check`
|
|
31
|
-
| `uxf-audit`
|
|
32
|
-
| `uxf-claude-sync`
|
|
33
|
-
| `uxf-i18n-namespaces-gen` | Generate an `i18n-pages.json` mapping routes to the translation namespaces they use.
|
|
34
|
-
| `uxf-sitemap-check`
|
|
35
|
-
| `uxf-sitemap-meta-export` | Crawl a sitemap and export page meta tags (title, description, OG) to `export.csv`.
|
|
26
|
+
| Command | Purpose |
|
|
27
|
+
| ------------------------- | ------------------------------------------------------------------------------------------------- |
|
|
28
|
+
| `uxf-release` | Generate release notes from Git commits, create a GitLab release, notify Slack / Google Chat. |
|
|
29
|
+
| `uxf-push-notifier` | Notify Google Chat when a merge request is merged into (or code is pushed to) the default branch. |
|
|
30
|
+
| `uxf-dependencies-check` | Detect version conflicts and missing/mismatched peer deps across `@uxf/*` packages. |
|
|
31
|
+
| `uxf-audit` | Print a JSON report of Node / Yarn / Next / React and installed `@uxf/*` versions. |
|
|
32
|
+
| `uxf-claude-sync` | Download global guidelines from a URL into a `CLAUDE.md` file. |
|
|
33
|
+
| `uxf-i18n-namespaces-gen` | Generate an `i18n-pages.json` mapping routes to the translation namespaces they use. |
|
|
34
|
+
| `uxf-sitemap-check` | Crawl a sitemap and check all URLs for HTTP errors, duplicates, and missing pages. |
|
|
35
|
+
| `uxf-sitemap-meta-export` | Crawl a sitemap and export page meta tags (title, description, OG) to `export.csv`. |
|
|
36
36
|
|
|
37
37
|
Every command accepts `-h` / `--help`.
|
|
38
38
|
|
|
@@ -70,16 +70,16 @@ Set `GITLAB_TOKEN` in the GitLab CI/CD variables, then:
|
|
|
70
70
|
```yaml
|
|
71
71
|
# .gitlab-ci.yml
|
|
72
72
|
stages:
|
|
73
|
-
|
|
73
|
+
- release
|
|
74
74
|
|
|
75
75
|
release:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
image: node:24
|
|
77
|
+
stage: release
|
|
78
|
+
before_script:
|
|
79
|
+
- yarn global add @uxf/scripts
|
|
80
|
+
script:
|
|
81
|
+
# ... deploy project ...
|
|
82
|
+
- uxf-release
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
### uxf-push-notifier
|
|
@@ -100,17 +100,17 @@ Options:
|
|
|
100
100
|
|
|
101
101
|
```yaml
|
|
102
102
|
stages:
|
|
103
|
-
|
|
103
|
+
- notify
|
|
104
104
|
|
|
105
105
|
notify-push:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
106
|
+
image: node:24
|
|
107
|
+
stage: notify
|
|
108
|
+
except: [schedules]
|
|
109
|
+
only:
|
|
110
|
+
- develop # default branch
|
|
111
|
+
script:
|
|
112
|
+
- yarn global add @uxf/scripts # already present in UXF Docker images
|
|
113
|
+
- uxf-push-notifier --google-chat-webhook-url=$GOOGLE_CHAT_WEBHOOK
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
### uxf-dependencies-check
|
|
@@ -159,10 +159,10 @@ For genuine declarer conflicts that you've consciously accepted — e.g. two `@u
|
|
|
159
159
|
|
|
160
160
|
```json
|
|
161
161
|
{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
"name": "@uxf/wysiwyg",
|
|
163
|
+
"uxf": {
|
|
164
|
+
"ignoredConflicts": ["some-shared-dep"]
|
|
165
|
+
}
|
|
166
166
|
}
|
|
167
167
|
```
|
|
168
168
|
|
|
@@ -171,7 +171,7 @@ Ignored conflicts are still printed as informational output but do **not** cause
|
|
|
171
171
|
#### What it checks
|
|
172
172
|
|
|
173
173
|
- Parses the lock file (`yarn.lock` / `package-lock.json` / `pnpm-lock.yaml` / `bun.lock`) to find dependencies with multiple installed versions.
|
|
174
|
-
- For each candidate, resolves the version actually seen by each
|
|
174
|
+
- For each candidate, resolves the version actually seen by each _declarer_ (the project itself and any `@uxf/*` package that directly declares the dep). A conflict is reported only when these declarers land on different versions — transitive-only duplicates from unrelated third-party packages are filtered out.
|
|
175
175
|
- Scans all `@uxf/*` packages in your `dependencies` / `devDependencies`.
|
|
176
176
|
- Reads each package's `peerDependencies` from `node_modules`.
|
|
177
177
|
- Skips `@uxf/*`, `react`, `react-dom`, and `next` (you manage these yourself).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/scripts",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.125.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"@types/react-dom": "18.3.7",
|
|
47
47
|
"@types/semver": "^7.7.1",
|
|
48
48
|
"@uxf/core": "11.124.0",
|
|
49
|
-
"@uxf/ui": "11.
|
|
49
|
+
"@uxf/ui": "11.125.0"
|
|
50
50
|
}
|
|
51
51
|
}
|