2020-02-19 02:57:32 -05:00
|
|
|
#!/bin/bash
|
2019-12-17 09:33:58 -05:00
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2023-08-17 03:24:45 -04:00
|
|
|
npm run build:server
|
|
|
|
|
|
|
|
# Angular does not support project references, it's the reason why we can't builds concurrently
|
2019-12-18 09:40:42 -05:00
|
|
|
if [ ! -z ${1+x} ]; then
|
2023-08-17 03:24:45 -04:00
|
|
|
npm run build:client -- $1
|
2019-12-18 05:01:59 -05:00
|
|
|
else
|
2023-08-17 03:24:45 -04:00
|
|
|
npm run build:client
|
2019-12-18 05:01:59 -05:00
|
|
|
fi
|