fix callback
This commit is contained in:
parent
ef5e1e2707
commit
0f84fe2127
|
@ -47,7 +47,7 @@ module.exports = {
|
||||||
next(null, files);
|
next(null, files);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function setupGlobalNamespace(next) {
|
function setupGlobalNamespace(files, next) {
|
||||||
// TODO put default config
|
// TODO put default config
|
||||||
const test = new Test();
|
const test = new Test();
|
||||||
global.embark = test;
|
global.embark = test;
|
||||||
|
@ -78,7 +78,9 @@ module.exports = {
|
||||||
};
|
};
|
||||||
|
|
||||||
console.info('Compiling contracts'.cyan);
|
console.info('Compiling contracts'.cyan);
|
||||||
test.init(next);
|
test.init((err) => {
|
||||||
|
next(err, files);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
function executeForAllFiles(files, next) {
|
function executeForAllFiles(files, next) {
|
||||||
async.eachLimit(files, 1, (file, eachCb) => {
|
async.eachLimit(files, 1, (file, eachCb) => {
|
||||||
|
|
Loading…
Reference in New Issue