45 Commits

Author SHA1 Message Date
Jeff Williams
f31a011755 resolve the path to the JS config file before requiring it (#1386) 2017-07-09 12:18:22 -07:00
Jeff Williams
43a117d6a1 add recurseDepth config option (#1340) 2017-07-06 20:50:42 -07:00
Jeff Williams
15b57e52f3 overhaul ESLint config; delint 2017-07-05 21:05:52 -07:00
Jeff Williams
2aad297cdc support a JS config file (#1351)
Thanks to @BrandonOCasey for implementing this feature.
2017-07-03 17:00:19 -07:00
Hilmar Lapp
4a187da562 Fix directory name clashes with JSDoc plugin and template loading (#1308) 2017-07-03 16:41:18 -07:00
Jeff Williams
c34751e28b always call process.exit() (#1287) 2017-07-03 15:47:37 -07:00
Jeff Williams
7fd0f590ee don't crash on UTF-8 JSON files with a leading BOM (#1256, #1297) 2017-07-02 16:28:23 -07:00
Jeff Williams
8ad5ebab97 manually revert fix for #1081 (6be9dac616549ce226e4c0064876c7cb3b64fe25)
This fix caused #1259.
2016-09-09 16:21:43 -07:00
vvo
9eee32cd85 fix(lint): fix cli quotes
linting was failing
2016-01-05 17:05:19 +01:00
Ger Hobbelt
6be9dac616 fixing #1081:
- tightened-up detection of the correct path for the plugins by checking if the plugin file *itself* actually exists in the given path; it's done this way to cope with scenarios where JSDoc is executed in another project's working directory where *that* project has plugins of itself in a similar directory structure (`plugins/*`).

  We DO NOT change the search path used by JSDoc.

- ditto for templates: we know that a template MUST have a `publish.js` file at least, so we go and check if that one exists at the location where we would otherwise have assumed it does.
2015-12-07 16:24:41 -08:00
Jeff Williams
e2fd9e75de Merge pull request #1106 from tschaub/four
Remove Mozilla Rhino support
2015-11-02 15:52:35 -08:00
Alex Nicksay
27f592a356 Prevent output from being cut off in Node 4
This is a quick fix for truncated output in Node 4 by only calling
`process.exit` for errors.

Closes #1070
2015-11-01 19:26:10 -05:00
Tim Schaub
621f012211 Remove Rhino support 2015-10-30 13:11:43 -06:00
Alex Nicksay
13f09f397c Clean up space-after-keywords lint violations
This eliminates the following when running `gulp lint`:

> error  Keyword "catch" must be followed by whitespace

Closes #1083
2015-10-07 10:46:18 -04:00
Jeff Williams
93bd06c9e2 update gulp-eslint; delint 2015-08-13 16:23:19 -07:00
Jeff Williams
951e9ef881 remove printInfo callers (#812) 2015-03-15 16:55:50 -07:00
Alexandrine Boissière
0af05bea81 Add bluebird promises, make publish method work asynchronously if needed 2015-03-15 16:45:06 -07:00
Jeff Williams
8ea7078d39 modify dumper.dump() to support multiple arguments; only define the dump() global in debug mode (#812) 2015-02-18 17:24:02 -08:00
Jeff Williams
f9073e6361 turn app global into a module, and use the module instead of the global (#812)
The `app` global remains available, since templates and plugins may rely upon it, but it's deprecated as of JSDoc 3.4.0.
2015-02-18 09:27:40 -08:00
Jeff Williams
ae94af0cd8 turn env global into a module, and use the module instead of the global (#812)
The `env` global remains available, since templates and plugins may rely upon it, but it's deprecated as of JSDoc 3.4.0.
2015-02-17 19:07:10 -08:00
Jeff Williams
ef75f132b8 print the usage information if there's a bad command-line option (#840) 2014-12-18 16:09:28 -08:00
Jeff Williams
5fa636ab7b create doclets for mixed-in symbols (#378)
Also includes a fair amount of cleanup.
2014-12-07 11:05:56 -08:00
Jeff Williams
a2e119a88b update ESLint dependency; enable new rules; delint 2014-10-27 12:58:32 -07:00
Jeff Williams
c45fdaa0c3 allow any file to be used as a package or README file (#708) 2014-10-17 12:46:52 -07:00
Jeff Williams
8d36936454 remove dead code 2014-10-17 12:25:12 -07:00
MinHyeong Kim
ef70ffe2bd modify codes for @interface, @implements annotation. 2014-08-11 16:01:59 -07:00
Jeff Williams
1a15f92ea2 update Requizzle; remove workaround for jsdoc/package require issue (#662) 2014-06-11 09:18:53 -07:00
Jeff Williams
bbd06c4ff8 work around Requizzle bug (#662) 2014-06-10 09:34:51 -07:00
Jeff Williams
d4219bafad strip comments from the JSON config file (#660) 2014-06-09 20:36:38 -07:00
Jeff Williams
fd5ca944d2 abolish the post-install script and template/plugin copying (#519, #612)
JSDoc has a few requirements that are somewhat unusual for a Node.js app:

1. We need `require('jsdoc/foo')` to work from any module.
2. We need `require('jsdoc/foo')` to work from external code, such as templates and plugins.

Prior to this commit, JSDoc did two separate things to meet these requirements:

1. Use an npm post-install script to create a symlink from `lib/jsdoc` to `node_modules/jsdoc`.
2. When a user runs JSDoc, copy templates and plugins into the JSDoc directory.

These fixes worked, sort of. But they also caused numerous issues with file permissions, especially on Windows.

We now use the Requizzle module, which hacks the Node.js module system to support JSDoc's use cases. There's no longer a post-install script, and there's no need for a symlink in `node_modules`.
2014-06-09 17:27:06 -07:00
Jeff Williams
073d7e83e3 enable ESLint space-infix-ops rule (and associated cleanup) 2014-04-19 11:04:53 -07:00
Jeff Williams
bce238bb51 replace JSHint with ESLint (and associated cleanup) 2014-04-19 10:38:02 -07:00
jeffwi
abe3fe2429 show the help if there are no input files (#609) 2014-04-10 09:17:35 -07:00
Jeff Williams
49ad746e49 trailing whitespace cleanup 2014-03-04 13:47:57 -08:00
Jeff Williams
48e6c392d5 huge whitespace cleanup
- remove all trailing whitespace
- for consistency, replace all tabs with spaces
2014-03-03 07:43:01 -08:00
Jeff Williams
844fb2f47f improvements to logging code 2014-01-25 20:45:08 -08:00
Jan Kryl
469c764add fix jsdoc3/jsdoc#558 2014-01-07 10:30:29 -05:00
Jeff Williams
d29632364b remove URI-conversion and dirname-specification cruft
includes new Rhino .jar to allow module directories to be specified as paths:
https://github.com/jsdoc3/rhino/tree/5dd82a4c
2013-12-24 21:08:28 -08:00
Jeff Williams
6ca671434a support external templates/plugins on Node.js (#543) 2013-12-24 14:54:21 -08:00
Jeff Williams
ac11bb6e53 prevent double logging 2013-12-24 12:55:44 -08:00
Jeff Williams
c9b0237c12 overhaul logging and error handling (#416) 2013-12-23 15:25:28 -08:00
Jeff Williams
5a15c74177 make the -h/--help output look nicer 2013-11-24 21:41:26 -08:00
Jeff Williams
f55feb1a0e 'use strict'ify 2013-11-11 23:49:54 -08:00
Jeff Williams
f7256d8d07 make npm installs work correctly; misc cross-platform fixes; cleanup
includes new Rhino jar that strips hashbangs before execution:
https://github.com/jsdoc3/rhino/commit/95487737
2013-11-02 23:14:04 -07:00
Jeff Williams
de4297b20b refactor jsdoc.js; update Rhino
- Switched to a new Rhino fork: https://github.com/jsdoc3/rhino
  (currently reflects mozilla/rhino HEAD + enhancements for JSDoc)
- Removed jsdoc/util/global; new Rhino fork provides a `global` alias
  just like Node.js
- Moved most of jsdoc.js into cli.js, and refactored for clarity
2013-10-27 10:46:27 -07:00