Create a new react library project with Vite, React JS, TypeScript, Eslint, Prettier in just 1 second and you don't need to setup anything.
Netlify Deploy: https://typescript-react-library-template.netlify.app/
- ⚛️ React 17
- 📚 Jest - Test framework
- ⏩ Vite - Run and build the project blazingly fast!
- 📐 ESLint & Prettier - Formatting and Linting
- 🌟 Typescript
- 🐶 Husky & Lint Staged - Pre-commit Hooks
- ⏰ Release Please — Generate the changelog with the release-please workflow
- 👷 Github Actions — Releasing versions to NPM
- Clone Template
git clone https://github.com/kothing/vite-typescript-react-library-template.git
- Install Packages
yarn install
- Start Project
yarn dev
- If you using git, delete the existing folder .git after cloning (open git bashor other terminal)
rm -rf .git
The starter contains the following scripts:
- dev- starts dev server
- build- generates the following bundles: CommonJS (- .cjs) ES (- .es) UMD (- .umd.js) and IIFE (- .iife.js). The name of bundle is automatically taked from- package.jsonname property
- eslint- lint- .js,- .jsx,- .ts,- .tsxfiles with eslint
- prettier- format- .js,- .ts,- .htmland- .jsonfiles with prettier
- stylelint- format- .css- lessand- .scssfiles with stylelint
- prepare- script for setting up husky pre-commit hook
Licensed under the MIT License.