Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore(dev): update build directory

johnnyjoyf1eacfefb083
diff --git a/.gitignore b/.gitignore
index c12f0f319..ef37960b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,3 @@
-# Air (hot reload) generated
-.air
-
# temp folder
tmp
diff --git a/scripts/.air-windows.toml b/scripts/.air-windows.toml
index d0af7680c..edf60cecc 100644
--- a/scripts/.air-windows.toml
+++ b/scripts/.air-windows.toml
@@ -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 = []
diff --git a/scripts/.air.toml b/scripts/.air.toml
index 110e099ae..c0d50eb0f 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -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 = []