uniweb 0.7.9 → 0.8.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 +2 -1
- package/package.json +3 -3
- package/partials/agents-md.hbs +13 -8
- package/src/index.js +0 -1
package/README.md
CHANGED
|
@@ -250,12 +250,13 @@ npx uniweb add site main --from marketing --foundation marketing
|
|
|
250
250
|
|
|
251
251
|
The workspace grows organically. `add` handles placement, wires dependencies, updates workspace globs, and generates root scripts. Use `--path` to override default placement, or `--project` for co-located layouts (e.g., `marketing/foundation/` + `marketing/site/`).
|
|
252
252
|
|
|
253
|
+
> `npx uniweb` works before and after install. Once dependencies are installed, you can also use `pnpm uniweb` directly since `uniweb` is a project dependency.
|
|
254
|
+
|
|
253
255
|
**Or start blank and build up:**
|
|
254
256
|
|
|
255
257
|
```bash
|
|
256
258
|
pnpm create uniweb acme --template blank
|
|
257
259
|
cd acme
|
|
258
|
-
pnpm install
|
|
259
260
|
npx uniweb add foundation
|
|
260
261
|
npx uniweb add site
|
|
261
262
|
pnpm install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"js-yaml": "^4.1.0",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
|
-
"@uniweb/
|
|
45
|
-
"@uniweb/build": "0.7.5",
|
|
44
|
+
"@uniweb/build": "0.8.0",
|
|
46
45
|
"@uniweb/core": "0.5.1",
|
|
46
|
+
"@uniweb/kit": "0.7.0",
|
|
47
47
|
"@uniweb/runtime": "0.6.1"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/partials/agents-md.hbs
CHANGED
|
@@ -200,14 +200,19 @@ CCA separates theme from code. Components use **semantic CSS tokens** instead of
|
|
|
200
200
|
|-------|---------|
|
|
201
201
|
| `text-heading` | Headings |
|
|
202
202
|
| `text-body` | Body text |
|
|
203
|
-
| `text-
|
|
204
|
-
| `bg-
|
|
205
|
-
| `bg-
|
|
206
|
-
| `
|
|
207
|
-
| `border-
|
|
203
|
+
| `text-subtle` | Secondary/de-emphasized text |
|
|
204
|
+
| `bg-section` | Section background |
|
|
205
|
+
| `bg-card` | Card/panel background |
|
|
206
|
+
| `bg-muted` | Hover states, zebra rows |
|
|
207
|
+
| `border-border` | Borders |
|
|
208
208
|
| `text-link` | Link color |
|
|
209
|
-
| `
|
|
210
|
-
| `
|
|
209
|
+
| `bg-primary` | Primary action background |
|
|
210
|
+
| `text-primary-foreground` | Text on primary background |
|
|
211
|
+
| `bg-secondary` | Secondary action background |
|
|
212
|
+
| `text-success` / `bg-success-subtle` | Status: success |
|
|
213
|
+
| `text-error` / `bg-error-subtle` | Status: error |
|
|
214
|
+
| `text-warning` / `bg-warning-subtle` | Status: warning |
|
|
215
|
+
| `text-info` / `bg-info-subtle` | Status: info |
|
|
211
216
|
|
|
212
217
|
**Content authors control context** in frontmatter:
|
|
213
218
|
|
|
@@ -376,7 +381,7 @@ When given a monolithic React file (AI-generated or hand-built), don't port line
|
|
|
376
381
|
|
|
377
382
|
1. **Name by purpose** — `Institutions` → `Testimonial`, `WorkModes` → `FeatureColumns`. Components render a *kind* of content, not specific content.
|
|
378
383
|
2. **Separate content from code** — Hardcoded strings → markdown. Layout/styling stays in JSX. Content authors edit words without touching code.
|
|
379
|
-
3. **Use semantic tokens** — Replace `text-slate-900` with `text-heading`, `bg-white` with `bg-
|
|
384
|
+
3. **Use semantic tokens** — Replace `text-slate-900` with `text-heading`, `bg-white` with `bg-section`. Component works in any context and any brand.
|
|
380
385
|
4. **UI components → `components/`** — Buttons, badges, cards go in `src/components/` (no `meta.js` needed).
|
|
381
386
|
|
|
382
387
|
You don't have to convert everything at once. Each section is independent — one can use hardcoded content while another reads from markdown.
|
package/src/index.js
CHANGED
|
@@ -501,7 +501,6 @@ async function main() {
|
|
|
501
501
|
if (templateType === 'blank') {
|
|
502
502
|
log(`Next steps:\n`)
|
|
503
503
|
log(` ${colors.cyan}cd ${projectName}${colors.reset}`)
|
|
504
|
-
log(` ${colors.cyan}${installCmd(pm)}${colors.reset}`)
|
|
505
504
|
log(` ${colors.cyan}npx uniweb add foundation${colors.reset}`)
|
|
506
505
|
log(` ${colors.cyan}npx uniweb add site${colors.reset}`)
|
|
507
506
|
log(` ${colors.cyan}${installCmd(pm)}${colors.reset}`)
|