chore(dev): update build directory

This commit is contained in:
johnnyjoy
2025-01-19 10:33:04 +08:00
parent edc3f1d9d9
commit f1eacfefb0
3 changed files with 8 additions and 11 deletions

3
.gitignore vendored
View File

@@ -1,6 +1,3 @@
# Air (hot reload) generated
.air
# temp folder
tmp

View File

@@ -1,11 +1,11 @@
root = "."
tmp_dir = ".air"
tmp_dir = "build"
[build]
bin = "./.air/memos.exe --mode dev"
cmd = "go build -o ./.air/memos.exe ./bin/memos/main.go"
bin = "./build/memos.exe --mode dev"
cmd = "go build -o ./build/memos.exe ./bin/memos/main.go"
delay = 1000
exclude_dir = [".air", "web", "build"]
exclude_dir = ["web", "build"]
include_ext = ["go", "mod", "sum"]
exclude_file = []
exclude_regex = []

View File

@@ -1,11 +1,11 @@
root = "."
tmp_dir = ".air"
tmp_dir = "build"
[build]
bin = "./.air/memos --mode dev"
cmd = "go build -o ./.air/memos ./bin/memos/main.go"
bin = "./build/memos --mode dev"
cmd = "go build -o ./build/memos ./bin/memos/main.go"
delay = 1000
exclude_dir = [".air", "web", "build"]
exclude_dir = ["web", "build"]
include_ext = ["go", "mod", "sum"]
exclude_file = []
exclude_regex = []