diff options
author | Joris | 2020-02-13 18:54:18 +0100 |
---|---|---|
committer | Joris | 2020-02-15 10:59:25 +0100 |
commit | 7a01b001ccc4a7bda3da92486903540e3f9754fd (patch) | |
tree | fbe269faa319fd7f21049612f8a62c0c169f369e /dev | |
parent | 8328c11ac6706e3adf9b09877c02897132b8927a (diff) |
Set up bucklescript
Diffstat (limited to 'dev')
-rwxr-xr-x | dev | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -2,27 +2,26 @@ cd "$(dirname $0)" CMD="$1" PROJECT="cooking" -export DEV_MODE=true if [ "$CMD" = "start" ]; then - nix-shell --run "tmuxinator local" + nix-shell --run "make node_modules && tmuxinator local" elif [ "$CMD" = "stop" ]; then nix-shell --run "tmux kill-session -t $PROJECT" -elif [ "$CMD" = "watch-ts" ]; then +elif [ "$CMD" = "watch-ocaml" ]; then - rm -f static/main.js + bsb -make-world -w - while true; do - find src | entr -d -s "clear && make static/main.js" - done +elif [ "$CMD" = "watch-js" ]; then + + node_modules/.bin/rollup --watch --config rollup.config.js else - echo "Usage: $0 start|stop|watch-frontend" + echo "Usage: $0 start|stop|watch-ocaml|watch-js" exit 1 fi |