0.0.7 • Published 8 months ago
@purekit-ui/cli v0.0.7
@purekit-ui/cli
A simple command-line tool to scaffold example components that wrap the
@purekit-ui/react library.
Usage
npx purekit-gen add <ComponentName>A new folder will be created under src/components/purekit-ui if the current
project has a src directory. Otherwise the folder will be placed in
components/purekit-ui.
The generator reads template files in packages/cli/src/templates. Each
template includes a component file and a props file written in plain
JavaScript. Templates are copied directly without any placeholder
substitution. Templates are now provided for every component in the
@purekit-ui/react library, following the same structure as the button
example where default props are defined in props.js.