Repository navigation
create-bht-component-registry@0.4.0
·
12 commits
to main
since this release
Minor Changes
- 55711bd: Template: compositions are now examples. A component's live examples live in
<name>.example.tsx(the generators write that), the site's tab and route are Examples (/examples), and the guide, seeds and tooling use the word throughout. The old*.composition.tsxname is still read, with a build-time warning naming the file, so a registry can take this update first and rename at leisure; template 0.5 stops reading it. - 9ef1ae5: Template: a scope can name the class prefix its components use.
registry/<scope>/scope.jsontakes"classPrefix": "BHT"andpnpm gen componentputs it on every new component's root class (BHT__Button,.BHT__Button { &__label {} }). Without it the prefix is the scope in CONSTANT_CASE, as before, so existing registries are unaffected. Set it before a scope's first component so the whole scope shares one prefix.