Monorepo for Tangled tangled.org

flake.nix,air: use air config file with correct exclusion #804

merged opened by boltless.me targeting master from sl/spoyzsxwwsqw
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m5mgnrcvge22
+32 -19
Diff #0
+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
··· 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
··· 1 - [build] 2 - cmd = 'go build -ldflags "-X tangled.org/core/knotserver.version=$(git describe --tags --long)" -o .bin/knot ./cmd/knot/' 3 - bin = ".bin/knot server" 4 - root = "." 5 - 6 - exclude_regex = [""] 7 - include_ext = ["go", "templ"]
+10
.air/spindle.toml
··· 1 + root = "." 2 + tmp_dir = "out" 3 + 4 + [build] 5 + cmd = "go build -o out/spindle.out cmd/spindle/main.go" 6 + bin = "out/spindle.out" 7 + 8 + include_ext = ["go"] 9 + exclude_dir = ["avatar", "camo", "indexes", "nix", "tmp"] 10 + stop_on_error = true
+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
sign up or login to add to the discussion
boltless.me submitted #0
1 commit
expand
flake.nix,air: use air config file with correct exclusion
3/3 success
expand
expand 3 comments

minor dev environment upgrades

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