From 9040a1a063095d5465a751bad5a85424f3be66b1 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 20 Oct 2015 22:54:32 -0400 Subject: [PATCH] concat minimize most common routes --- src/meta/js.js | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/meta/js.js b/src/meta/js.js index dd8c364924..ec00f5fb18 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -5,7 +5,6 @@ var winston = require('winston'), path = require('path'), async = require('async'), _ = require('underscore'), - os = require('os'), nconf = require('nconf'), fs = require('fs'), file = require('../file'), @@ -50,15 +49,32 @@ module.exports = function(Meta) { 'public/src/client/chats.js', 'public/src/client/infinitescroll.js', 'public/src/client/pagination.js', + 'public/src/client/recent.js', + 'public/src/client/unread.js', + 'public/src/client/topic.js', + 'public/src/client/topic/browsing.js', + 'public/src/client/topic/events.js', + 'public/src/client/topic/flag.js', + 'public/src/client/topic/fork.js', + 'public/src/client/topic/move.js', + 'public/src/client/topic/posts.js', + 'public/src/client/topic/postTools.js', + 'public/src/client/topic/threadTools.js', + 'public/src/client/categories.js', + 'public/src/client/category.js', + 'public/src/client/categoryTools.js', + 'public/src/modules/csrf.js', 'public/src/modules/translator.js', 'public/src/modules/notifications.js', 'public/src/modules/chat.js', 'public/src/modules/components.js', - 'public/src/modules/composer/formatting.js', - 'public/src/modules/composer/controls.js', - 'public/src/modules/composer/preview.js', - 'public/src/modules/categories.js', + 'public/src/modules/sort.js', + 'public/src/modules/navigator.js', + 'public/src/modules/topicSelect.js', + 'public/src/modules/share.js', + 'public/src/modules/search.js', + 'public/src/modules/alerts.js', 'public/src/modules/taskbar.js', 'public/src/modules/helpers.js', 'public/src/modules/sounds.js', @@ -72,8 +88,7 @@ module.exports = function(Meta) { async.apply(getPluginScripts), // plugin scripts via filter:scripts.get function(next) { // client scripts via "scripts" config in plugin.json var pluginsScripts = [], - pluginDirectories = [], - clientScripts = []; + pluginDirectories = []; pluginsScripts = plugins.clientScripts.filter(function(path) { if (path.endsWith('.js')) { @@ -268,4 +283,4 @@ module.exports = function(Meta) { callback(); }); } -}; \ No newline at end of file +};