]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/watch/server.sh
Merge branch 'weblate' into develop
[github/Chocobozzz/PeerTube.git] / scripts / watch / server.sh
index 9d4eb8e02f5c8b3e916d6510730214e6726d30e8..8d84709540f5e3914cda6491ae386943ff100c3b 100755 (executable)
@@ -5,8 +5,13 @@ set -eu
 # Copy locales
 mkdir -p "./client/dist"
 rm -rf "./client/dist/locale"
-cp -r "./client/src/locale/target" "./client/dist/locale"
+cp -r "./client/src/locale" "./client/dist/locale"
+
+rm -rf "./dist"
+
+mkdir "./dist"
+cp "./tsconfig.json" "./dist"
 
 NODE_ENV=test npm run concurrently -- -k \
-  "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
+  "npm run tsc -- --sourceMap && cp -r ./server/static ./server/assets ./dist/server && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
   "npm run tsc -- --sourceMap --preserveWatchOutput -w"