18 Commits

Author SHA1 Message Date
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