From 3d08f92705b21102ee3ca986d6e6197a5df3c243 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sat, 20 Jan 2024 08:45:44 +1100 Subject: [PATCH] Update status. Fix dev task. --- mkdocs-website/docs/en/roadmap.md | 3 +++ mkdocs-website/shared/alpha4-wails3-dev.csv | 2 +- v3/internal/templates/_common/Taskfile.tmpl.yml | 15 ++------------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/mkdocs-website/docs/en/roadmap.md b/mkdocs-website/docs/en/roadmap.md index 8e5a11b7643..a48b56efa7d 100644 --- a/mkdocs-website/docs/en/roadmap.md +++ b/mkdocs-website/docs/en/roadmap.md @@ -68,6 +68,9 @@ Basically, try to break it and let us know if you find any issues! :smile: {{ read_csv("alpha4-wails3-dev.csv") }} +- Windows does work, with the following caveats + - Sometimes the main app is built twice on change + - Closing the main window does not terminate the dev process, requiring ctrl-c to terminate `wails3 package` command: diff --git a/mkdocs-website/shared/alpha4-wails3-dev.csv b/mkdocs-website/shared/alpha4-wails3-dev.csv index 12b4dfc45e1..bcc9522d8cf 100644 --- a/mkdocs-website/shared/alpha4-wails3-dev.csv +++ b/mkdocs-website/shared/alpha4-wails3-dev.csv @@ -1,2 +1,2 @@ " ",Mac,Windows,Linux -`wails3 dev`," "," "," " \ No newline at end of file +`wails3 dev`," ",:material-minus:," " \ No newline at end of file diff --git a/v3/internal/templates/_common/Taskfile.tmpl.yml b/v3/internal/templates/_common/Taskfile.tmpl.yml index 8fc2e152e3c..8b761e6db68 100644 --- a/v3/internal/templates/_common/Taskfile.tmpl.yml +++ b/v3/internal/templates/_common/Taskfile.tmpl.yml @@ -431,26 +431,15 @@ tasks: dev: summary: Runs the application in development mode - preconditions: - - sh: wails3 tool checkport -u {{ "{{.FRONTEND_DEVSERVER_URL}}" }} - msg: 'Cannot connect to frontend dev server ({{ "{{.FRONTEND_DEVSERVER_URL}}" }}). Please ensure you have run `wails3 dev:frontend` in another terminal.' cmds: - - wails3 tool watcher -path {{ "{{.PATH}}" }} -preexec {{ "\"{{.PREEXEC}}\""}} {{ "{{.PREWAIT}}" }} -postexec {{ "\"{{.POSTEXEC}}\"" }} -ignorefiles {{ "{{.IGNOREFILES}}" }} -ignoredirs {{ "{{.IGNOREDIRS}}" }} -ignoreextensions {{ "{{.IGNOREEXTENSIONS}}" }} -exec {{ "\"{{.EXEC}}\"" }} -debounce {{ "{{.DEBOUNCE}}" }} + - wails3 tool watcher -config ./build/devmode.config.toml vars: - PATH: '.' - PREEXEC: 'wails3 task build' - PREWAIT: '-prewait true' - EXEC: 'wails3 task run' - POSTEXEC: '' - IGNOREFILES: 'Taskfile.yml' - IGNOREDIRS: '.git,frontend,.idea,.vscode,bin' - IGNOREEXTENSIONS: '.exe,.syso' - DEBOUNCE: 1000 FRONTEND_DEVSERVER_URL: 'http://localhost:5173' env: # This is the default vite dev server port FRONTEND_DEVSERVER_URL: 'http://localhost:5173' + dev:reload: summary: Reloads the application cmds: