Scaffolds a tessera web component in the current Mix project:
mix tessera.gen.component persona-card
mix tessera.gen.component persona-card --module MyApp.Components.PersonaCardWrites:
- the spec module (
lib/..., from--module, default<AppCamel>.Components.<CamelTag>); - the colocated
persona_card.mjstemplate (imports@noizu/tessera-core, exportsregister— replace the body, keep the export, CONTRACT.md §5); - a web-test-runner test skeleton at
test/components/persona_card_test.mjs.
The generated contract module (persona_card.contract.generated.mjs) is
written at the next mix compile. Run mix tessera.install once per host
app to wire @noizu/tessera-core into assets/package.json.