]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/watch/server.sh
badbf3da0dacf9c11a1212c47c3732b11cffe688
[github/Chocobozzz/PeerTube.git] / scripts / watch / server.sh
1 #!/bin/sh
2
3 set -eu
4
5 # Copy locales
6 mkdir -p "./client/dist"
7 rm -r "./client/dist/locale"
8 cp -r "./client/src/locale/target" "./client/dist/locale"
9
10 NODE_ENV=test concurrently -k \
11 "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
12 "npm run tsc -- --sourceMap --preserveWatchOutput -w"