Create React App is not updated by its maintainers anymore. So this project can't be updated as well. I recommend to use React Library Template which has all the same functionality plus new features.
Create React App (CRA) template to build and publish NPM libraries with rollup, eslint and stylelint configurations.
🎁👌🤓 NEW! Now with Typescript support.
Read full documentation.
Visit Demo Storybook.
- Supports Typescript and Javascript.
- Bundles
commonjs
andes
module formats. - Husky for git hooks.
- Eslint and stylelint.
- Rollup for bundling.
- Jest and react-testing-library for testing.
- Supports CSS modules, SASS/SCSS and PostCSS.
- Storybook for documentation and demo.
- And much more.
npx create-react-app %PROJECT_NAME% --template npm-library
yarn create react-app %PROJECT_NAME% --template npm-library
pnpm create react-app %PROJECT_NAME% --template npm-library
Then
cd %PROJECT_NAME%
npm run prepare
yarn run prepare
pnpm run prepare