NPM library Create React App template
Create React App (CRA) template to build and publish NPM libraries with rollup, eslint and stylelint configurations. See full documentation.
Usage
npx create-react-app %PROJECT_NAME% --template npm-library
Or
yarn create react-app %PROJECT_NAME% --template npm-library
Then
cd %PROJECT_NAME%
node ./prepare.js # makes required package.json configuration
yarn start
Features
- Handles all modern JS features.
- Bundles
commonjs
andes
module formats. - Husky for git hooks.
- Eslint and stylelint.
- Rollup for bundling.
- Babel for transpiling.
- Jest and react-testing-library for testing.
- Supports CSS modules, SASS/SCSS, Less and PostCSS.
- Docz for documentation and demo.
- And much more.