initial commit
This commit is contained in:
21
node_modules/preprocess/benchmark/gruntMochaTestPreprocess.js
generated
vendored
Normal file
21
node_modules/preprocess/benchmark/gruntMochaTestPreprocess.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var spawn = require('child_process').spawn;
|
||||
|
||||
module.exports = {
|
||||
name: 'grunt mochaTest:preprocess',
|
||||
maxTime: 10,
|
||||
defer: true,
|
||||
fn: function(deferred) {
|
||||
var spawnGrunt = spawn(process.argv[0], [process.argv[1], 'mochaTest:preprocess']);
|
||||
|
||||
spawnGrunt.stderr.on('data', function(data) {
|
||||
deferred.resolve();
|
||||
throw new Error(data);
|
||||
});
|
||||
|
||||
spawnGrunt.on('exit', function() {
|
||||
deferred.resolve();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user