Compare commits
2 Commits
9498bed710
...
2fccbe96eb
Author | SHA1 | Date | |
---|---|---|---|
|
2fccbe96eb | ||
|
f2d76e766b |
|
@ -1,6 +1,4 @@
|
||||||
build:
|
build:
|
||||||
# compile the janet into an image
|
|
||||||
# janet -c src/ludus.janet build/ludus.jimage
|
|
||||||
# the complex emscripten invocation
|
# the complex emscripten invocation
|
||||||
# note we have the stack size set to 1024*1024 (1 MB)
|
# note we have the stack size set to 1024*1024 (1 MB)
|
||||||
emcc \
|
emcc \
|
||||||
|
|
Binary file not shown.
|
@ -6489,7 +6489,7 @@ var __emscripten_stack_alloc = (a0) => (__emscripten_stack_alloc = wasmExports['
|
||||||
var _emscripten_stack_get_current = () => (_emscripten_stack_get_current = wasmExports['emscripten_stack_get_current'])();
|
var _emscripten_stack_get_current = () => (_emscripten_stack_get_current = wasmExports['emscripten_stack_get_current'])();
|
||||||
var ___cxa_is_pointer_type = createExportWrapper('__cxa_is_pointer_type', 1);
|
var ___cxa_is_pointer_type = createExportWrapper('__cxa_is_pointer_type', 1);
|
||||||
var dynCall_jiji = Module['dynCall_jiji'] = createExportWrapper('dynCall_jiji', 5);
|
var dynCall_jiji = Module['dynCall_jiji'] = createExportWrapper('dynCall_jiji', 5);
|
||||||
var ___emscripten_embedded_file_data = Module['___emscripten_embedded_file_data'] = 1787652;
|
var ___emscripten_embedded_file_data = Module['___emscripten_embedded_file_data'] = 1782340;
|
||||||
function invoke_i(index) {
|
function invoke_i(index) {
|
||||||
var sp = stackSave();
|
var sp = stackSave();
|
||||||
try {
|
try {
|
||||||
|
|
BIN
build/out.wasm
BIN
build/out.wasm
Binary file not shown.
10
justfile
10
justfile
|
@ -3,6 +3,7 @@ repl:
|
||||||
kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus --keep-focus
|
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"
|
kitten @ send-text -m "title:hx_repl:ludus" "janet -s\n"
|
||||||
|
|
||||||
|
# restart the repl server
|
||||||
restart:
|
restart:
|
||||||
kitten @ send-text -m "title:hx_repl:ludus" "\04"
|
kitten @ send-text -m "title:hx_repl:ludus" "\04"
|
||||||
kitten @ send-text -m "title:hx_repl:ludus" "janet -s\n"
|
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 to npm (did you build things first?)
|
||||||
publish:
|
publish:
|
||||||
|
just build
|
||||||
npm version patch
|
npm version patch
|
||||||
npm publish
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user