diff options
Diffstat (limited to 'dev')
-rwxr-xr-x | dev | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -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 |