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