aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rwxr-xr-xdev18
1 files changed, 7 insertions, 11 deletions
diff --git a/dev b/dev
index c8742c5..36849ac 100755
--- a/dev
+++ b/dev
@@ -2,6 +2,7 @@
cd "$(dirname $0)"
CMD="$1"
PROJECT="cooking"
+export DEV_MODE=true
if [ "$CMD" = "start" ]; then
@@ -13,20 +14,15 @@ elif [ "$CMD" = "stop" ]; then
elif [ "$CMD" = "watch-ts" ]; then
- tsc \
- --watch \
- --pretty \
- --sourceMap \
- --strict \
- --noUnusedLocals \
- --noUnusedParameters \
- --noImplicitReturns \
- --outDir static \
- main.ts
+ rm -f static/main.js
+
+ while true; do
+ find src | entr -d -s "clear && make static/main.js"
+ done
else
- echo "Usage: $0 start|stop|watch-ts"
+ echo "Usage: $0 start|stop|watch-frontend"
exit 1
fi