A simple vite react typescript starter template with husky, conventional commit, eslint, stylelint, prettier, sass, tailwindcss, material ui, tanstack routing, redux and saga, vitest and cypress
This template setup will include following features.
◼️ | Feature | Branch Name |
---|---|---|
✅ | Generate Vite + React + Typescript App | feature/1/starter |
✅ | Husky | feature/2/husky |
✅ | Conventional Commit | feature/3/commitlint |
✅ | ESLint Airbnb Config and Plugins | feature/4/eslint |
◼️ | StyleLint | feature/5/stylelint |
◼️ | Prettier format | feature/6/prettier |
◼️ | Lint Staged | feature/7/lint-staged |
◼️ | Sass + Tailwind css | feature/8/tailwindcss |
◼️ | Material UI | feature/9/material-ui |
◼️ | React Router Setup | feature/10/tanstack-router |
◼️ | Redux + Redux Toolkit | feature/11/react-redux |
◼️ | Redux Saga | feature/12/react-saga |
◼️ | Vitest + RTL | feature/13/vitest |
◼️ | Cypress E2E Testing | feature/14/cypress |
# For full template
npx degit R35007/vite-react-typescript#main myapp # main branch
# For starter template
npx degit R35007/vite-react-typescript#feature/1/starter myapp # feature/1/starter branch
npm run start # start development server
npm run dev # start development server
npm run build # build production bundle to 'dist' directly
npm run preview # start production server
# Lints
npm run lint:scripts # check scripts
npm run lint:scripts:fix # fix scripts
npm run lint:ts # check types
npm run lint # check scripts and check types
npm run lint:fix # fix scripts and check types
# Reports
npm run lint:scripts:report # generate eslint reports in reports/eslint.html
npm run lint:report # generate eslint reports
# Utils
npm run validate # check scripts, check types and builds the project
npm run validate:fix # fix scripts, check types and builds the project
npm run prepare # create Husky hooks
npm run clean # removes node_modules package-lock.json .husky dist reports
npm run uninstall:husky # uninstall husky and remove .husky folder
npm run commit # cli prompt for conventional commit
MIT