aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build/index.sh
blob: 31f2733c32a8432de512f9a369e925dfa197e974 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -eu

if [[ -n ${1+x} ]]; then
  clientCommand="npm run build:client -- $1"
else
  clientCommand="npm run build:client"
fi

npm run concurrently -- --raw \w
  "$clientCommand" \
  "npm run build:server"