Merge pull request #4442 from tschaub/new-jsdoc

Use jsdoc@3.4.0.
This commit is contained in:
Tim Schaub
2015-11-18 09:27:21 -07:00
6 changed files with 19 additions and 26 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
] ]
}, },
"plugins": [ "plugins": [
"node_modules/jsdoc-fork/plugins/markdown", "node_modules/jsdoc/plugins/markdown",
"config/jsdoc/api/plugins/inheritdoc", "config/jsdoc/api/plugins/inheritdoc",
"config/jsdoc/api/plugins/typedefs", "config/jsdoc/api/plugins/typedefs",
"config/jsdoc/api/plugins/events", "config/jsdoc/api/plugins/events",
+1 -1
View File
@@ -16,7 +16,7 @@ exports.defineTags = function(dictionary) {
doclet.stability = level; doclet.stability = level;
} else { } else {
var errorText = util.format('Invalid stability level (%s) in %s line %s', tag.text, doclet.meta.filename, doclet.meta.lineno); var errorText = util.format('Invalid stability level (%s) in %s line %s', tag.text, doclet.meta.filename, doclet.meta.lineno);
require('jsdoc-fork/lib/jsdoc/util/error').handle( new Error(errorText) ); require('jsdoc/lib/jsdoc/util/error').handle( new Error(errorText) );
} }
} }
}); });
+7 -7
View File
@@ -1,10 +1,10 @@
/*global env: true */ /*global env: true */
var template = require('jsdoc-fork/lib/jsdoc/template'), var template = require('jsdoc/lib/jsdoc/template'),
fs = require('jsdoc-fork/lib/jsdoc/fs'), fs = require('jsdoc/lib/jsdoc/fs'),
path = require('jsdoc-fork/lib/jsdoc/path'), path = require('jsdoc/lib/jsdoc/path'),
taffy = require('taffydb').taffy, taffy = require('taffydb').taffy,
handle = require('jsdoc-fork/lib/jsdoc/util/error').handle, handle = require('jsdoc/lib/jsdoc/util/error').handle,
helper = require('jsdoc-fork/lib/jsdoc/util/templateHelper'), helper = require('jsdoc/lib/jsdoc/util/templateHelper'),
_ = require('underscore'), _ = require('underscore'),
htmlsafe = helper.htmlsafe, htmlsafe = helper.htmlsafe,
linkto = helper.linkto, linkto = helper.linkto,
@@ -350,8 +350,8 @@ exports.publish = function(taffyData, opts, tutorials) {
var staticFileScanner; var staticFileScanner;
if (conf['default'].staticFiles) { if (conf['default'].staticFiles) {
staticFilePaths = conf['default'].staticFiles.paths || []; staticFilePaths = conf['default'].staticFiles.paths || [];
staticFileFilter = new (require('jsdoc-fork/lib/jsdoc/src/filter')).Filter(conf['default'].staticFiles); staticFileFilter = new (require('jsdoc/lib/jsdoc/src/filter')).Filter(conf['default'].staticFiles);
staticFileScanner = new (require('jsdoc-fork/lib/jsdoc/src/scanner')).Scanner(); staticFileScanner = new (require('jsdoc/lib/jsdoc/src/scanner')).Scanner();
staticFilePaths.forEach(function(filePath) { staticFilePaths.forEach(function(filePath) {
var extraStaticFiles = staticFileScanner.scan([filePath], 10, staticFileFilter); var extraStaticFiles = staticFileScanner.scan([filePath], 10, staticFileFilter);
+8 -14
View File
@@ -6,8 +6,6 @@ var assert = require('assert');
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var Promise = require('bluebird');
/** /**
* Publish hook for the JSDoc template. Writes to JSON stdout. * Publish hook for the JSDoc template. Writes to JSON stdout.
@@ -171,17 +169,13 @@ exports.publish = function(data, opts) {
return (symbol.name in augments || symbol.virtual); return (symbol.name in augments || symbol.virtual);
}); });
return new Promise(function(resolve, reject) { process.stdout.write(
JSON.stringify({
process.stdout.write( symbols: symbols,
JSON.stringify({ defines: defines,
symbols: symbols, typedefs: typedefs,
defines: defines, externs: externs,
typedefs: typedefs, base: base
externs: externs, }, null, 2));
base: base
}, null, 2), resolve);
});
}; };
+1 -2
View File
@@ -30,7 +30,6 @@
], ],
"dependencies": { "dependencies": {
"async": "1.5.0", "async": "1.5.0",
"bluebird": "^3.0.5",
"browserify": "12.0.1", "browserify": "12.0.1",
"closure-util": "1.9.0", "closure-util": "1.9.0",
"derequire": "2.0.3", "derequire": "2.0.3",
@@ -38,7 +37,7 @@
"glob": "6.0.1", "glob": "6.0.1",
"graceful-fs": "4.1.2", "graceful-fs": "4.1.2",
"handlebars": "4.0.4", "handlebars": "4.0.4",
"jsdoc-fork": "^4.0.0-beta.1", "jsdoc": "3.4.0",
"marked": "0.3.5", "marked": "0.3.5",
"metalsmith": "2.1.0", "metalsmith": "2.1.0",
"metalsmith-layouts": "1.4.2", "metalsmith-layouts": "1.4.2",
+1 -1
View File
@@ -15,7 +15,7 @@ var externsPaths = [
]; ];
var infoPath = path.join(__dirname, '..', 'build', 'info.json'); var infoPath = path.join(__dirname, '..', 'build', 'info.json');
var jsdocResolved = require.resolve('jsdoc-fork/jsdoc.js'); var jsdocResolved = require.resolve('jsdoc/jsdoc.js');
var jsdoc = path.resolve(path.dirname(jsdocResolved), '../.bin/jsdoc'); var jsdoc = path.resolve(path.dirname(jsdocResolved), '../.bin/jsdoc');
// on Windows, use jsdoc.cmd // on Windows, use jsdoc.cmd