Gathering detailed insights and metrics for lou-rollup-react-library
Gathering detailed insights and metrics for lou-rollup-react-library
Gathering detailed insights and metrics for lou-rollup-react-library
Gathering detailed insights and metrics for lou-rollup-react-library
npm install lou-rollup-react-library
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
13
5
51
Template and quick-starter to create your own modern React library includes awesome features and bandled using Rollup.
Note: At date of writing this (April 2023), since the create-react-library tool is no longer actively maintained (https://github.com/transitive-bullshit/create-react-library#readme) then I thought about creating this boilerplate to help bootstrap a modern react library with some nice features
This repository created for:
As mentioned in readme of create-react-library there are some others tools(you can use it as a bundler) as an alternative to Rollup like tsup, tsdx, or microbundle.
see also this artice https://transitivebullsh.it/javascript-dev-tools-in-2022#823feddaa1bb4edea19042852b0a5b54
commonjs
and es
module formats1git clone https://github.com/MidoAhmed/rollup-react-library-starter.git 2cd rollup-react-library-starter 3npm install
Storybook gives you an easy way to see and use your components while working on them in your library project, without having to build an unnecessary testing page just to display them.
1npm run storybook # runs the host Storybook application locally for quick and easy testing
Now, anytime you make a change to your library or the stories, the storybook will live-reload your local dev server so you can iterate on your component in real-time.
Rollup watch and build:
for Local development run rollup to watch your src/ module and automatically recompile it into dist/ whenever you make changes.
1npm run dev # runs rollup with watch flag
npm run build
: builds the library to dist
npm run dev
: builds the library, then keeps rebuilding it whenever the source files change.npm test
: tests the library and show the coverage.npm run lint
: runs eslint.npm run storybook
: runs the host Storybook application locally for quick and easy testingnpm run build-storybook
: builds a static HTML/JS bundle that can easily be hosted on a remote server, so all members of your team can try your components.npm run deploy-storybook
: build & deploy the storybook to GitHub Pagespublish to GitHub Packages registry:
1registry=https://registry.npmjs.org/ 2@YOUR_GITHUB_USERNAME:registry=https://npm.pkg.github.com 3//npm.pkg.github.com/:_authToken=YOUR_AUTH_TOKEN
and run:
1npm publish
MIT.
No vulnerabilities found.
No security vulnerabilities found.