Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Create React App template to build and publish NPM libraries with typescript support, and rollup, eslint, stylelint configurations

License

Notifications You must be signed in to change notification settings

morewings/cra-template-npm-library

Repository files navigation

Deprecation notice

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.

NPM library Create React App template

NPM library Create React App template logo

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.

Features

Quickstart

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