aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/dev/server.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-17 15:33:58 +0100
committerChocobozzz <me@florianbigard.com>2019-12-18 10:14:24 +0100
commitc026a2e67357bd4bd4fcc4c10f8c5cd4749435c9 (patch)
tree692d4f1b3b3dd68fc79cec4e3b5d1b93c72d037e /scripts/dev/server.sh
parent478924a044f6a7b0fb5156c3e4a0e8ef4ed30a4a (diff)
downloadPeerTube-c026a2e67357bd4bd4fcc4c10f8c5cd4749435c9.tar.gz
PeerTube-c026a2e67357bd4bd4fcc4c10f8c5cd4749435c9.tar.zst
PeerTube-c026a2e67357bd4bd4fcc4c10f8c5cd4749435c9.zip
Remove watch scripts
Diffstat (limited to 'scripts/dev/server.sh')
-rwxr-xr-xscripts/dev/server.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh
index beee5b8d4..a7fa88fbd 100755
--- a/scripts/dev/server.sh
+++ b/scripts/dev/server.sh
@@ -7,4 +7,19 @@ if [ ! -f "./client/dist/en-US/index.html" ]; then
7 npm run build:client -- --light 7 npm run build:client -- --light
8fi 8fi
9 9
10npm run watch:server 10# Copy locales
11mkdir -p "./client/dist"
12rm -rf "./client/dist/locale"
13cp -r "./client/src/locale" "./client/dist/locale"
14
15rm -rf "./dist"
16
17mkdir "./dist"
18cp "./tsconfig.json" "./dist"
19
20npm run tsc -- --incremental --sourceMap
21cp -r ./server/static ./server/assets ./dist/server
22
23NODE_ENV=test npm run concurrently -- -k \
24 "npm run nodemon -- --delay 1 --watch ./dist dist/server" \
25 "npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"