framework/extensions/sticky/scripts/compile.sh
Toby Zerner 37d7874705 Update for composer branch
Also remove sticky notification
2015-10-11 11:43:13 +10:30

28 lines
433 B
Bash
Executable File

#!/usr/bin/env bash
# This script compiles the extension so that it can be used in a Flarum
# installation. It should be run from the root directory of the extension.
base=$PWD
cd "${base}/js"
if [ -f bower.json ]; then
bower install
fi
for app in forum admin; do
cd "${base}/js"
if [ -d $app ]; then
cd $app
if [ -f bower.json ]; then
bower install
fi
npm install
gulp --production
fi
done