client.sh 463 B

12345678910111213141516
  1. #!/bin/sh
  2. set -eu
  3. clientCommand="cd client && node node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration hmr --host 0.0.0.0 --disable-host-check --port 3000"
  4. serverCommand="npm run build:server && NODE_ENV=test node dist/server"
  5. if [ ! -z ${1+x} ] && [ "$1" == "--skip-server" ]; then
  6. NODE_ENV=test eval $clientCommand
  7. else
  8. NODE_ENV=test node node_modules/.bin/concurrently -k \
  9. "$clientCommand" \
  10. "$serverCommand"
  11. fi