robin/maivi
a tiny cute lua web framework
git clone https://git.robinwobin.dev/robin/maivi
61e6d44
main
1export MAIVI_PORT := "3000" 2 3test_dir := justfile_directory () / "test" 4 5build : ( zig-build ) 6 7[ env( "MAIVI_ROOT" , test_dir)] 8[ env( "MAIVI_REV" , "test" )] 9[ env( "MAIVI_LOG" , "debug" )] 10test : 11@ just mlua test/test.lua 12 13[ env( "MAIVI_ROOT" , test_dir)] 14[ env( "MAIVI_REV" , "test" )] 15[ env( "MAIVI_LOG" , "debug" )] 16test-run * args : 17@ just maivi{{ args }} 18 19test-build : 20@ just test-run build 21 22test-dev : 23@ just test-run dev 24 25# zig ========================================================================= 26 27[ private ] 28zig-build * args : 29@ printf "zig build %s\n" " {{ args }} " 30@ zig build{{ args }} \ 31 |&hl -P --config=hl.toml 32 33[ private ] 34build-dev * args : 35@ just zig-build-Druntime -Dmd4c {{ args }} 36 37mlua * args : 38@ just build-dev mlua-- {{ args }} 39 40maivi * args : 41@ just build-dev run-- {{ args }}