From 558be11808a68a9a836d4b19a31bc1e5e71d6b62 Mon Sep 17 00:00:00 2001 From: Johnny Date: Sun, 7 Jul 2024 20:09:02 +0800 Subject: [PATCH] feat: add dev script for windows (#222) --- scripts/.air-windows.toml | 15 +++++++++++++++ scripts/.air.toml | 22 +++++++++++----------- 2 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 scripts/.air-windows.toml diff --git a/scripts/.air-windows.toml b/scripts/.air-windows.toml new file mode 100644 index 0000000..e55c151 --- /dev/null +++ b/scripts/.air-windows.toml @@ -0,0 +1,15 @@ +root = "." +tmp_dir = ".air" + +[build] +bin = "./.air/slash.exe --mode dev" +cmd = "go build -o ./.air/slash.exe ./bin/slash/main.go" +delay = 1000 +exclude_dir = [".air", "frontend", "build"] +exclude_file = [] +exclude_regex = [] +exclude_unchanged = false +follow_symlink = false +full_bin = "" +send_interrupt = true +kill_delay = 2000 diff --git a/scripts/.air.toml b/scripts/.air.toml index 8505f99..81e1cba 100644 --- a/scripts/.air.toml +++ b/scripts/.air.toml @@ -2,14 +2,14 @@ root = "." tmp_dir = ".air" [build] - bin = "./.air/slash --mode dev" - cmd = "go build -o ./.air/slash ./bin/slash/main.go" - delay = 1000 - exclude_dir = [".air", "frontend", "build"] - exclude_file = [] - exclude_regex = [] - exclude_unchanged = false - follow_symlink = false - full_bin = "" - send_interrupt = true - kill_delay = 2000 +bin = "./.air/slash --mode dev" +cmd = "go build -o ./.air/slash ./bin/slash/main.go" +delay = 1000 +exclude_dir = [".air", "frontend", "build"] +exclude_file = [] +exclude_regex = [] +exclude_unchanged = false +follow_symlink = false +full_bin = "" +send_interrupt = true +kill_delay = 2000