34 lines
813 B
Makefile
34 lines
813 B
Makefile
set dotenv-load
|
|
|
|
default:
|
|
@just --list
|
|
|
|
test:
|
|
@echo $test
|
|
|
|
# build clojurescript release
|
|
build:
|
|
shadow-cljs release module
|
|
|
|
# open a janet repl in a different os window
|
|
repl:
|
|
kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus
|
|
kitten @ send-text -m "title:hx_repl:ludus" "lein repl"
|
|
|
|
restart:
|
|
kitten @ send-text -m "title:hx_repl:ludus" "\04"
|
|
kitten @ send-text -m "title:hx_repl:ludus" "janet -s\n"
|
|
|
|
# send what's selected to the repl and evaluate it
|
|
eval:
|
|
sd "$" "\n" | sd "\n\n" "\n" | kitten @ send-text -m "title:hx_repl:ludus" --stdin
|
|
|
|
# send what's selected to a buffer, and then evaluate what's in the buffer
|
|
buffer:
|
|
sd "$" "\n" | sd "\n\n" "\n" > .repl-buffer.janet
|
|
kitten @ send-text -m "title:hx_repl:ludus" "(import ./.repl-buffer :prefix \"\")"
|
|
|
|
|
|
|
|
|