]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/watch/server.sh
Update nginx cipher to the one we use on framatube
[github/Chocobozzz/PeerTube.git] / scripts / watch / server.sh
CommitLineData
0e4ffb4b
LA
1#!/bin/sh
2
3set -eu
66dd264f 4
e945b184
C
5# Copy locales
6mkdir -p "./client/dist"
c0f713ce 7rm -rf "./client/dist/locale"
350131cb 8cp -r "./client/src/locale" "./client/dist/locale"
e945b184 9
2db85d6b 10rm -rf "./dist"
b18d4b9f 11
02e51e2d
C
12mkdir "./dist"
13cp "./tsconfig.json" "./dist"
14
df0fd904
C
15npm run tsc -- --incremental --sourceMap
16cp -r ./server/static ./server/assets ./dist/server
17
6cca7360 18NODE_ENV=test npm run concurrently -- -k \
df0fd904
C
19 "npm run nodemon -- --delay 1 --watch ./dist dist/server" \
20 "npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"