mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 08:52:34 +08:00
Restructure JS and LESS
This commit is contained in:
parent
d7191c19db
commit
ae31581450
|
@ -14,8 +14,8 @@ use s9e\TextFormatter\Configurator;
|
|||
|
||||
return [
|
||||
(new Extend\Assets('forum'))
|
||||
->js(__DIR__.'/js/forum/dist/main.js')
|
||||
->asset(__DIR__.'/less/forum/extension.less'),
|
||||
->js(__DIR__.'/js/dist/forum.js')
|
||||
->asset(__DIR__.'/less/forum.less'),
|
||||
|
||||
new Extend\FormatterConfiguration(function (Configurator $config) {
|
||||
$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
|
Loading…
Reference in New Issue
Block a user