mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 20:07:06 +08:00
Merge pull request #68 from oceanlvr/main
docs(readme): add quick-start preview
This commit is contained in:
commit
79affdb87d
@ -18,7 +18,7 @@ The repo contains only the most basic files, dependencies and functionalities to
|
|||||||
|
|
||||||
You need a basic understanding of `Electron` and `Vite` to get started. But that's not mandatory - you can learn almost all the details by reading through the source code. Trust me, this repo is not that complex. 😋
|
You need a basic understanding of `Electron` and `Vite` to get started. But that's not mandatory - you can learn almost all the details by reading through the source code. Trust me, this repo is not that complex. 😋
|
||||||
|
|
||||||
## Run Setup
|
## Quick Start
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# clone the project
|
# clone the project
|
||||||
@ -34,6 +34,8 @@ You need a basic understanding of `Electron` and `Vite` to get started. But that
|
|||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
![quick-start](packages/renderer/public/images/quick-start.gif)
|
||||||
|
|
||||||
## Directory
|
## Directory
|
||||||
|
|
||||||
A `dist` folder will be generated everytime when `dev` or `build` command is executed. File structure of `dist` is identical to the `packages` directory to avoid any potential path calculation errors.
|
A `dist` folder will be generated everytime when `dev` or `build` command is executed. File structure of `dist` is identical to the `packages` directory to avoid any potential path calculation errors.
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
模板的具体实现细节我相信你看两遍源码就能把它吃透了 😋
|
模板的具体实现细节我相信你看两遍源码就能把它吃透了 😋
|
||||||
|
|
||||||
## 运行项目
|
## 快速开始
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# clone the project
|
# clone the project
|
||||||
@ -36,6 +36,8 @@
|
|||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
![quick-start](packages/renderer/public/images/quick-start.gif)
|
||||||
|
|
||||||
## 目录结构
|
## 目录结构
|
||||||
|
|
||||||
  一旦启动或打包脚本执行过,会在根目录产生 **`dist` 文件夹,里面的文件夹同 `packages` 一模一样**;在使用一些路径计算时,尤其是相对路径计算;`dist` 与 `packages` 里面保持相同的目录结构能避开好多问题
|
  一旦启动或打包脚本执行过,会在根目录产生 **`dist` 文件夹,里面的文件夹同 `packages` 一模一样**;在使用一些路径计算时,尤其是相对路径计算;`dist` 与 `packages` 里面保持相同的目录结构能避开好多问题
|
||||||
|
BIN
packages/renderer/public/images/quick-start.gif
Normal file
BIN
packages/renderer/public/images/quick-start.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 MiB |
Loading…
x
Reference in New Issue
Block a user