@safronman/booster-ui
v0.1.7
Published
React UI components for Booster lessons.
Readme
@safronman/booster-ui
React UI components for Booster lessons.
Install
pnpm add @safronman/booster-uiThe package expects React, React DOM, and Base UI to be installed in the consuming app:
pnpm add react react-dom @base-ui/reactUsage
Import the package styles once in your app entry point:
import '@safronman/booster-ui/style.css'Use components from the package entry point:
import { Button, RadioGroup, RadioGroupItem } from '@safronman/booster-ui'
export function Example() {
return (
<>
<Button variant="primary">Save</Button>
<RadioGroup defaultValue="first" name="example">
<RadioGroupItem value="first">First</RadioGroupItem>
<RadioGroupItem value="second">Second</RadioGroupItem>
</RadioGroup>
</>
)
}Development
pnpm install
pnpm lint
pnpm build
pnpm storybookBefore publishing, inspect the npm package contents:
pnpm pack --dry-runRelease
Releases are published by GitHub Actions when a git tag like v0.1.0 is pushed.
Add an npm automation token to the repository secrets as NPM_TOKEN before the first release.
Use semver:
patchfor bug fixes, for example0.1.1minorfor backward-compatible components or APIs, for example0.2.0majorfor breaking changes, for example1.0.0
First release:
pnpm lint
pnpm build
git add .
git commit -m "Prepare npm package"
git tag v0.1.0
git push
git push --tagsNext releases:
pnpm lint
pnpm build
npm version patch
git push
git push --tagsUse npm version minor or npm version major when the release type requires it.
The publish workflow verifies that the pushed tag matches package.json, builds the package,
checks package contents with pnpm pack --dry-run, and publishes to npm with provenance.
