back interdiff of round #1 and #0

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

REVERTED
Tiltfile
···
-
common_env = {
-
"TANGLED_VM_SPINDLE_OWNER": os.getenv("TANGLED_VM_SPINDLE_OWNER", default=""),
-
"TANGLED_VM_KNOT_OWNER": os.getenv("TANGLED_VM_KNOT_OWNER", default=""),
-
"TANGLED_DB_PATH": os.getenv("TANGLED_DB_PATH", default="dev.db"),
-
"TANGLED_DEV": os.getenv("TANGLED_DEV", default="true"),
-
}
-
-
nix_globs = ["nix/**", "flake.nix", "flake.lock"]
-
-
local_resource(
-
name="appview",
-
serve_cmd="nix run .#watch-appview --extra-experimental-features flakes",
-
deps=nix_globs,
-
env=common_env,
-
allow_parallel=True,
-
)
-
-
local_resource(
-
name="tailwind",
-
serve_cmd="nix run .#watch-tailwind --extra-experimental-features flakes",
-
deps=nix_globs,
-
env=common_env,
-
allow_parallel=True,
-
)
-
-
local_resource(
-
name="redis",
-
serve_cmd="redis-server",
-
deps=nix_globs,
-
env=common_env,
-
allow_parallel=True,
-
)
-
-
local_resource(
-
name="vm",
-
serve_cmd="nix run --impure .#vm --extra-experimental-features flakes",
-
deps=nix_globs,
-
env=common_env,
-
allow_parallel=True,
-
)
ERROR
flake.nix

Failed to calculate interdiff for this file.

NEW
contrib/Tiltfile
···
+
common_env = {
+
"TANGLED_VM_SPINDLE_OWNER": os.getenv("TANGLED_VM_SPINDLE_OWNER", default=""),
+
"TANGLED_VM_KNOT_OWNER": os.getenv("TANGLED_VM_KNOT_OWNER", default=""),
+
"TANGLED_DB_PATH": os.getenv("TANGLED_DB_PATH", default="dev.db"),
+
"TANGLED_DEV": os.getenv("TANGLED_DEV", default="true"),
+
}
+
+
nix_globs = ["nix/**", "flake.nix", "flake.lock"]
+
+
local_resource(
+
name="appview",
+
serve_cmd="nix run .#watch-appview",
+
serve_dir="..",
+
deps=nix_globs,
+
env=common_env,
+
allow_parallel=True,
+
)
+
+
local_resource(
+
name="tailwind",
+
serve_cmd="nix run .#watch-tailwind",
+
serve_dir="..",
+
deps=nix_globs,
+
env=common_env,
+
allow_parallel=True,
+
)
+
+
local_resource(
+
name="redis",
+
serve_cmd="redis-server",
+
serve_dir="..",
+
deps=nix_globs,
+
env=common_env,
+
allow_parallel=True,
+
)
+
+
local_resource(
+
name="vm",
+
serve_cmd="nix run --impure .#vm",
+
serve_dir="..",
+
deps=nix_globs,
+
env=common_env,
+
allow_parallel=True,
+
)