26 lines
481 B
Bash
Executable file
26 lines
481 B
Bash
Executable file
#!/bin/sh
|
|
. bin/lilarc
|
|
|
|
target=${1-dev}
|
|
|
|
mkdir -p public/compiled
|
|
|
|
apps="learn challenge insight editor puzzle round analyse lobby tournament tournamentSchedule simul perfStat notify chat"
|
|
|
|
prll_sh=/etc/profile.d/prll.sh
|
|
|
|
build() {
|
|
app=$1
|
|
echo "Building $app"
|
|
cd ui/$app
|
|
npm install --no-optional && gulp $target
|
|
cd -
|
|
}
|
|
|
|
if [ -f $prll_sh ]; then # parallel execution!
|
|
. $prll_sh
|
|
prll build $apps
|
|
else # sequential execution
|
|
for app in $apps; do build $app; done
|
|
fi
|