Skip to content

Commit

Permalink
CLI: Moved tsd-jsdoc to future cli package, see #716
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Mar 27, 2017
1 parent f755d36 commit 29ce6ca
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/jsdoc-types.json → cli/lib/tsd-jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"encoding" : "utf8",
"recurse" : true,
"lenient" : true,
"template" : "../lib/tsd-jsdoc",
"template" : "./tsd-jsdoc",

"private" : false,
"comments" : true,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions cli/pbts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 29ce6ca

Please sign in to comment.