Skip to content

Commit 8e6f877

Browse files
committed
update readme
1 parent 640fe4c commit 8e6f877

File tree

1 file changed

+28
-38
lines changed

1 file changed

+28
-38
lines changed

README.md

+28-38
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,34 @@ Currently, two official plugins are available:
77
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
88
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
99

10-
## Expanding the ESLint configuration
11-
12-
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13-
14-
- Configure the top-level `parserOptions` property like this:
15-
16-
```js
17-
export default tseslint.config({
18-
languageOptions: {
19-
// other options...
20-
parserOptions: {
21-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
22-
tsconfigRootDir: import.meta.dirname,
23-
},
24-
},
25-
})
10+
## Setting up local development environment
11+
12+
To install all dependencies for your local development environment, run
13+
14+
```bash
15+
npm install
16+
```
17+
18+
## Running the development server
19+
20+
Run the development server using:
21+
22+
```bash
23+
npm run dev
2624
```
2725

28-
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29-
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31-
32-
```js
33-
// eslint.config.js
34-
import react from 'eslint-plugin-react'
35-
36-
export default tseslint.config({
37-
// Set the react version
38-
settings: { react: { version: '18.3' } },
39-
plugins: {
40-
// Add the react plugin
41-
react,
42-
},
43-
rules: {
44-
// other rules...
45-
// Enable its recommended rules
46-
...react.configs.recommended.rules,
47-
...react.configs['jsx-runtime'].rules,
48-
},
49-
})
26+
## Build production
27+
28+
Run the build command:
29+
30+
```bash
31+
npm run build
32+
```
33+
34+
## Running production build
35+
36+
Run the production build command:
37+
38+
```bash
39+
npm run preview
5040
```

0 commit comments

Comments
 (0)