]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/watch/server.sh
Fix e2e tests
[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 npm run concurrently -- -k \
11 "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
12 "npm run tsc -- --sourceMap --preserveWatchOutput -w"