Signed-off-by: Seongmin Lee git@boltless.me
+8
-6
.air/appview.toml
+8
-6
.air/appview.toml
···
1
-
[build]
2
-
cmd = "tailwindcss -i input.css -o ./appview/pages/static/tw.css && go build -o .bin/app ./cmd/appview/main.go"
3
-
bin = ";set -o allexport && source .env && set +o allexport; .bin/app"
4
1
root = "."
2
+
tmp_dir = "out"
3
+
4
+
[build]
5
+
cmd = "go build -o out/appview.out cmd/appview/main.go"
6
+
bin = "out/appview.out"
5
7
6
-
exclude_regex = [".*_templ.go"]
7
-
include_ext = ["go", "templ", "html", "css"]
8
-
exclude_dir = ["target", "atrium", "nix"]
8
+
include_ext = ["go"]
9
+
exclude_dir = ["avatar", "camo", "indexes", "nix", "tmp"]
10
+
stop_on_error = true
+11
.air/knot.toml
+11
.air/knot.toml
···
1
+
root = "."
2
+
tmp_dir = "out"
3
+
4
+
[build]
5
+
cmd = 'go build -ldflags "-X tangled.org/core/knotserver.version=$(git describe --tags --long)" -o out/knot.out cmd/knot/main.go'
6
+
bin = "out/knot.out"
7
+
args_bin = "server"
8
+
9
+
include_ext = ["go"]
10
+
exclude_dir = ["avatar", "camo", "indexes", "nix", "tmp"]
11
+
stop_on_error = true
-7
.air/knotserver.toml
-7
.air/knotserver.toml
+10
.air/spindle.toml
+10
.air/spindle.toml
+3
-6
flake.nix
+3
-6
flake.nix
···
184
184
air-watcher = name: arg:
185
185
pkgs.writeShellScriptBin "run"
186
186
''
187
-
${pkgs.air}/bin/air -c /dev/null \
188
-
-build.cmd "${pkgs.go}/bin/go build -o ./out/${name}.out ./cmd/${name}/main.go" \
189
-
-build.bin "./out/${name}.out" \
190
-
-build.args_bin "${arg}" \
191
-
-build.stop_on_error "true" \
192
-
-build.include_ext "go"
187
+
export PATH=${pkgs.go}/bin:$PATH
188
+
${pkgs.air}/bin/air -c ./.air/${name}.toml \
189
+
-build.args_bin "${arg}"
193
190
'';
194
191
tailwind-watcher =
195
192
pkgs.writeShellScriptBin "run"
History
1 round
3 comments
boltless.me
submitted
#0
1 commit
expand
collapse
flake.nix,air: use air config file with correct exclusion
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 3 comments
not sure i prefer stop on error here.
It was already defined on flake.nix. I'm just migrating those settings to dedicated files. So we can change it to something else.
pull request successfully merged
minor dev environment upgrades