diff --git a/scripts/compile.sh b/scripts/compile.sh new file mode 100755 index 000000000..31f8c5c80 --- /dev/null +++ b/scripts/compile.sh @@ -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