Permalink
Browse files

CLI: Moved tsd-jsdoc to future cli package, see #716

  • Loading branch information...
dcodeIO committed Mar 27, 2017
1 parent f755d36 commit 29ce6cae0cacc0f1d87ca47e64be6a81325aaa55
@@ -11,7 +11,7 @@
"encoding" : "utf8",
"recurse" : true,
"lenient" : true,
"template" : "../lib/tsd-jsdoc",
"template" : "./tsd-jsdoc",
"private" : false,
"comments" : true,
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -96,9 +96,9 @@ exports.main = function(args, callback) {
function callJsdoc() {
// There is no proper API for jsdoc, so this executes the CLI and pipes the output
var basedir = path.join(__dirname, "..");
var basedir = path.join(__dirname, ".");
var moduleName = argv.name || "null";
var cmd = "node \"" + require.resolve("jsdoc/jsdoc.js") + "\" -c \"" + path.join(basedir, "config", "jsdoc-types.json") + "\" -q \"module=" + encodeURIComponent(moduleName) + "&comments=" + Boolean(argv.comments) + "\" " + files.map(function(file) { return "\"" + file + "\""; }).join(" ");
var cmd = "node \"" + require.resolve("jsdoc/jsdoc.js") + "\" -c \"" + path.join(basedir, "lib", "tsd-jsdoc.json") + "\" -q \"module=" + encodeURIComponent(moduleName) + "&comments=" + Boolean(argv.comments) + "\" " + files.map(function(file) { return "\"" + file + "\""; }).join(" ");
var child = child_process.exec(cmd, {
cwd: process.cwd(),
argv0: "node",
File renamed without changes.
@@ -29,7 +29,7 @@
"changelog": "node scripts/changelog -w",
"coverage": "istanbul --config=config/istanbul.json cover node_modules/tape/bin/tape tests/*.js tests/node/*.js",
"coverage-ci": "npm run coverage && codeclimate-test-reporter < coverage/lcov.info",
"docs": "jsdoc -c config/jsdoc-docs.json -R README.md --verbose --pedantic",
"docs": "jsdoc -c config/jsdoc.json -R README.md --verbose --pedantic",
"lint": "eslint **/*.js -c config/eslint.json && tslint **/*.d.ts -e **/node_modules/** -t stylish -c config/tslint.json",
"pages": "node scripts/pages",
"prepublish": "node scripts/prepublish",

0 comments on commit 29ce6ca

Please sign in to comment.