1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Remove watch scripts

This commit is contained in:
Chocobozzz 2019-12-17 15:33:58 +01:00
parent 478924a044
commit c026a2e673
No known key found for this signature in database
GPG key ID: 583A612D890159BE
10 changed files with 42 additions and 33 deletions

View file

@ -7,4 +7,19 @@ if [ ! -f "./client/dist/en-US/index.html" ]; then
npm run build:client -- --light
fi
npm run watch:server
# 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"