mirror of
https://github.com/flarum/core.git
synced 2025-07-16 14:26:25 +02:00
Add asset compilation script
This commit is contained in:
17
scripts/compile.sh
Executable file
17
scripts/compile.sh
Executable 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
|
Reference in New Issue
Block a user