A template to create a React Library. Zero configuration, just use!
MIT License
A simple React lib template based on Parcel and Jest.
use this template for your next React lib, modify it and run npm run dev
to see it in action.
This library has some built-in commands, like: dev
, build
, lint
and format
.
dev
This command will start a development server with hot reloading and React Fast Refresh.
build
This command will build the library for production, but before, it's run the TypeScript type checking.
lint
This command will run the ESLint linter on the code and check for errors.
lint:fix
This command will run the ESLint linter on the code and check for errors, and if there are any, it will fix them.
format
This command will run the prettier formatter on the code and check for errors.
Parcel is configured to export a CJS and ESModule. See more on Parcel's documentation.
CI
with installs deps and runs yarn run lint
, yarn run build
.size
witch comments const comparation of your library on every pull request.MIT