mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
Add compiled scripts
This commit is contained in:
1
extensions/tags/js/.gitignore
vendored
1
extensions/tags/js/.gitignore
vendored
@@ -1,3 +1,2 @@
|
|||||||
bower_components
|
bower_components
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
|
||||||
|
1
extensions/tags/js/admin/dist/extension.js
vendored
Normal file
1
extensions/tags/js/admin/dist/extension.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
extensions/tags/js/forum/dist/extension.js
vendored
Normal file
1
extensions/tags/js/forum/dist/extension.js
vendored
Normal file
File diff suppressed because one or more lines are too long
27
extensions/tags/scripts/compile.sh
Executable file
27
extensions/tags/scripts/compile.sh
Executable file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This script compiles the extension so that it can be used in a Flarum
|
||||||
|
# installation. It should be run from the root directory of the extension.
|
||||||
|
|
||||||
|
base=$PWD
|
||||||
|
|
||||||
|
cd "${base}/js"
|
||||||
|
|
||||||
|
if [ -f bower.json ]; then
|
||||||
|
bower install
|
||||||
|
fi
|
||||||
|
|
||||||
|
for app in forum admin; do
|
||||||
|
cd "${base}/js"
|
||||||
|
|
||||||
|
if [ -d $app ]; then
|
||||||
|
cd $app
|
||||||
|
|
||||||
|
if [ -f bower.json ]; then
|
||||||
|
bower install
|
||||||
|
fi
|
||||||
|
|
||||||
|
npm install
|
||||||
|
gulp --production
|
||||||
|
fi
|
||||||
|
done
|
Reference in New Issue
Block a user