feat(mise): add development task shortcuts

- feat: add dev:api, dev:web, and dev tasks to mise.toml for starting
  the API and Web servers
This commit is contained in:
2026-07-16 18:36:52 +08:00
parent a18f96912d
commit f8494a44ca
+13
View File
@@ -6,3 +6,16 @@ node = "24"
XDG_CACHE_HOME = "{{config_root}}/.cache"
NPM_CONFIG_CACHE = "{{config_root}}/.cache/npm"
PLAYWRIGHT_BROWSERS_PATH = "{{config_root}}/.cache/ms-playwright"
[tasks."dev:api"]
description = "Start the MyGO API server"
run = "go run . serve"
[tasks."dev:web"]
description = "Start the Vite development server"
dir = "{{config_root}}/web"
run = "npm run dev -- --host ${MYGO_WEB_HOST:-127.0.0.1}"
[tasks.dev]
description = "Start the MyGO API and Web development servers"
depends = ["dev:api", "dev:web"]