Add asset compilation script

This commit is contained in:
Toby Zerner 2015-10-02 17:23:08 +09:30
parent 4e5b3099f8
commit 9e91ada4a8

17
scripts/compile.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# This script compiles Flarum's core assets so that they can be used in-browser.
# It should be run from the root directory of the core.
base=$PWD
cd "${base}/js"
bower install
cd "${base}/js/forum"
npm install
gulp --production
cd "${base}/js/admin"
npm install
gulp --production