2068 Commits

Author SHA1 Message Date
Jeff Williams
b5a5d09e02 update Catharsis so type unions without parens can be parsed (#644) 2014-06-10 22:25:01 -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
9555f6c43f update Underscore.js dependency 2014-05-29 22:54:54 -04:00
Jeff Williams
57b562f1b4 clean up require() calls, plus some odds and ends
- hoist require() calls into module scope to make them more efficient
- move some constants from jsdoc/doclet to jsdoc/name for sanity, and to break a circular dependency
- in jsdoc/src/astnode, define the node properties all at once
- remove the gratuitous constant for the `undocumented` tag; we only use it once
- remove a bit of dead code
2014-05-29 22:42:27 -04:00
Jeff Williams
329db29c4f fix syntax for modules that export a single constructor (#655) 2014-05-29 18:51:36 -07:00
Jeff Williams
92515fa5b3 bump revision 2014-05-27 16:55:02 -07:00
Jeff Williams
5d308963e5 improve test coverage; remove unreachable code; other cleanup 2014-05-27 16:54:38 -07:00
Jeff Williams
43ebd95874 add tests for external tag 2014-05-23 13:29:52 -07:00
Jeff Williams
ff81796a71 create doclets for externals
Fixes a regression introduced by #537.
2014-05-22 17:35:45 -07:00
Jeff Williams
3e1d704eac bump revision; fix "gulp bump" task
note: "gulp bump" currently creates unnecessary whitespace diffs.
2014-05-21 22:53:36 -07:00
Jeff Williams
90b0d21633 improve test coverage 2014-05-21 22:46:47 -07:00
Jeff Williams
53479c10e8 make several methods chainable 2014-05-21 22:20:01 -07:00
Jeff Williams
5a34187ed7 switch from Grunt to gulp 2014-05-21 21:40:44 -07:00
Jeff Williams
1566421a62 give doclets a longname even if the name is empty (#643) 2014-04-26 10:57:10 -07:00
Jeff Williams
f635b10b6f fix comment-attachment issue (#638)
The issue in brief: Within an object literal, if a standalone comment was followed by a commented symbol, the symbol's comment would not be attached correctly.

The fix essentially reverts the changes for #565, which are no longer needed thanks to 50cd99fa2fca753fcf7c9ec3ecf70afd47168e94.

The fix also corrects the order in which we walk a MemberExpression's child nodes. Without this correction, comments would not be attached correctly inside CallExpression nodes.
2014-04-25 21:53:30 -07:00
Jeff Williams
51cc943183 delint 2014-04-19 17:21:37 -07:00
Jeff Williams
6c2d09120e Merge branch 'master' of github.com:shakefu/jsdoc into shakefu-master 2014-04-19 17:20:20 -07:00
Jeff Williams
073d7e83e3 enable ESLint space-infix-ops rule (and associated cleanup) 2014-04-19 11:04:53 -07:00
Jeff Williams
68a3be8937 enable ESLint eqeqeq rule (and associated cleanup) 2014-04-19 10:46:19 -07:00
Jeff Williams
db7e65deb1 enable ESLint quotes rule (and associated cleanup) 2014-04-19 10:44:07 -07:00
Jeff Williams
bce238bb51 replace JSHint with ESLint (and associated cleanup) 2014-04-19 10:38:02 -07:00
Jeff Williams
254dda50b1 show more info for Closure Compiler type expressions (#618) 2014-04-18 16:46:34 -07:00
Jeff Williams
cd9d7f90a7 change 'virtual' to 'abstract' in the template helper (#618) 2014-04-18 16:46:24 -07:00
shakefu
b10de12c2d Fix markup so tests pass. 2014-04-15 16:42:44 -07:00
shakefu
810ab1d58f Allow prettify to work on inline markdown code samples. 2014-04-15 16:31:44 -07:00
Jeff Williams
3d1c36a325 keep all type info for return and type tags (#618)
For consistency with method parameters, this change extends our unfortunate practice of adding type properties to the parent of the `type` object, rather than the object itself.
2014-04-15 09:26:19 -07:00
Jeff Williams
02f14958b1 cleanup 2014-04-15 09:06:16 -07:00
Jeff Williams
bb42bed7c8 DRY out; remove unnecessary TODOs 2014-04-14 17:34:00 -07:00
Jeff Williams
48fa2fd320 Merge pull request #634 from rassilon/issue-631
Fix issue #631: Virtual comments inside modules
2014-04-14 08:05:27 -07:00
Jeff Williams
9f7acb3018 Merge pull request #633 from joerixaop/master
Faster dumping with and without Harmony
2014-04-14 08:03:38 -07:00
Jeff Williams
c0215d129f update copyright notice 2014-04-14 07:47:06 -07:00
Bill Tutt
821156c01c Fix issue #631: virtual comments inside of modules aren't members of modules. 2014-04-13 20:28:20 -04:00
Joeri Samson
9ee72ec588 Faster dumping with and without Harmony
Replace an O(n^2) algorithm (indexOf + insert) * n with a much faster
algorithm, depending on what is supported by the JS engine.

I prefer the Set version as it is similar in spirit to the original
code and does not need to change the walked tree, but the flag setting
approach has the advantage that it works with current Node versions
without needing commandline flags.
2014-04-13 21:47:02 +02:00
Jeff Williams
bac1ea00fa Merge pull request #602 from popham/add-missing-mixins
Add "Mixins" to module view
2014-04-13 09:06:32 -07:00
Jeff Williams
f64b2f1797 bump revision 2014-04-13 08:37:12 -07:00
Jeff Williams
597a09dd76 on Windows, don't discard the symlink error (#519) 2014-04-13 08:36:51 -07:00
Jeff Williams
6480b96e7e log a warning if the type tag has a description (#615)
adds a `mustNotHaveDescription` property for tag definitions
2014-04-13 08:12:09 -07:00
Jeff Williams
3b45503625 log a warning if a tag has an extraneous value (#632) 2014-04-13 07:26:11 -07:00
Jeff Williams
7dfefd7910 simplify logic 2014-04-12 20:13:57 -07:00
Jeff Williams
97dc742654 update tv4 files 2014-04-12 20:13:46 -07:00
jeffwi
abe3fe2429 show the help if there are no input files (#609) 2014-04-10 09:17:35 -07:00
Jeff Williams
b7782fc151 Merge pull request #617 from cdparks/fix-excludes
Fix for #616, making excluded-filepaths play nicely with -r
2014-04-09 16:52:32 -07:00
jeffwi
933db9f032 handle Esprima parse errors more gracefully (#625) 2014-04-09 16:50:47 -07:00
Christopher D. Parks
40d5a352bb Adding test for fix
Without the fix, we get the following when running ./jsdoc -T:
    Failures:

    jsdoc/src/filter Filter isIncluded

      1) should be able to exclude descendants of excluded subdirectories
      Message:
        Expected 4 to be 2.
      Stacktrace:
        undefined

      2) should be able to exclude descendants of excluded subdirectories
      Message:
        Expected 1 to be -1.
      Stacktrace:
        undefined

      3) should be able to exclude descendants of excluded subdirectories
      Message:
        Expected 3 to be -1.
      Stacktrace:
        undefined

    Finished in 6.696 seconds
    849 tests, 2050 assertions, 3 failures

This test passes with the fix.
2014-04-07 10:44:21 -07:00
Jeff Williams
cd639a5c18 bump revision 2014-04-07 08:48:53 -07:00
Jeff Williams
62406412b6 walk children of ES6 nodes (#555)
For now, the node visitor discards these and logs a warning.
2014-04-07 08:47:51 -07:00
Jeff Williams
f454e8ad35 log warnings by default 2014-04-07 08:44:02 -07:00
Jeff Williams
8a2ca0f37a update Esprima
includes fixes for:
- https://code.google.com/p/esprima/issues/detail?id=526
- https://code.google.com/p/esprima/issues/detail?id=527
2014-04-07 08:43:36 -07:00