1
0
Fork 0
peertube/scripts/watch/server.sh
2019-11-18 10:34:23 +01:00

20 lines
474 B
Bash
Executable file

#!/bin/sh
set -eu
# Copy locales
mkdir -p "./client/dist"
rm -rf "./client/dist/locale"
cp -r "./client/src/locale" "./client/dist/locale"
rm -rf "./dist"
mkdir "./dist"
cp "./tsconfig.json" "./dist"
npm run tsc -- --incremental --sourceMap
cp -r ./server/static ./server/assets ./dist/server
NODE_ENV=test npm run concurrently -- -k \
"npm run nodemon -- --delay 1 --watch ./dist dist/server" \
"npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"