mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 05:32:49 +08:00
Webpack (#52)
See https://github.com/flarum/core/pull/1367 * Replace gulp with webpack and npm scripts for JS compilation * Set up Travis CI to commit compiled JS * Restructure `js` directory; only one instance of npm, forum/admin are "submodules" * Maintain partial compatibility API (importing from absolute paths) for extensions * Restructure `less` directory
This commit is contained in:
parent
3718d5dcec
commit
2c6a2b2d70
BIN
extensions/tags/.deploy.enc
Normal file
BIN
extensions/tags/.deploy.enc
Normal file
Binary file not shown.
2
extensions/tags/.gitattributes
vendored
2
extensions/tags/.gitattributes
vendored
|
@ -2,4 +2,4 @@
|
|||
.gitignore export-ignore
|
||||
.travis.yml export-ignore
|
||||
|
||||
js/*/dist/*.js -diff
|
||||
js/dist/* -diff
|
||||
|
|
2
extensions/tags/.gitignore
vendored
2
extensions/tags/.gitignore
vendored
|
@ -3,4 +3,4 @@ composer.phar
|
|||
.DS_Store
|
||||
Thumbs.db
|
||||
node_modules
|
||||
bower_components
|
||||
js/dist/*
|
||||
|
|
15
extensions/tags/.travis.yml
Normal file
15
extensions/tags/.travis.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
language: minimal
|
||||
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.npm
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: build
|
||||
if: branch = master AND type = push
|
||||
script: curl -s https://raw.githubusercontent.com/flarum/core/master/.travis/build.sh | bash -s -
|
||||
-k $encrypted_e0713a64e02e_key
|
||||
-i $encrypted_e0713a64e02e_iv
|
|
@ -18,22 +18,24 @@ use Illuminate\Contracts\Events\Dispatcher;
|
|||
|
||||
return [
|
||||
(new Extend\Assets('forum'))
|
||||
->asset(__DIR__.'/js/forum/dist/extension.js')
|
||||
->asset(__DIR__.'/less/forum/extension.less')
|
||||
->bootstrapper('flarum/tags/main'),
|
||||
->js(__DIR__.'/js/dist/forum.js')
|
||||
->asset(__DIR__.'/less/forum.less'),
|
||||
|
||||
(new Extend\Assets('admin'))
|
||||
->asset(__DIR__.'/js/admin/dist/extension.js')
|
||||
->asset(__DIR__.'/less/admin/extension.less')
|
||||
->bootstrapper('flarum/tags/main'),
|
||||
->js(__DIR__.'/js/dist/admin.js')
|
||||
->asset(__DIR__.'/less/admin.less'),
|
||||
|
||||
(new Extend\Routes('forum'))
|
||||
->get('/t/{slug}', 'tag', FrontendController::class)
|
||||
->get('/tags', 'tags', FrontendController::class),
|
||||
|
||||
(new Extend\Routes('api'))
|
||||
->get('/tags', 'tags.index', Controller\ListTagsController::class)
|
||||
->post('/tags', 'tags.create', Controller\CreateTagController::class)
|
||||
->post('/tags/order', 'tags.order', Controller\OrderTagsController::class)
|
||||
->patch('/tags/{id}', 'tags.update', Controller\UpdateTagController::class)
|
||||
->delete('/tags/{id}', 'tags.delete', Controller\DeleteTagController::class),
|
||||
|
||||
function (Dispatcher $events) {
|
||||
$events->subscribe(Listener\AddDiscussionTagsRelationship::class);
|
||||
$events->subscribe(Listener\AddForumTagsRelationship::class);
|
||||
|
|
11
extensions/tags/js/admin.js
Normal file
11
extensions/tags/js/admin.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* 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/common';
|
||||
export * from './src/admin';
|
|
@ -1,13 +0,0 @@
|
|||
var gulp = require('flarum-gulp');
|
||||
|
||||
gulp({
|
||||
files: [
|
||||
'bower_components/html.sortable/dist/html.sortable.js'
|
||||
],
|
||||
modules: {
|
||||
'flarum/tags': [
|
||||
'../lib/**/*.js',
|
||||
'src/**/*.js'
|
||||
]
|
||||
}
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "flarum-tags-admin",
|
||||
"devDependencies": {
|
||||
"html.sortable": "^0.2.9"
|
||||
}
|
||||
}
|
1406
extensions/tags/js/admin/dist/extension.js
vendored
1406
extensions/tags/js/admin/dist/extension.js
vendored
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"gulp": "^3.9.1",
|
||||
"flarum-gulp": "^0.2.0"
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import Tag from 'flarum/tags/models/Tag';
|
||||
import addTagsPermissionScope from 'flarum/tags/addTagsPermissionScope';
|
||||
import addTagPermission from 'flarum/tags/addTagPermission';
|
||||
import addTagsPane from 'flarum/tags/addTagsPane';
|
||||
import addTagsHomePageOption from 'flarum/tags/addTagsHomePageOption';
|
||||
import addTagChangePermission from 'flarum/tags/addTagChangePermission';
|
||||
|
||||
app.initializers.add('flarum-tags', app => {
|
||||
app.store.models.tags = Tag;
|
||||
|
||||
addTagsPermissionScope();
|
||||
addTagPermission();
|
||||
addTagsPane();
|
||||
addTagsHomePageOption();
|
||||
addTagChangePermission();
|
||||
});
|
2
extensions/tags/js/dist/admin.js
vendored
Normal file
2
extensions/tags/js/dist/admin.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
extensions/tags/js/dist/admin.js.map
vendored
Normal file
1
extensions/tags/js/dist/admin.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
extensions/tags/js/dist/forum.js
vendored
Normal file
2
extensions/tags/js/dist/forum.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
extensions/tags/js/dist/forum.js.map
vendored
Normal file
1
extensions/tags/js/dist/forum.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
11
extensions/tags/js/forum.js
Normal file
11
extensions/tags/js/forum.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* 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/common';
|
||||
export * from './src/forum';
|
|
@ -1,10 +0,0 @@
|
|||
var gulp = require('flarum-gulp');
|
||||
|
||||
gulp({
|
||||
modules: {
|
||||
'flarum/tags': [
|
||||
'../lib/**/*.js',
|
||||
'src/**/*.js'
|
||||
]
|
||||
}
|
||||
});
|
1370
extensions/tags/js/forum/dist/extension.js
vendored
1370
extensions/tags/js/forum/dist/extension.js
vendored
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"gulp": "^3.9.1",
|
||||
"flarum-gulp": "^0.2.0"
|
||||
}
|
||||
}
|
4708
extensions/tags/js/package-lock.json
generated
Normal file
4708
extensions/tags/js/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
extensions/tags/js/package.json
Normal file
14
extensions/tags/js/package.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "@flarum/flarum-ext-tags",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"flarum-webpack-config": "^0.1.0-beta.8",
|
||||
"html5sortable": "^0.2.0",
|
||||
"webpack": "^4.0.0",
|
||||
"webpack-cli": "^3.0.7"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "webpack --mode production",
|
||||
"watch": "webpack --mode development --watch"
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@ import { extend } from 'flarum/extend';
|
|||
import AdminNav from 'flarum/components/AdminNav';
|
||||
import AdminLinkButton from 'flarum/components/AdminLinkButton';
|
||||
|
||||
import TagsPage from 'flarum/tags/components/TagsPage';
|
||||
import TagsPage from './components/TagsPage';
|
||||
|
||||
export default function() {
|
||||
app.routes.tags = {path: '/tags', component: TagsPage.component()};
|
|
@ -4,9 +4,9 @@ import PermissionDropdown from 'flarum/components/PermissionDropdown';
|
|||
import Dropdown from 'flarum/components/Dropdown';
|
||||
import Button from 'flarum/components/Button';
|
||||
|
||||
import tagLabel from 'flarum/tags/helpers/tagLabel';
|
||||
import tagIcon from 'flarum/tags/helpers/tagIcon';
|
||||
import sortTags from 'flarum/tags/utils/sortTags';
|
||||
import tagLabel from '../common/helpers/tagLabel';
|
||||
import tagIcon from '../common/helpers/tagIcon';
|
||||
import sortTags from '../common/utils/sortTags';
|
||||
|
||||
export default function() {
|
||||
override(app, 'getRequiredPermissions', (original, permission) => {
|
21
extensions/tags/js/src/admin/compat.js
Normal file
21
extensions/tags/js/src/admin/compat.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import compat from '../common/compat';
|
||||
|
||||
import addTagsHomePageOption from './addTagsHomePageOption';
|
||||
import addTagChangePermission from './addTagChangePermission';
|
||||
import addTagsPane from './addTagsPane';
|
||||
import TagSettingsModal from './components/TagSettingsModal';
|
||||
import TagsPage from './components/TagsPage';
|
||||
import EditTagModal from './components/EditTagModal';
|
||||
import addTagPermission from './addTagPermission';
|
||||
import addTagsPermissionScope from './addTagsPermissionScope';
|
||||
|
||||
export default Object.assign(compat, {
|
||||
'addTagsHomePageOption': addTagsHomePageOption,
|
||||
'addTagChangePermission': addTagChangePermission,
|
||||
'addTagsPane': addTagsPane,
|
||||
'components/TagSettingsModal': TagSettingsModal,
|
||||
'components/TagsPage': TagsPage,
|
||||
'components/EditTagModal': EditTagModal,
|
||||
'addTagPermission': addTagPermission,
|
||||
'addTagsPermissionScope': addTagsPermissionScope,
|
||||
});
|
|
@ -2,7 +2,7 @@ import Modal from 'flarum/components/Modal';
|
|||
import Button from 'flarum/components/Button';
|
||||
import { slug } from 'flarum/utils/string';
|
||||
|
||||
import tagLabel from 'flarum/tags/helpers/tagLabel';
|
||||
import tagLabel from '../../common/helpers/tagLabel';
|
||||
|
||||
/**
|
||||
* The `EditTagModal` component shows a modal dialog which allows the user
|
|
@ -1,10 +1,12 @@
|
|||
import 'html5sortable';
|
||||
|
||||
import Page from 'flarum/components/Page';
|
||||
import Button from 'flarum/components/Button';
|
||||
|
||||
import EditTagModal from 'flarum/tags/components/EditTagModal';
|
||||
import TagSettingsModal from 'flarum/tags/components/TagSettingsModal';
|
||||
import tagIcon from 'flarum/tags/helpers/tagIcon';
|
||||
import sortTags from 'flarum/tags/utils/sortTags';
|
||||
import EditTagModal from './EditTagModal';
|
||||
import TagSettingsModal from './TagSettingsModal';
|
||||
import tagIcon from '../../common/helpers/tagIcon';
|
||||
import sortTags from '../../common/utils/sortTags';
|
||||
|
||||
function tagItem(tag) {
|
||||
return (
|
16
extensions/tags/js/src/admin/index.js
Normal file
16
extensions/tags/js/src/admin/index.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import Tag from '../common/models/Tag';
|
||||
import addTagsPermissionScope from './addTagsPermissionScope';
|
||||
import addTagPermission from './addTagPermission';
|
||||
import addTagsPane from './addTagsPane';
|
||||
import addTagsHomePageOption from './addTagsHomePageOption';
|
||||
import addTagChangePermission from './addTagChangePermission';
|
||||
|
||||
app.initializers.add('flarum-tags', app => {
|
||||
app.store.models.tags = Tag;
|
||||
|
||||
addTagsPermissionScope();
|
||||
addTagPermission();
|
||||
addTagsPane();
|
||||
addTagsHomePageOption();
|
||||
addTagChangePermission();
|
||||
});
|
13
extensions/tags/js/src/common/compat.js
Normal file
13
extensions/tags/js/src/common/compat.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import sortTags from './utils/sortTags';
|
||||
import Tag from './models/Tag';
|
||||
import tagsLabel from './helpers/tagsLabel';
|
||||
import tagIcon from './helpers/tagIcon';
|
||||
import tagLabel from './helpers/tagLabel';
|
||||
|
||||
export default {
|
||||
'tags/utils/sortTags': sortTags,
|
||||
'tags/models/Tag': Tag,
|
||||
'tags/helpers/tagsLabel': tagsLabel,
|
||||
'tags/helpers/tagIcon': tagIcon,
|
||||
'tags/helpers/tagLabel': tagLabel
|
||||
};
|
|
@ -1,6 +1,6 @@
|
|||
import extract from 'flarum/utils/extract';
|
||||
import tagLabel from 'flarum/tags/helpers/tagLabel';
|
||||
import sortTags from 'flarum/tags/utils/sortTags';
|
||||
import tagLabel from './tagLabel';
|
||||
import sortTags from '../utils/sortTags';
|
||||
|
||||
export default function tagsLabel(tags, attrs = {}) {
|
||||
const children = [];
|
0
extensions/tags/js/src/common/index.js
Normal file
0
extensions/tags/js/src/common/index.js
Normal file
|
@ -2,8 +2,8 @@ import { extend, override } from 'flarum/extend';
|
|||
import IndexPage from 'flarum/components/IndexPage';
|
||||
import DiscussionComposer from 'flarum/components/DiscussionComposer';
|
||||
|
||||
import TagDiscussionModal from 'flarum/tags/components/TagDiscussionModal';
|
||||
import tagsLabel from 'flarum/tags/helpers/tagsLabel';
|
||||
import TagDiscussionModal from './components/TagDiscussionModal';
|
||||
import tagsLabel from '../common/helpers/tagsLabel';
|
||||
|
||||
export default function() {
|
||||
extend(IndexPage.prototype, 'composeNewDiscussion', function(promise) {
|
|
@ -2,7 +2,7 @@ import { extend } from 'flarum/extend';
|
|||
import DiscussionControls from 'flarum/utils/DiscussionControls';
|
||||
import Button from 'flarum/components/Button';
|
||||
|
||||
import TagDiscussionModal from 'flarum/tags/components/TagDiscussionModal';
|
||||
import TagDiscussionModal from './components/TagDiscussionModal';
|
||||
|
||||
export default function() {
|
||||
// Add a control allowing the discussion to be moved to another category.
|
|
@ -2,7 +2,7 @@ import { extend, override } from 'flarum/extend';
|
|||
import IndexPage from 'flarum/components/IndexPage';
|
||||
import DiscussionList from 'flarum/components/DiscussionList';
|
||||
|
||||
import TagHero from 'flarum/tags/components/TagHero';
|
||||
import TagHero from './components/TagHero';
|
||||
|
||||
export default function() {
|
||||
IndexPage.prototype.currentTag = function() {
|
|
@ -3,8 +3,8 @@ import DiscussionListItem from 'flarum/components/DiscussionListItem';
|
|||
import DiscussionPage from 'flarum/components/DiscussionPage';
|
||||
import DiscussionHero from 'flarum/components/DiscussionHero';
|
||||
|
||||
import tagsLabel from 'flarum/tags/helpers/tagsLabel';
|
||||
import sortTags from 'flarum/tags/utils/sortTags';
|
||||
import tagsLabel from '../common/helpers/tagsLabel';
|
||||
import sortTags from '../common/utils/sortTags';
|
||||
|
||||
export default function() {
|
||||
// Add tag labels to each discussion in the discussion list.
|
|
@ -3,9 +3,9 @@ import IndexPage from 'flarum/components/IndexPage';
|
|||
import Separator from 'flarum/components/Separator';
|
||||
import LinkButton from 'flarum/components/LinkButton';
|
||||
|
||||
import TagLinkButton from 'flarum/tags/components/TagLinkButton';
|
||||
import TagsPage from 'flarum/tags/components/TagsPage';
|
||||
import sortTags from 'flarum/tags/utils/sortTags';
|
||||
import TagLinkButton from './components/TagLinkButton';
|
||||
import TagsPage from './components/TagsPage';
|
||||
import sortTags from '../common/utils/sortTags';
|
||||
|
||||
export default function() {
|
||||
// Add a link to the tags page, as well as a list of all the tags,
|
25
extensions/tags/js/src/forum/compat.js
Normal file
25
extensions/tags/js/src/forum/compat.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
import compat from '../common/compat';
|
||||
|
||||
import addTagFilter from './addTagFilter';
|
||||
import addTagControl from './addTagControl';
|
||||
import TagHero from './components/TagHero';
|
||||
import TagDiscussionModal from './components/TagDiscussionModal';
|
||||
import TagsPage from './components/TagsPage';
|
||||
import DiscussionTaggedPost from './components/DiscussionTaggedPost';
|
||||
import TagLinkButton from './components/TagLinkButton';
|
||||
import addTagList from './addTagList';
|
||||
import addTagLabels from './addTagLabels';
|
||||
import addTagComposer from './addTagComposer';
|
||||
|
||||
export default Object.assign(compat, {
|
||||
'addTagFilter': addTagFilter,
|
||||
'addTagControl': addTagControl,
|
||||
'components/TagHero': TagHero,
|
||||
'components/TagDiscussionModal': TagDiscussionModal,
|
||||
'components/TagsPage': TagsPage,
|
||||
'components/DiscussionTaggedPost': DiscussionTaggedPost,
|
||||
'components/TagLinkButton': TagLinkButton,
|
||||
'addTagList': addTagList,
|
||||
'addTagLabels': addTagLabels,
|
||||
'addTagComposer': addTagComposer,
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
import EventPost from 'flarum/components/EventPost';
|
||||
import tagsLabel from 'flarum/tags/helpers/tagsLabel';
|
||||
import tagsLabel from '../../common/helpers/tagsLabel';
|
||||
|
||||
export default class DiscussionTaggedPost extends EventPost {
|
||||
static initProps(props) {
|
|
@ -6,9 +6,9 @@ import classList from 'flarum/utils/classList';
|
|||
import extractText from 'flarum/utils/extractText';
|
||||
import KeyboardNavigatable from 'flarum/utils/KeyboardNavigatable';
|
||||
|
||||
import tagLabel from 'flarum/tags/helpers/tagLabel';
|
||||
import tagIcon from 'flarum/tags/helpers/tagIcon';
|
||||
import sortTags from 'flarum/tags/utils/sortTags';
|
||||
import tagLabel from '../../common/helpers/tagLabel';
|
||||
import tagIcon from '../../common/helpers/tagIcon';
|
||||
import sortTags from '../../common/utils/sortTags';
|
||||
|
||||
export default class TagDiscussionModal extends Modal {
|
||||
init() {
|
|
@ -1,5 +1,5 @@
|
|||
import LinkButton from 'flarum/components/LinkButton';
|
||||
import tagIcon from 'flarum/tags/helpers/tagIcon';
|
||||
import tagIcon from '../../common/helpers/tagIcon';
|
||||
|
||||
export default class TagLinkButton extends LinkButton {
|
||||
view() {
|
|
@ -3,8 +3,8 @@ import IndexPage from 'flarum/components/IndexPage';
|
|||
import listItems from 'flarum/helpers/listItems';
|
||||
import humanTime from 'flarum/helpers/humanTime';
|
||||
|
||||
import tagLabel from 'flarum/tags/helpers/tagLabel';
|
||||
import sortTags from 'flarum/tags/utils/sortTags';
|
||||
import tagLabel from '../../common/helpers/tagLabel';
|
||||
import sortTags from '../../common/utils/sortTags';
|
||||
|
||||
export default class TagsPage extends Page {
|
||||
init() {
|
|
@ -2,15 +2,15 @@ import Model from 'flarum/Model';
|
|||
import Discussion from 'flarum/models/Discussion';
|
||||
import IndexPage from 'flarum/components/IndexPage';
|
||||
|
||||
import Tag from 'flarum/tags/models/Tag';
|
||||
import TagsPage from 'flarum/tags/components/TagsPage';
|
||||
import DiscussionTaggedPost from 'flarum/tags/components/DiscussionTaggedPost';
|
||||
import Tag from '../common/models/Tag';
|
||||
import TagsPage from './components/TagsPage';
|
||||
import DiscussionTaggedPost from './components/DiscussionTaggedPost';
|
||||
|
||||
import addTagList from 'flarum/tags/addTagList';
|
||||
import addTagFilter from 'flarum/tags/addTagFilter';
|
||||
import addTagLabels from 'flarum/tags/addTagLabels';
|
||||
import addTagControl from 'flarum/tags/addTagControl';
|
||||
import addTagComposer from 'flarum/tags/addTagComposer';
|
||||
import addTagList from './addTagList';
|
||||
import addTagFilter from './addTagFilter';
|
||||
import addTagLabels from './addTagLabels';
|
||||
import addTagControl from './addTagControl';
|
||||
import addTagComposer from './addTagComposer';
|
||||
|
||||
app.initializers.add('flarum-tags', function(app) {
|
||||
app.routes.tags = {path: '/tags', component: TagsPage.component()};
|
||||
|
@ -31,3 +31,10 @@ app.initializers.add('flarum-tags', function(app) {
|
|||
addTagControl();
|
||||
addTagComposer();
|
||||
});
|
||||
|
||||
|
||||
// Expose compat API
|
||||
import tagsCompat from './compat';
|
||||
import { compat } from '@flarum/core/forum';
|
||||
|
||||
Object.assign(compat, tagsCompat);
|
3
extensions/tags/js/webpack.config.js
Executable file
3
extensions/tags/js/webpack.config.js
Executable file
|
@ -0,0 +1,3 @@
|
|||
const config = require('flarum-webpack-config');
|
||||
|
||||
module.exports = config();
|
11
extensions/tags/less/admin.less
Normal file
11
extensions/tags/less/admin.less
Normal file
|
@ -0,0 +1,11 @@
|
|||
@import "common/TagLabel";
|
||||
@import "common/TagIcon";
|
||||
|
||||
@import "admin/TagsPage";
|
||||
@import "admin/EditTagModal";
|
||||
@import "admin/TagSettingsModal";
|
||||
|
||||
.Dropdown--restrictByTag .Dropdown-menu {
|
||||
max-height: 400px;
|
||||
overflow: auto;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
@import "../lib/TagLabel.less";
|
||||
@import "../lib/TagIcon.less";
|
||||
|
||||
@import "TagsPage.less";
|
||||
@import "EditTagModal.less";
|
||||
@import "TagSettingsModal.less";
|
||||
|
||||
.Dropdown--restrictByTag .Dropdown-menu {
|
||||
max-height: 400px;
|
||||
overflow: auto;
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
@import "../lib/TagLabel.less";
|
||||
@import "../lib/TagIcon.less";
|
||||
@import "common/TagLabel";
|
||||
@import "common/TagIcon";
|
||||
|
||||
@import "TagCloud.less";
|
||||
@import "TagDiscussionModal.less";
|
||||
@import "TagTiles.less";
|
||||
@import "forum/TagCloud";
|
||||
@import "forum/TagDiscussionModal";
|
||||
@import "forum/TagTiles";
|
||||
|
||||
.DiscussionHero {
|
||||
.item-title {
|
|
@ -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