Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
add air
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQNxkfj1kWTtWMKD0r/3WDvuQVMmmjFyVjLZzQikISkcYaX3TxmowlQm+JCIfc5OEXu Xj91sTiusdmxb6oOSVxQ8= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
2 months ago
2 changed files, 25 additions(+), 0 deletions(-)
.air.tomlflake.nix
I .air.toml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/.air.toml b/.air.toml
new file mode 100644
index 0000000000000000000000000000000000000000..7ea6ea63445bf1af7989e291c67294a2e52224d0
--- /dev/null
+++ b/.air.toml
@@ -0,0 +1,24 @@
+root = "."
+testdata_dir = "testdata"
+tmp_dir = "tmp"
+
+[build]
+  bin = "./ugitd"
+  cmd = "go build ./cmd/ugitd"
+  delay = 1000
+  exclude_file = ["internal/html/tailwind.go"]
+  exclude_regex = ["_test.go"]
+  exclude_unchanged = true
+  include_ext = ["go"]
+  pre_cmd = ["go generate ./..."]
+
+[misc]
+  clean_on_exit = true
+
+[proxy]
+  app_port = 8449
+  enabled = true
+  proxy_port = 8450
+
+[screen]
+  clear_on_rebuild = true
M flake.nixflake.nix
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
diff --git a/flake.nix b/flake.nix
index 44eca662be3fb2fa6175cb01e6fe5747fa7a8906..a9b837d3071dd73beec4745d84ac5aa26fada7a4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -45,6 +45,7 @@           default = pkgs.mkShell {
             nativeBuildInputs = with pkgs; [
               go
               gopls
+              air
               tctp.${system}
               tctpl.${system}
               vscode-langservers-extracted