Skip to content

Commit 67576bb

Browse files
committed
refactor(scripts): 移除单独的gohot.ps1并将watch命令整合到golang.scripts.json
将原本独立的gohot.ps1脚本删除,并将其功能整合到golang.scripts.json配置文件中 新增watch相关命令,包括测试和文档生成的watch功能
1 parent 628c37a commit 67576bb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

gohot.ps1

Lines changed: 0 additions & 2 deletions
This file was deleted.

templates/golang.scripts.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"test": "go test",
44
"goproxy": "go env -w GOPROXY=https://goproxy.cn,direct",
55
"mod:on": "go env -w GO111MODULE=on",
6-
"mod:clean": "go mod tidy"
6+
"mod:clean": "go mod tidy",
7+
"watch": "watchexec.exe --restart --clear --exts go --no-project-ignore go run ./main.go",
8+
"watch:test": "watchexec.exe --restart --clear --exts go --no-project-ignore go test -v ./...",
9+
"watch:doc": "watchexec.exe --restart --clear --exts go --no-project-ignore go doc -all"
710
}
811
}

0 commit comments

Comments
 (0)