tool(air): auto sqlc generate and exclude sqlc generated files
This commit is contained in:
@@ -8,10 +8,10 @@ tmp_dir = "tmp"
|
|||||||
[build]
|
[build]
|
||||||
args_bin = []
|
args_bin = []
|
||||||
bin = "./tmp/main"
|
bin = "./tmp/main"
|
||||||
cmd = "go build -o ./tmp/main cmd/api/main.go"
|
cmd = "sqlc generate && go build -o ./tmp/main cmd/api/main.go"
|
||||||
delay = 1000
|
delay = 1000
|
||||||
entrypoint = ["./tmp/main"]
|
entrypoint = ["./tmp/main"]
|
||||||
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
exclude_dir = ["assets", "tmp", "vendor", "testdata", "internal/repository"]
|
||||||
exclude_file = []
|
exclude_file = []
|
||||||
exclude_regex = ["_test.go"]
|
exclude_regex = ["_test.go"]
|
||||||
exclude_unchanged = false
|
exclude_unchanged = false
|
||||||
|
|||||||
Reference in New Issue
Block a user