⚡ A library starter kit and bundler for your React projects, powered by Rollup.
- React with TypeScript support
- Rollup for bundling (with a customizable bundler config file)
- Babel for transpiling
- Storybook for development and component explorer
- SVGR support
- Uses TailwindCSS 2.0
- Linting before commit support with ESLint, Husky and Lint Staged
- Supports CSS modules configurable with PostCSS
- styled-components support
- react-uuid for component key indexing
- Supports CJS, ESM and UMD formats
- Sourcemap creation
Clone this repo and run the following commands to start development with Storybook.
npm install --production=false
npm run storybook
Go to localhost:6006
and you should see something like this.
To build your project, run npm run build
.
npm publish
This builds commonjs
, esm
, and umd
versions of your module to dist/
and then publishes your module to npm
.
Make sure that any npm modules you want as peer dependencies are properly marked as peerDependencies
in package.json
. The rollup config will automatically recognize them as peers and not try to bundle them in your module.
MIT © Rhaidzsal Ali