mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 04:45:07 +00:00
log smv in to console, attach scm stderr to error
This commit is contained in:
parent
a6c88f2aca
commit
cfe9c682ae
@ -41,6 +41,10 @@ Executor.prototype._getSources = function(params, callback) {
|
||||
}
|
||||
scm = self._createScm(scmParams);
|
||||
|
||||
scm.on('stdin', function(data) {
|
||||
self.emit('data', '> ' + String(data));
|
||||
});
|
||||
|
||||
if (isFirstRun) {
|
||||
this.pass(null);
|
||||
} else {
|
||||
|
@ -10,6 +10,8 @@ function Scm(params) {
|
||||
'`repository` or `cwd` must be set'
|
||||
);
|
||||
this.collectOut = true;
|
||||
this.emitIn = true;
|
||||
this.attachStderr = true;
|
||||
}
|
||||
|
||||
exports.Scm = Scm;
|
||||
|
@ -6,7 +6,7 @@
|
||||
"nci": "bin/nci"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha --bail --reporter=spec test/index",
|
||||
"test": "mocha --bail --reporter=spec test/index --timeout 3000",
|
||||
"dev": "gulp",
|
||||
"sync": "npm install && npm prune && bower install && bower prune"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user