PeerTube/scripts/build/index.sh

13 lines
225 B
Bash
Raw Normal View History

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