tutuca 0.9.17 → 0.9.18
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 -7
- package/dist/tutuca-cli.js +41 -677
- package/dist/tutuca-dev.js +31 -12
- package/dist/tutuca-dev.min.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -74,13 +74,12 @@ npm install --save-dev tutuca jsdom
|
|
|
74
74
|
npm install --save-dev prettier
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
The package exposes `tutuca` via `bin`, so `npx tutuca` (or a global `npm i -g tutuca jsdom`) just works. `jsdom` is a peer dep because it's only needed for `render`, `lint`,
|
|
77
|
+
The package exposes `tutuca` via `bin`, so `npx tutuca` (or a global `npm i -g tutuca jsdom`) just works. `jsdom` is a peer dep because it's only needed for `render`, `lint`, and `doctor`.
|
|
78
78
|
|
|
79
79
|
### Commands
|
|
80
80
|
|
|
81
81
|
```
|
|
82
82
|
tutuca <module-path> <command> [args] [flags]
|
|
83
|
-
tutuca stresstest [--iterations N] [--seed S]
|
|
84
83
|
tutuca help [command]
|
|
85
84
|
```
|
|
86
85
|
|
|
@@ -93,9 +92,8 @@ tutuca help [command]
|
|
|
93
92
|
| `lint [name]` | Run lint checks — all, or one by name (exit 2 on errors) |
|
|
94
93
|
| `render [name] [--title t] [--view v]` | Render examples to HTML |
|
|
95
94
|
| `doctor` | Lint + render smoke test over the whole module |
|
|
96
|
-
| `stresstest` | VDOM fuzz test, no module required |
|
|
97
95
|
|
|
98
|
-
Global flags: `-f, --format <cli\|md\|json\|html>`, `-o, --output <file>`, `--pretty`,
|
|
96
|
+
Global flags: `-f, --format <cli\|md\|json\|html>`, `-o, --output <file>`, `--pretty`, `-h, --help`.
|
|
99
97
|
Exit codes: `0` ok, `1` usage, `2` lint errors, `3` render crash.
|
|
100
98
|
|
|
101
99
|
### Usage examples
|
|
@@ -118,9 +116,6 @@ npx tutuca ./src/components.js lint Button
|
|
|
118
116
|
|
|
119
117
|
# CI smoke test — lints and renders everything
|
|
120
118
|
npx tutuca ./src/components.js doctor
|
|
121
|
-
|
|
122
|
-
# Fuzz the VDOM engine
|
|
123
|
-
npx tutuca stresstest --iterations 10000 --seed 42
|
|
124
119
|
```
|
|
125
120
|
|
|
126
121
|
### Wrapping
|