1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 12:40:40 +02:00

Update for composer branch

This commit is contained in:
Toby Zerner
2015-10-13 12:29:22 +10:30
parent d76e27559e
commit d333a60aa4
18 changed files with 244 additions and 153 deletions

View File

@@ -1,13 +1,27 @@
#!/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
composer install --prefer-dist --optimize-autoloader --ignore-platform-reqs --no-dev
cd "${base}/js"
cd "${base}/js/forum"
npm install
gulp --production
if [ -f bower.json ]; then
bower install
fi
cd "${base}/js/admin"
npm install
gulp --production
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