30 lines
566 B
Markdown
30 lines
566 B
Markdown
|
# Vite Electron Typescript Template
|
||
|
|
||
|
`vite 2` `vue 3` `electron 12`
|
||
|
|
||
|
## How to use
|
||
|
clone the repo via git and install dependencies:
|
||
|
```shell
|
||
|
git clone --depth 1 --single-branch https://github.com/hocili/vite-electron-typescript-template.git your-project-name
|
||
|
cd your-project-name
|
||
|
yarn
|
||
|
```
|
||
|
|
||
|
## Starting Development
|
||
|
Start the app in the `dev` environment:
|
||
|
```shell
|
||
|
yarn dev
|
||
|
```
|
||
|
|
||
|
```shell
|
||
|
yarn electron:dev
|
||
|
```
|
||
|
## Packaging for Production
|
||
|
To package apps for the local platform:
|
||
|
```shell
|
||
|
yarn electron:build
|
||
|
```
|
||
|
|
||
|
## TODO
|
||
|
1. 使用web serial api实现串口数据接收
|