]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/dev/server.sh
5 if [ ! -f "./client/dist/en-US/index.html" ]; then
6 if [ -z ${1+x} ] || [ "$1" != "--skip-client" ]; then
7 echo "client/dist/en-US/index.html does not exist, compile client files..."
13 mkdir -p "./client/dist"
14 rm -rf "./client/dist/locale"
15 cp -r "./client/src/locale" "./client/dist/locale"
17 mkdir -p "./dist/server/lib"
19 npm run tsc
-- -b -v --incremental
20 npm run resolve
-tspaths:server
22 cp -r .
/server
/static .
/server
/assets .
/dist
/server
23 cp -r "./server/lib/emails" "./dist/server/lib"
25 .
/node_modules
/.bin
/tsc
-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=dev node dist/server"'