]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - scripts/watch/server.sh
Make build works
[github/Chocobozzz/PeerTube.git] / scripts / watch / server.sh
... / ...
CommitLineData
1#!/bin/sh
2
3set -eu
4
5# Copy locales
6mkdir -p "./client/dist"
7rm -rf "./client/dist/locale"
8cp -r "./client/src/locale" "./client/dist/locale"
9
10rm -rf "./dist"
11
12mkdir "./dist"
13cp "./tsconfig.json" "./dist"
14
15NODE_ENV=test npm run concurrently -- -k \
16 "npm run tsc -- --sourceMap && cp -r ./server/static ./server/assets ./dist/server && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
17 "npm run tsc -- --sourceMap --preserveWatchOutput -w"