PeerTube/scripts/watch/server.sh

18 lines
458 B
Bash
Raw Normal View History

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