mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-25 20:36:17 +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 = self._createScm(scmParams);
|
||||||
|
|
||||||
|
scm.on('stdin', function(data) {
|
||||||
|
self.emit('data', '> ' + String(data));
|
||||||
|
});
|
||||||
|
|
||||||
if (isFirstRun) {
|
if (isFirstRun) {
|
||||||
this.pass(null);
|
this.pass(null);
|
||||||
} else {
|
} else {
|
||||||
|
@ -10,6 +10,8 @@ function Scm(params) {
|
|||||||
'`repository` or `cwd` must be set'
|
'`repository` or `cwd` must be set'
|
||||||
);
|
);
|
||||||
this.collectOut = true;
|
this.collectOut = true;
|
||||||
|
this.emitIn = true;
|
||||||
|
this.attachStderr = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Scm = Scm;
|
exports.Scm = Scm;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"nci": "bin/nci"
|
"nci": "bin/nci"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --bail --reporter=spec test/index",
|
"test": "mocha --bail --reporter=spec test/index --timeout 3000",
|
||||||
"dev": "gulp",
|
"dev": "gulp",
|
||||||
"sync": "npm install && npm prune && bower install && bower prune"
|
"sync": "npm install && npm prune && bower install && bower prune"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user