aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/watch/server.sh
blob: f6721a18eaf1e520204ba53a5caba515d732dc4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -eu

# Copy locales
mkdir -p "./client/dist"
rm -rf "./client/dist/locale"
cp -r "./client/src/locale/target" "./client/dist/locale"

rm -rf "./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 --preserveWatchOutput -w"