Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
debugging pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartvds committed Jun 26, 2014
1 parent 4f170ab commit 41df364
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.idea
/.vagrant
/.grunt

/node_modules

Expand Down
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = function (grunt) {
options: {
repo: 'https://' + process.env.GH_TOKEN + '@github.com/DefinitelyTyped/docs.git',
message: 'publish (auto)' + getDeployMessage(),
silent: true,
silent: false,
user: {
name: 'dt-bot',
email: '[email protected]'
Expand All @@ -79,7 +79,7 @@ module.exports = function (grunt) {
var all = (process.env.TRAVIS === 'true');
runner.bulk('./repo', './docs', function(dir) {
if (all) {
return /^a/.test(dir) || /^j/.test(dir) || /^node/.test(dir);
return /^node/.test(dir);
}
return /^jquery\.d\.ts$/.test(path.basename(dir));
}).then(function(defs) {
Expand Down
10 changes: 8 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,14 @@ function bulk(dtPath, outDir, filter) {
];
var opts = {};
childProcess.exec(cmd.join(' '), opts, function (err, stdout, stderr) {
console.log(String(stdout));
console.log(String(stderr));
stdout = String(stdout).trim();
stderr = String(stderr).trim();
if (stdout) {
console.log(stdout);
}
if (stderr) {
console.log(stderr);
}
if (err) {
reject(err);
}
Expand Down

0 comments on commit 41df364

Please sign in to comment.