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