ui8kit 1.3.0 → 1.3.8
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 +78 -0
- package/dist/index.js +692 -195
- package/dist/index.js.map +1 -1
- package/package.json +27 -23
package/README.md
CHANGED
|
@@ -35,6 +35,9 @@ Options:
|
|
|
35
35
|
|
|
36
36
|
- `-y, --yes` Skip prompts and use defaults
|
|
37
37
|
- `-r, --registry <type>` Registry type (default: `ui`)
|
|
38
|
+
- `--registry-url <url>` Override registry CDN base URL
|
|
39
|
+
- `--registry-version <version>` Replace `@latest` in default URLs with a pinned version
|
|
40
|
+
- `--strict-cdn` Disable fallback CDN providers when an explicit URL is set
|
|
38
41
|
|
|
39
42
|
When running without `--yes`, `init` now asks for:
|
|
40
43
|
|
|
@@ -74,6 +77,9 @@ Options:
|
|
|
74
77
|
- `--dry-run` Show planned actions without writing files
|
|
75
78
|
- `--retry` Enable retry logic for unstable connections
|
|
76
79
|
- `--no-cache` (root option) bypasses cache for this run.
|
|
80
|
+
- `--registry-url <url>` Override registry CDN base URL
|
|
81
|
+
- `--registry-version <version>` Replace `@latest` in default URLs with a pinned version
|
|
82
|
+
- `--strict-cdn` Disable fallback CDN providers when an explicit URL is set
|
|
77
83
|
|
|
78
84
|
### `list`
|
|
79
85
|
|
|
@@ -90,6 +96,9 @@ Options:
|
|
|
90
96
|
|
|
91
97
|
- `-r, --registry <type>` Registry type (default: `ui`)
|
|
92
98
|
- `--json` Print JSON output instead of table
|
|
99
|
+
- `--registry-url <url>` Override registry CDN base URL
|
|
100
|
+
- `--registry-version <version>` Replace `@latest` in default URLs with a pinned version
|
|
101
|
+
- `--strict-cdn` Disable fallback CDN providers when an explicit URL is set
|
|
93
102
|
|
|
94
103
|
### `diff`
|
|
95
104
|
|
|
@@ -107,6 +116,9 @@ Options:
|
|
|
107
116
|
- `[component]` Optional component name
|
|
108
117
|
- `-r, --registry <type>` Registry type (default: `ui`)
|
|
109
118
|
- `--json` Print diff summary as JSON
|
|
119
|
+
- `--registry-url <url>` Override registry CDN base URL
|
|
120
|
+
- `--registry-version <version>` Replace `@latest` in default URLs with a pinned version
|
|
121
|
+
- `--strict-cdn` Disable fallback CDN providers when an explicit URL is set
|
|
110
122
|
|
|
111
123
|
Examples:
|
|
112
124
|
|
|
@@ -133,11 +145,62 @@ bunx ui8kit@latest --no-cache info
|
|
|
133
145
|
|
|
134
146
|
Use `--no-cache` in any command to skip reading cached registry data.
|
|
135
147
|
|
|
148
|
+
```bash
|
|
149
|
+
bunx ui8kit@latest info --cdn
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Use `--cdn` to print resolved CDN URL order, active cache override, and registry override settings.
|
|
153
|
+
|
|
136
154
|
```bash
|
|
137
155
|
bunx ui8kit@latest --no-cache diff
|
|
138
156
|
bunx ui8kit@latest --no-cache list --json
|
|
139
157
|
```
|
|
140
158
|
|
|
159
|
+
### `registry` (utility)
|
|
160
|
+
|
|
161
|
+
Commands to maintain local CLI artifacts.
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
bunx ui8kit@latest registry clean
|
|
165
|
+
bunx ui8kit@latest registry clean --all --dry-run
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### `reset`
|
|
169
|
+
|
|
170
|
+
Remove local UI8Kit-generated project state for a full clean re-install.
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
bunx ui8kit@latest reset
|
|
174
|
+
bunx ui8kit@latest reset --yes
|
|
175
|
+
bunx ui8kit@latest reset --dry-run
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Options:
|
|
179
|
+
|
|
180
|
+
- `--dry-run` Show what will be removed
|
|
181
|
+
- `-y, --yes` Skip prompts
|
|
182
|
+
- `-f, --force` Skip confirmation prompt
|
|
183
|
+
- `--with-cache` Also clear local cache
|
|
184
|
+
|
|
185
|
+
Reset removes:
|
|
186
|
+
|
|
187
|
+
- `ui8kit.config.json` (project config)
|
|
188
|
+
- `src/registry.json` manifest if present
|
|
189
|
+
- Component install directories (`src/components`, `src/lib`, `src/variants`, `src/layouts`, `src/blocks`)
|
|
190
|
+
- Generated registry artifacts (`packages/registry/...`, `ui8kit.map.json`)
|
|
191
|
+
|
|
192
|
+
### `get-cdn` (diagnostics utility)
|
|
193
|
+
|
|
194
|
+
Check registry availability for each CDN source and compare payload metadata without touching installed project files.
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
npm run get-cdn
|
|
198
|
+
npm run get-cdn -- --url https://raw.githubusercontent.com/buildy-ui/ui/main/packages/@ui8kit/registry/r
|
|
199
|
+
npm run get-cdn -- --path components/variants/index.json --url https://cdn.jsdelivr.net/npm/@ui8kit/registry@latest/r
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Use this before `init`/`add` when you suspect CDN propagation lag, stale `@latest` caches, or provider-specific outages.
|
|
203
|
+
|
|
141
204
|
### `scan`
|
|
142
205
|
|
|
143
206
|
Scan source files and generate a registry manifest.
|
|
@@ -168,6 +231,21 @@ Options:
|
|
|
168
231
|
- `[registry]` Path to registry JSON (default: `./src/registry.json`)
|
|
169
232
|
- `-o, --output <path>` Output directory (default: `./packages/registry/r`)
|
|
170
233
|
|
|
234
|
+
The build command also generates `packages/registry/ui8kit.map.json` when `src/lib/utility-props.map.ts` is available.
|
|
235
|
+
|
|
236
|
+
Generated map shape:
|
|
237
|
+
|
|
238
|
+
```json
|
|
239
|
+
{
|
|
240
|
+
"version": "1.0.0",
|
|
241
|
+
"generatedAt": "2026-03-06T12:00:00.000Z",
|
|
242
|
+
"map": {
|
|
243
|
+
"display": ["block", "flex"],
|
|
244
|
+
"spacing": ["m-2", "m-4"]
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
171
249
|
### Global options
|
|
172
250
|
|
|
173
251
|
These options work for all commands and are defined at the CLI root:
|