Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork31
laststance/create-react-app-vite
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Simple CRA style Vite teimpate.
Create plain and lightweight React+TS programming environment.
And a easy migration base for create-react-app to Vite.
This is a Vite template top of the officialVitereact-ts template(npm init vite@latest myapp -- --template react-ts) and some extended setup.
I'd like to keep CRA like experience as much as possible, So improving/adding feature Rull Request is really welcome!
- Support CRA'sCustom Environment Variables like
REACT_APP_. - eslint-config-ts-prefixer. Specialized fixable(
--fixoption) rule sets. Zero extend any recommended for confortable DX. - Vitest,React Testing Library,MSW
- tailwindcss
- Github Actions
All npm package are keeping least release version powered byDependabot.
npx tiged laststance/create-react-app-vite myappcd myapppnpm installpnpm validatepnpm startIf you don't need TailwindCSS, runpnpm remove:tailwind after npm installed.
pnpm dev# start development serverpnpm start# start development serverpnpm validate# run test,lint,build,typecheck concurrentlypnpmtest# run jestpnpm lint# run eslintpnpm lint:fix# run eslint with --fix optionpnpm typecheck# run TypeScript compiler checkpnpm build# build production bundle to 'dist' directlypnpm prettier# run prettier for json|yml|css|md|mdx filespnpm clean# remove 'node_modules' 'yarn.lock' 'dist' completelypnpm serve# launch server for production bundle in localpnpm remove:tailwind# remove TailwindCSS
- Migrate to Vite from Create React App (CRA)
- Migrating from Create React App (CRA) to Vite
- Migrating a Create React App (CRA) application to Vite
Simply put, CRA development has stopped as of 2023.This has sparked a discussion about replacing CRA with Vite for official documentation recommendations.Replace Create React App recommendation with ViteDan Abramov offered some plans for the future of the CRA in his comments, but no direct answers were given.reactjs/react.dev#5487 (comment)
The React community is still buzzing around Server Component after May 2023, but there is still a high demand for the React SinglePageAplication starter that the CRA has served in the past, and I was one of the people who needed it, I was one of the people who needed it, so I decided to create a template in Vite that could be used as much as possible like CRA.
MIT
Thanks goes to these wonderful people (emoji key):
ryota-murakami 💻📖 | Hung Viet Nguyen 💻 | Shay Cojocaru 📖 | NateAGeek 🐛 |
This project follows theall-contributors specification. Contributions of any kind welcome!
About
Create React App Vite ⚛️
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.