Restructure JS and LESS

This commit is contained in:
Toby Zerner 2018-06-17 14:53:35 +09:30
parent d7191c19db
commit ae31581450
13 changed files with 4726 additions and 7856 deletions

View File

@ -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();

View 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';

File diff suppressed because it is too large Load Diff

View File

@ -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

File diff suppressed because it is too large Load Diff

View 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"
}
}

View 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