GithubHelp home page GithubHelp logo

adamerose / create-react-app-vite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laststance/create-react-app-vite

0.0 1.0 0.0 5.33 MB

Create React App Vite ⚛️

License: MIT License

Shell 3.73% JavaScript 25.63% TypeScript 55.27% CSS 11.70% HTML 3.68%

create-react-app-vite's Introduction

Create React App Vite Typecheck Test Build Lint

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 official Vite react-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!

All npm package are keeping least release version powered by Dependabot.

Installation

npx degit laststance/create-react-app-vite myapp

npm

cd myapp
pnpm install
pnpm validate
pnpm start

If you don't need TailwindCSS, run pnpm remove:tailwind after npm installed.

Commands

pnpm dev             # start development server
pnpm start           # start development server
pnpm validate        # run test,lint,build,typecheck concurrently
pnpm test            # run jest
pnpm lint            # run eslint
pnpm lint:fix        # run eslint with --fix option
pnpm typecheck       # run TypeScript compiler check
pnpm build           # build production bundle to 'dist' directly
pnpm prettier        # run prettier for json|yml|css|md|mdx files
pnpm clean           # remove 'node_modules' 'yarn.lock' 'dist' completely
pnpm serve           # launch server for production bundle in local
pnpm remove:tailwind # remove TailwindCSS

CRA to Vite migration guides

Background

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 Vite Dan Avramov 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.

License

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):


ryota-murakami

💻 📖 ⚠️

Hung Viet Nguyen

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

create-react-app-vite's People

Contributors

allcontributors[bot] avatar dependabot[bot] avatar depfu[bot] avatar github-actions[bot] avatar nvh95 avatar renovate[bot] avatar ryota-murakami avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.