Monorepo for Tangled tangled.org

build: Introduce Tilt for better developer experience #575

merged opened by isaaccorbrey.com targeting master from isaaccorbrey.com/core: icorbrey/push-vxyyvktxlnoy

This allows developers to run a single command (tilt up) to start the entire local development environment for Tangled.

Signed-off-by: Isaac Corbrey icorbrey@gmail.com

Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:zviscnpwyvj6y32agi5davn5/sh.tangled.repo.pull/3lyjmdhl7av22
+41
Diff #0
+40
Tiltfile
··· 1 + common_env = { 2 + "TANGLED_VM_SPINDLE_OWNER": os.getenv("TANGLED_VM_SPINDLE_OWNER", default=""), 3 + "TANGLED_VM_KNOT_OWNER": os.getenv("TANGLED_VM_KNOT_OWNER", default=""), 4 + "TANGLED_DB_PATH": os.getenv("TANGLED_DB_PATH", default="dev.db"), 5 + "TANGLED_DEV": os.getenv("TANGLED_DEV", default="true"), 6 + } 7 + 8 + nix_globs = ["nix/**", "flake.nix", "flake.lock"] 9 + 10 + local_resource( 11 + name="appview", 12 + serve_cmd="nix run .#watch-appview --extra-experimental-features flakes", 13 + deps=nix_globs, 14 + env=common_env, 15 + allow_parallel=True, 16 + ) 17 + 18 + local_resource( 19 + name="tailwind", 20 + serve_cmd="nix run .#watch-tailwind --extra-experimental-features flakes", 21 + deps=nix_globs, 22 + env=common_env, 23 + allow_parallel=True, 24 + ) 25 + 26 + local_resource( 27 + name="redis", 28 + serve_cmd="redis-server", 29 + deps=nix_globs, 30 + env=common_env, 31 + allow_parallel=True, 32 + ) 33 + 34 + local_resource( 35 + name="vm", 36 + serve_cmd="nix run --impure .#vm --extra-experimental-features flakes", 37 + deps=nix_globs, 38 + env=common_env, 39 + allow_parallel=True, 40 + )
+1
flake.nix
··· 151 151 nativeBuildInputs = [ 152 152 pkgs.go 153 153 pkgs.air 154 + pkgs.tilt 154 155 pkgs.gopls 155 156 pkgs.httpie 156 157 pkgs.litecli

History

2 rounds 1 comment
sign up or login to add to the discussion
1 commit
expand
contrib: Introduce Tilt for better developer experience
expand 0 comments
pull request successfully merged
isaaccorbrey.com submitted #0
1 commit
expand
build: Introduce Tilt for better developer experience
expand 1 comment

Okay, as discussed on Discord, let's put this under a contrib dir. If you could reauthor the commit to read "contrib: ..." (lowercased), we should be good to merge!