maiden-remote-repl is a simple CLI utility for node.js for connecting to Maiden remotely.
This was made so I can keep using my local vim, but also display logs in tmux split window, and reload the script on file change. Yes I could use maiden editor and click on the “run” button, but I prefer to code from my own editor, and to keep my tmux sessions so I can get back to them. Also writing UI code, and having Norns refresh on every change (so I can tweak values in almost real time) is pretty magical.
To get live-reload experience:
npm install -g maiden-remote-repl
dev-sync.sh(assuming you’re working on
rsync -azP . --exclude .git --delete email@example.com:/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.