docs: update Usage
This commit is contained in:
parent
2c67dc62a3
commit
2e319c8b98
12
README.md
12
README.md
|
@ -15,9 +15,17 @@
|
||||||
|
|
||||||
- The extension is very flexible.
|
- The extension is very flexible.
|
||||||
|
|
||||||
## Installation
|
## Usage
|
||||||
|
|
||||||
```bash
|
- The first way is to use scaffolding
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm create electron-vite
|
||||||
|
```
|
||||||
|
|
||||||
|
- The second way is to clone the repository manually
|
||||||
|
|
||||||
|
```sh
|
||||||
# clone the project
|
# clone the project
|
||||||
git clone https://github.com/caoxiemeihao/vite-react-electron.git
|
git clone https://github.com/caoxiemeihao/vite-react-electron.git
|
||||||
|
|
||||||
|
|
|
@ -17,19 +17,27 @@
|
||||||
|
|
||||||
## 运行
|
## 运行
|
||||||
|
|
||||||
```bash
|
- 第一种方式是通过脚手架
|
||||||
# clone the project
|
|
||||||
git clone https://github.com/caoxiemeihao/vite-react-electron.git
|
|
||||||
|
|
||||||
# enter the project directory
|
```sh
|
||||||
cd vite-react-electron
|
npm create electron-vite
|
||||||
|
```
|
||||||
|
|
||||||
# install dependency
|
- 第二种方式是通过 clone 该仓库
|
||||||
npm install
|
|
||||||
|
|
||||||
# develop
|
```sh
|
||||||
npm run dev
|
# clone the project
|
||||||
```
|
git clone https://github.com/caoxiemeihao/vite-react-electron.git
|
||||||
|
|
||||||
|
# enter the project directory
|
||||||
|
cd vite-react-electron
|
||||||
|
|
||||||
|
# install dependency
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# develop
|
||||||
|
npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue