0.0.6 • Published 2 years ago
woodreamz-components-library v0.0.6
Getting Started
This is a template for components library. Built with vite (library mode), swc, vitest, eslint (airbnb style), typescript and storybook.
Requirements
- Node >= 16.14
Install
pnpm(installation page)
npm install -g pnpm- Install dependencies:
pnpm install- Storybook
Use storybook to develop your components.
pnpm dev- Sandbox
You can run the sandbox to test your build.
pnpm sandbox- Unit Tests
Each component in the library defines its own unit tests.
The tests may be ran with the following command:
pnpm test- Build
pnpm build- Publish
To publish the package:
pnpm build && pnpm publish ./dist