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
.
This command will start a development server with hot reloading and React Fast Refresh.
This command will build the library for production, but before, it's run the TypeScript type checking.
This command will run the ESLint linter on the code and check for errors.
This command will run the ESLint linter on the code and check for errors, and if there are any, it will fix them.
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 runsyarn run lint
,yarn run build
.size
witch comments const comparation of your library on every pull request.
MIT