robin/maivi
a tiny cute lua web framework
git clone https://git.robinwobin.dev/robin/maivi
897859d
push-srxvuswpkqxx
1export MAIVI_PORT := "3000" 2 3# used by `docs` recipe 4git_rev := shell ( "git rev-parse HEAD" ) 5 6test_dir := justfile_directory () / "test" 7docs_dir := justfile_directory () / "docs" 8 9build : ( zig-build ) 10 11[ env( "MAIVI_ROOT" , docs_dir)] 12[ env( "MAIVI_REV" , git_rev)] 13docs * args : 14@ just maivi{{ args }} 15 16[ env( "MAIVI_ROOT" , test_dir)] 17[ env( "MAIVI_REV" , "test" )] 18[ env( "MAIVI_LOG" , "debug" )] 19test : 20@ just mlua test/test.lua 21 22[ env( "MAIVI_ROOT" , test_dir)] 23[ env( "MAIVI_REV" , "test" )] 24[ env( "MAIVI_LOG" , "debug" )] 25test-run * args : 26@ just maivi{{ args }} 27 28test-build : 29@ just test-run build 30 31test-dev : 32@ just test-run dev 33 34# zig ========================================================================= 35 36[ private ] 37zig-build * args : 38@ printf "zig build %s\n" " {{ args }} " 39@ zig build{{ args }} \ 40 |&hl -P --config=hl.toml 41 42[ private ] 43build-dev * args : 44@ just zig-build-Druntime -Dmd4c {{ args }} 45 46mlua * args : 47@ just build-dev mlua-- {{ args }} 48 49maivi * args : 50@ just build-dev run-- {{ args }}