tutuca 0.9.47 → 0.9.49
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/dist/tutuca-cli.js +218 -109
- package/dist/tutuca-dev.js +270 -162
- package/dist/tutuca-dev.min.js +3 -3
- package/dist/tutuca-extra.js +4 -3
- package/dist/tutuca-extra.min.js +2 -2
- package/dist/tutuca.js +4 -3
- package/dist/tutuca.min.js +2 -2
- package/package.json +1 -1
- package/skill/tutuca/core.md +15 -0
package/package.json
CHANGED
package/skill/tutuca/core.md
CHANGED
|
@@ -56,6 +56,11 @@ edit done:
|
|
|
56
56
|
|
|
57
57
|
Full reference: [cli.md](./cli.md).
|
|
58
58
|
|
|
59
|
+
The Tutuca CLI only catches Tutuca-specific issues. For generic JS
|
|
60
|
+
problems, pair it with a general linter/formatter — e.g. set up Biome
|
|
61
|
+
once with `npx -y @biomejs/biome init` and use its `lint`, `check`,
|
|
62
|
+
and `format` subcommands. Run `npx @biomejs/biome -h` for usage help.
|
|
63
|
+
|
|
59
64
|
## Common pitfalls
|
|
60
65
|
|
|
61
66
|
- **Paths are not allowed in values.** `.foo` resolves a single field or
|
|
@@ -170,6 +175,16 @@ separate.
|
|
|
170
175
|
|
|
171
176
|
## Notation Reference
|
|
172
177
|
|
|
178
|
+
Views are name-based: there is no conditional / boolean / arithmetic
|
|
179
|
+
expression syntax in values, and no Vue- or Mustache-style `{{ … }}`
|
|
180
|
+
placeholders. Every value slot — conditions (`@show`, `@if`, `@when`),
|
|
181
|
+
iteration (`@each`, `render-each`), enrichment (`@enrich-with`,
|
|
182
|
+
`@loop-with`), template expansion (`{…}`, `:attr`, `@text`) — names a
|
|
183
|
+
field, method, macro, or handler defined on the component (or
|
|
184
|
+
registered with the app). Logic lives in `methods` / `alter` / `input`
|
|
185
|
+
/ `bubble` / `receive` / `response` and is referenced by name; the
|
|
186
|
+
template itself only routes data and events.
|
|
187
|
+
|
|
173
188
|
| Prefix | Means | Example |
|
|
174
189
|
| -------- | ----------------------------------------- | --------------------- |
|
|
175
190
|
| `.x` | field or method on `this` (single-level — no `.foo.bar` paths) | `.count`, `.inc` |
|