tutuca 0.9.34 → 0.9.35
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 +10 -8
- package/dist/tutuca-cli.js +149 -261
- package/dist/tutuca-dev.js +103 -177
- package/dist/tutuca-dev.min.js +3 -3
- package/dist/tutuca-extra.js +77 -131
- package/dist/tutuca-extra.min.js +3 -3
- package/dist/tutuca.js +77 -131
- package/dist/tutuca.min.js +3 -3
- package/package.json +2 -2
- package/skill/SKILL.md +19 -9
- package/skill/cli.md +12 -10
- package/skill/core.md +69 -34
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ npm install --save-dev tutuca
|
|
|
77
77
|
npm install --save-dev prettier
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
The package exposes `tutuca` via `bin`, so `npx tutuca` (or a global `npm i -g tutuca`) just works. `jsdom` ships as a regular dependency (it's needed by `render
|
|
80
|
+
The package exposes `tutuca` via `bin`, so `npx tutuca` (or a global `npm i -g tutuca`) just works. `jsdom` ships as a regular dependency (it's needed by `render` and `lint`) and is installed automatically.
|
|
81
81
|
|
|
82
82
|
### Commands
|
|
83
83
|
|
|
@@ -94,7 +94,6 @@ tutuca help [command]
|
|
|
94
94
|
| `docs [name]` | Component API docs — all, or one by name |
|
|
95
95
|
| `lint [name]` | Run lint checks — all, or one by name (exit 2 on errors) |
|
|
96
96
|
| `render [name] [--title t] [--view v]` | Render examples to HTML |
|
|
97
|
-
| `doctor` | Lint + render smoke test over the whole module |
|
|
98
97
|
| `install-skill [--user] [--force]` | Install the tutuca Claude Code skill (no module path needed) |
|
|
99
98
|
|
|
100
99
|
Global flags: `-f, --format <cli\|md\|json\|html>`, `-o, --output <file>`, `--pretty`, `-h, --help`.
|
|
@@ -103,10 +102,10 @@ Exit codes:
|
|
|
103
102
|
|
|
104
103
|
- `0` — success
|
|
105
104
|
- `1` — usage error (bad args, missing module, bad module shape)
|
|
106
|
-
- `2` — `lint`
|
|
107
|
-
- `3` — `render`
|
|
105
|
+
- `2` — `lint` reported errors
|
|
106
|
+
- `3` — `render` crashed while rendering
|
|
108
107
|
|
|
109
|
-
All module-consuming commands (`info`, `list`, `examples`, `docs`, `lint`, `render
|
|
108
|
+
All module-consuming commands (`info`, `list`, `examples`, `docs`, `lint`, `render`) follow this table.
|
|
110
109
|
|
|
111
110
|
### Usage examples
|
|
112
111
|
|
|
@@ -126,8 +125,10 @@ npx tutuca ./src/components.js render Button --title "Disabled state"
|
|
|
126
125
|
# Lint just one component (exit 2 if findings)
|
|
127
126
|
npx tutuca ./src/components.js lint Button
|
|
128
127
|
|
|
129
|
-
#
|
|
130
|
-
|
|
128
|
+
# Post-edit verification: lint, then render the example covering the
|
|
129
|
+
# feature you just changed.
|
|
130
|
+
npx tutuca ./src/components.js lint
|
|
131
|
+
npx tutuca ./src/components.js render --title "Disabled state"
|
|
131
132
|
```
|
|
132
133
|
|
|
133
134
|
### Wrapping
|
|
@@ -158,7 +159,8 @@ npx tutuca install-skill --force
|
|
|
158
159
|
```
|
|
159
160
|
|
|
160
161
|
The skill content is generated from `docs/llm/`, so the same reference
|
|
161
|
-
runs locally (`tutuca <module>
|
|
162
|
+
runs locally (`tutuca <module> lint` + `tutuca <module> render --title …`)
|
|
163
|
+
and inside Claude.
|
|
162
164
|
|
|
163
165
|
## License
|
|
164
166
|
|