1
0
Fork 0
peertube/scripts/watch/server.sh
2018-06-06 16:48:40 +02:00

12 lines
328 B
Bash
Executable file

#!/bin/sh
set -eu
# Copy locales
mkdir -p "./client/dist"
rm -r "./client/dist/locale"
cp -r "./client/src/locale/target" "./client/dist/locale"
NODE_ENV=test concurrently -k \
"npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
"npm run tsc -- --sourceMap --preserveWatchOutput -w"