1.1.1 • Published 3 years ago
maiden-remote-repl v1.1.1
maiden-remote-repl
Remote REPL session for Norns Maiden.
Installation
npm install -g marden-remote-replUsage
maiden-remote-replstarts the remote repl, user input is sent to Norns, and messages are sent back to the CLImaiden-remote-repl send [msg]sendsmsgas a one-off, useful for reloading script:'maiden-remote-repl send "norns.script.load("code/APP/APP.lua")'- you can specify the norns url with
--host, for example:maiden-remote-repl --host fates.local
Tips
You can combine maiden-remote-repl send with nodemon and rsync to get live-reload experience:
- create
dev-sync.sh(assuming you're working onAPP.lua):rsync -azP . --exclude .git --delete we@norns.local:/home/we/dust/code/APP maiden-remote-repl send 'norns.script.load("code/APP/APP.lua")' - start file watching session, for example:
nodemon -e lua -x ./dev-sync.sh
Now, on every file change to lua the code is sent to Norns, and the script is restarted.