From f8494a44cacbc9f3c500517fefd8e3fc11bdb4bb Mon Sep 17 00:00:00 2001 From: Huxley Date: Thu, 16 Jul 2026 18:36:52 +0800 Subject: [PATCH] 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 --- mise.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mise.toml b/mise.toml index 13c15d2..e8fce3e 100644 --- a/mise.toml +++ b/mise.toml @@ -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"]