Skip to content

aklassen/vite-react-starter-app

Repository files navigation

⚡ Vite + ⚛️ React Starter App

This project was bootstrapped using the vite cli.

Node.js CI CodeQL

Available Scripts

In the project directory, you can run:

yarn dev

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

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

yarn build

Builds the app for production to the dist folder.

See documentation on building for production for more information.

yarn preview

Boots up local static web server that serves the files from dist at http://localhost:5000. It's an easy way to check if the production build looks OK in your local environment.

yarn test:unit

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn lint

Runs elsint based on local eslint setup.

yarn lint:fix

Runs elsint and autofix issues.

yarn lint:format

Runs prettier to format project based on local prettier setup.

yarn type-check

Run a compile based on a local tsconfig.json settings.