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