From 7a927fbe18f0c3eb38e18a107339e292781cb07c Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 2 Oct 2015 17:23:08 +0930 Subject: [PATCH] Add asset compilation script --- framework/core/scripts/compile.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 framework/core/scripts/compile.sh diff --git a/framework/core/scripts/compile.sh b/framework/core/scripts/compile.sh new file mode 100755 index 000000000..31f8c5c80 --- /dev/null +++ b/framework/core/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