1
0
Fork 0
peertube/scripts/watch/server.sh

13 lines
340 B
Bash
Raw Normal View History

2018-03-27 04:35:12 -04:00
#!/bin/sh
set -eu
2017-06-11 05:29:03 -04:00
2018-06-06 08:23:40 -04:00
# Copy locales
mkdir -p "./client/dist"
2018-06-08 05:36:50 -04:00
rm -rf "./client/dist/locale"
2018-06-06 08:23:40 -04:00
cp -r "./client/src/locale/target" "./client/dist/locale"
2018-06-07 10:50:33 -04:00
NODE_ENV=test npm run concurrently -- -k \
2017-06-11 05:29:03 -04:00
"npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
2018-04-17 04:35:08 -04:00
"npm run tsc -- --sourceMap --preserveWatchOutput -w"