mirror of
https://github.com/flarum/core.git
synced 2025-08-16 05:14:20 +02:00
Restructure JS and LESS
This commit is contained in:
@@ -14,8 +14,8 @@ use s9e\TextFormatter\Configurator;
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
(new Extend\Assets('forum'))
|
(new Extend\Assets('forum'))
|
||||||
->js(__DIR__.'/js/forum/dist/main.js')
|
->js(__DIR__.'/js/dist/forum.js')
|
||||||
->asset(__DIR__.'/less/forum/extension.less'),
|
->asset(__DIR__.'/less/forum.less'),
|
||||||
|
|
||||||
new Extend\FormatterConfiguration(function (Configurator $config) {
|
new Extend\FormatterConfiguration(function (Configurator $config) {
|
||||||
$config->Emoji->useEmojiOne();
|
$config->Emoji->useEmojiOne();
|
||||||
|
10
extensions/emoji/js/forum.js
Normal file
10
extensions/emoji/js/forum.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of Flarum.
|
||||||
|
*
|
||||||
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from './src/forum';
|
7816
extensions/emoji/js/forum/package-lock.json
generated
7816
extensions/emoji/js/forum/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@flarum/flarum-ext-emoji-forum",
|
|
||||||
"devDependencies": {
|
|
||||||
"flarum-webpack-config": "^0.1.0-beta.6",
|
|
||||||
"textarea-caret": "^3.1.0"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"watch": "node_modules/webpack/bin/webpack.js --mode development --watch",
|
|
||||||
"build": "node_modules/webpack/bin/webpack.js --mode production"
|
|
||||||
}
|
|
||||||
}
|
|
4700
extensions/emoji/js/package-lock.json
generated
Normal file
4700
extensions/emoji/js/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
extensions/emoji/js/package.json
Normal file
14
extensions/emoji/js/package.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "@flarum/flarum-ext-emoji",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"flarum-webpack-config": "^0.1.0-beta.8",
|
||||||
|
"textarea-caret": "^3.1.0",
|
||||||
|
"webpack": "^4.0.0",
|
||||||
|
"webpack-cli": "^3.0.7"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "webpack --mode production --progress",
|
||||||
|
"watch": "webpack --mode development --watch"
|
||||||
|
}
|
||||||
|
}
|
0
extensions/emoji/js/forum/webpack.config.js → extensions/emoji/js/webpack.config.js
Executable file → Normal file
0
extensions/emoji/js/forum/webpack.config.js → extensions/emoji/js/webpack.config.js
Executable file → Normal file
@@ -1,27 +0,0 @@
|
|||||||
#!/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