From f2d76e766b53301b713780c21350502992851881 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Fri, 7 Jun 2024 15:20:36 -0400 Subject: [PATCH] integrate build scripts; build before publish --- build/justfile | 2 -- justfile | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/build/justfile b/build/justfile index 0b9e7de..9ce9aa3 100644 --- a/build/justfile +++ b/build/justfile @@ -1,6 +1,4 @@ build: - # compile the janet into an image - # janet -c src/ludus.janet build/ludus.jimage # the complex emscripten invocation # note we have the stack size set to 1024*1024 (1 MB) emcc \ diff --git a/justfile b/justfile index e5a866f..df3b806 100644 --- a/justfile +++ b/justfile @@ -3,6 +3,7 @@ repl: kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus --keep-focus kitten @ send-text -m "title:hx_repl:ludus" "janet -s\n" +# restart the repl server restart: kitten @ send-text -m "title:hx_repl:ludus" "\04" kitten @ send-text -m "title:hx_repl:ludus" "janet -s\n" @@ -17,5 +18,14 @@ doc: # publish to npm (did you build things first?) publish: + just build npm version patch npm publish + +# build the ludus jimage +build: + rm build/out.mjs + rm build/out.wasm + rm build/ludus.jimage + janet -c src/ludus.janet build/ludus.jimage + cd build && just build