Skip to content

Steve-Reid/vite-vitest-starter-app

Repository files navigation

React Vite/Vitest Starter

A React TypeScript starter project

Tech Stack

Usage

Inside the project directory run using npm or yarn:

Run

yarn dev
# or
npm run dev

Entry point main.tsx.

Available Scripts

In the project directory, you can run:

npm run dev or yarn dev

Runs the app in the development mode.
Open http://localhost:4000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build or yarn build

Builds the app for production to the dist folder.\

See the section about deployment for more information.

npm run test or yarn preview

The vite preview command will boot up a local static web server that serves the files from dist at http://localhost:4173. It's an easy way to check if the production build looks OK in your local environment.

You may configure the port of the server by passing the --port flag as an argument.

{
  "scripts": {
    "preview": "vite preview --port 8080"
  }
}

Now the preview command will launch the server at http://localhost:8080.

npm test or yarn test

Launches the test runner (Vitest) in the interactive watch mode.\

Learn More

You can learn more in the Vite.js documentation.

To learn React, check out the React documentation.

About

A React TypeScript starter project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published