aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorJoris2020-02-13 18:54:18 +0100
committerJoris2020-02-15 10:59:25 +0100
commit7a01b001ccc4a7bda3da92486903540e3f9754fd (patch)
treefbe269faa319fd7f21049612f8a62c0c169f369e /dev
parent8328c11ac6706e3adf9b09877c02897132b8927a (diff)
downloadcooking-7a01b001ccc4a7bda3da92486903540e3f9754fd.tar.gz
cooking-7a01b001ccc4a7bda3da92486903540e3f9754fd.tar.bz2
cooking-7a01b001ccc4a7bda3da92486903540e3f9754fd.zip
Set up bucklescript
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