mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:11:40 +08:00
Add asset compilation script
This commit is contained in:
parent
4e5b3099f8
commit
9e91ada4a8
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
|
Loading…
x
Reference in New Issue
Block a user