aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rwxr-xr-xdev15
1 files changed, 7 insertions, 8 deletions
diff --git a/dev b/dev
index 36849ac..d0acad0 100755
--- a/dev
+++ b/dev
@@ -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