Add compiled scripts

This commit is contained in:
Toby Zerner 2015-10-03 16:51:49 +09:30
parent e824f5ebf7
commit 0f57f27685
4 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,2 @@
bower_components
node_modules
dist

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +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}/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