Federated video streaming platform using ActivityPub and P2P in the web browser with Angular. https://joinpeertube.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
720 B

  1. #!/bin/bash
  2. set -eu
  3. if [ ! -f "./client/dist/en-US/index.html" ]; then
  4. if [ -z ${1+x} ] || [ "$1" != "--skip-client" ]; then
  5. echo "client/dist/en-US/index.html does not exist, compile client files..."
  6. npm run build:client
  7. fi
  8. fi
  9. # Copy locales
  10. mkdir -p "./client/dist"
  11. rm -rf "./client/dist/locale"
  12. cp -r "./client/src/locale" "./client/dist/locale"
  13. mkdir -p "./dist/server/lib"
  14. npm run tsc -- -b -v --incremental
  15. npm run resolve-tspaths:server
  16. cp -r ./server/static ./server/assets ./dist/server
  17. cp -r "./server/lib/emails" "./dist/server/lib"
  18. ./node_modules/.bin/tsc-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=test node dist/server"'