fix eslint

v1.18.x
barisusakli 8 years ago
parent 5d4903f643
commit 51b41a9b44

@ -100,7 +100,7 @@ var middleware;
}); });
}, },
async.apply(Plugins.getPluginPaths), async.apply(Plugins.getPluginPaths),
function(paths, next) { function (paths, next) {
async.eachSeries(paths, Plugins.loadPlugin, next); async.eachSeries(paths, Plugins.loadPlugin, next);
}, },
function (next) { function (next) {

@ -41,14 +41,13 @@ module.exports = function (Plugins) {
Plugins.prepareForBuild = function (callback) { Plugins.prepareForBuild = function (callback) {
async.waterfall([ async.waterfall([
async.apply(Plugins.getPluginPaths), async.apply(Plugins.getPluginPaths),
function(paths, next) { function (paths, next) {
async.map(paths, function(path, next) { async.map(paths, function (path, next) {
Plugins.loadPluginInfo(path, next); Plugins.loadPluginInfo(path, next);
}, next); }, next);
}, },
function(plugins, next) { function (plugins, next) {
async.each(plugins, function(pluginData, next) { async.each(plugins, function (pluginData, next) {
var idx = plugins.indexOf(pluginData);
async.parallel([ async.parallel([
async.apply(mapFiles, pluginData, 'css', 'cssFiles'), async.apply(mapFiles, pluginData, 'css', 'cssFiles'),
async.apply(mapFiles, pluginData, 'less', 'lessFiles'), async.apply(mapFiles, pluginData, 'less', 'lessFiles'),

Loading…
Cancel
Save