mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
async.apply
This commit is contained in:
@@ -100,9 +100,7 @@ function beforeBuild(targets, callback) {
|
|||||||
async.series([
|
async.series([
|
||||||
db.init,
|
db.init,
|
||||||
meta.themes.setupPaths,
|
meta.themes.setupPaths,
|
||||||
function (next) {
|
async.apply(plugins.prepareForBuild, targets),
|
||||||
plugins.prepareForBuild(targets, next);
|
|
||||||
},
|
|
||||||
], function (err) {
|
], function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
winston.error('[build] Encountered error preparing for build: ' + err.message);
|
winston.error('[build] Encountered error preparing for build: ' + err.message);
|
||||||
@@ -182,7 +180,9 @@ function build(targets, callback) {
|
|||||||
var startTime;
|
var startTime;
|
||||||
var totalTime;
|
var totalTime;
|
||||||
async.series([
|
async.series([
|
||||||
async.apply(beforeBuild, targets),
|
function (next) {
|
||||||
|
beforeBuild(targets, next);
|
||||||
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
var threads = parseInt(nconf.get('threads'), 10);
|
var threads = parseInt(nconf.get('threads'), 10);
|
||||||
if (threads) {
|
if (threads) {
|
||||||
|
|||||||
Reference in New Issue
Block a user