From 9e91ada4a89557c128779967ec736e12f735f7e0 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 --- scripts/compile.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/compile.sh 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