diff --git a/.gitignore b/.gitignore index ad17b5c..933a46b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,4 @@ /build/ -/test.lua +/test/ diff --git a/justfile b/justfile index 9efa21c..3b232fd 100644 --- a/justfile +++ b/justfile @@ -1,24 +1,11 @@ export MAIVI_PORT := "3000" -[env("MAIVI_BASE_URL", "https://robinwobin.dev")] -run: build - @just maivi - -[env("MAIVI_LOG", "warn")] -[env("MAIVI_BASE_URL", "https://robinwobin.dev")] build: - @just maivi build - -[env("MAIVI_LOG", "debug")] -dev: - @just zig-build run -Dversion-string=dev -- dev - -[env("MAIVI_LOG", "debug")] -gen: - @just maivi build + @just zig-build -watch: - watchexec -w lua -w styles -w static -r -- just dev +[env("MAIVI_ROOT", "./test/")] +test: + @just mlua test/test.lua # zig ========================================================================= @@ -29,8 +16,8 @@ zig-build *args: |& hl -P --config=hl.toml [private] -maivi *args: - @just zig-build run -- {{ args }} +mlua *args: + @just zig-build mlua -- {{ args }} # nix =========================================================================