aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorJoris2020-02-03 18:28:50 +0100
committerJoris2020-02-03 18:28:50 +0100
commitcbcc269be607cc964fbd69d179d8a0e8b8e4bffa (patch)
tree7a8135f7ede7e1ff02bc1cf1d697a8c39a56e962 /dev
parentc7e20a6dd01a2ae049c451d18511708aaee60a19 (diff)
downloadcooking-cbcc269be607cc964fbd69d179d8a0e8b8e4bffa.tar.gz
cooking-cbcc269be607cc964fbd69d179d8a0e8b8e4bffa.tar.bz2
cooking-cbcc269be607cc964fbd69d179d8a0e8b8e4bffa.zip
Extract dom and number utilities to external files
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