server.sh 357 B

1234567891011121314
  1. #!/bin/sh
  2. set -eu
  3. # Copy locales
  4. mkdir -p "./client/dist"
  5. rm -rf "./client/dist/locale"
  6. cp -r "./client/src/locale/target" "./client/dist/locale"
  7. rm -rf "./dist"
  8. NODE_ENV=test npm run concurrently -- -k \
  9. "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
  10. "npm run tsc -- --sourceMap --preserveWatchOutput -w"