Using bun, ts and storybook
To initialize
git clone https://github.com/DavidCks/react-package-boilerplate my-component
cd my-component
rm -rf .git
git init
To install dependencies:
bun install
To build:
bun run build
To run:
bun run storybook
This project was created using bun init
in bun v1.0.11. Bun is a fast all-in-one JavaScript runtime.
This repo is exactly what you get when you follow the steps outlined by the walkthrough provided by codifytools.com: https://www.codifytools.com/blog/react-npm-package This repo saves you 10 minutes tops, so if anything breaks, just follow their tutorial.