add more documentation for dev

This commit is contained in:
neil 2022-12-14 06:48:03 +08:00
parent 137bd3e3bb
commit 251c496a61
2 changed files with 12 additions and 1 deletions

View file

@ -15,6 +15,15 @@ Setting up the workspace just run here:
$ pnpm install $ pnpm install
``` ```
To develop the GUI within Tauri Webview
```
$ pnpm dev:gui
```
To develop the GUI within your local browser at localhost:8080
```
$ pnpm web:gui
```
# Build a GUI installer # Build a GUI installer
This assumes you have installed the dev dependencies This assumes you have installed the dev dependencies
``` ```

View file

@ -3,7 +3,9 @@
"author": "neil molina <neil@tea.xyz>", "author": "neil molina <neil@tea.xyz>",
"private": true, "private": true,
"scripts": { "scripts": {
"build:gui": "pnpm --filter gui exec tauri build" "build:gui": "pnpm --filter gui exec tauri build",
"dev:gui": "pnpm --filter gui exec tauri dev",
"web:gui": "BUILD_FOR=preview pnpm --filter gui dev"
}, },
"workspaces": { "workspaces": {
"packages": [ "packages": [