41 Commits

Author SHA1 Message Date
Jeff Williams
3e4e48accd attach inline type annotations to function params (#611)
includes a new Rhino jar: jsdoc3/rhino@bb2446ad
2014-03-30 22:01:04 -07:00
Jeff Williams
2c1d466b83 fix Rhino crash on EmptyStatement nodes (#597)
Rhino commit: jsdoc3/rhino@b5607c5e6f
2014-03-06 20:53:01 -08: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
0a05ede45c whitespace 2014-03-02 19:20:51 -08:00
Jeff Williams
80bd9e628f fix Rhino breakage on Windows (#533)
includes a new Rhino .jar:

https://github.com/jsdoc3/rhino/commit/0d8fe75b
2014-01-25 20:46:39 -08:00
Jeff Williams
6d83ffd060 the common prefix for one file is the file's dirname (#553) 2013-12-26 21:19:37 -08:00
Jeff Williams
3eca4516d0 more decrufting 2013-12-24 21:21:36 -08: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
cc238c1701 more fs module stubs 2013-12-24 14:50:53 -08:00
Jeff Williams
900f9f1216 add function names; cleanup 2013-12-24 12:49:30 -08:00
Jeff Williams
58292362b3 add function names; cleanup 2013-12-24 12:41:02 -08:00
Jeff Williams
c9b0237c12 overhaul logging and error handling (#416) 2013-12-23 15:25:28 -08:00
Jeff Williams
9b91c75b7d update Rhino to remove filename from __dirname and process.cwd()
https://github.com/jsdoc3/rhino/commit/1958e79f
2013-12-08 09:53:56 -08:00
Jeff Williams
262ccfdb04 upgrade Rhino to support submodules within submodules
https://github.com/jsdoc3/rhino/commit/87b9a700
2013-11-28 10:29:56 -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
e0df71b1ae fix various path-related issues on Windows
- add env.pwd global, and use it instead of process.env.PWD, which is
undefined in Node.js on Windows
- normalize paths where necessary
2013-11-10 16:57:48 -08:00
Jeff Williams
a21948c068 updated Rhino that can load modules from a path
thanks to this change, we can rip out some code that converts paths to
URIs and vice-versa.

https://github.com/jsdoc3/rhino/0f7750b1
2013-11-10 16:52:48 -08:00
Jeff Williams
8ba5919b77 resolve path before creating directory (#516) 2013-11-06 23:16:21 -08:00
Jeff Williams
99ab99298d add partial test infrastructure to support testing multiple parsers in one runtime
not fully implemented.
2013-11-04 06:46:47 -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
ce27f860aa update license info 2013-10-30 21:18:19 -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
Jeff Williams
751bea1b0a fixes for Node.js compatibility (see details)
- new Rhino .jar to help find module paths
(https://github.com/hegemonic/rhino/commit/31b70105)
- make __dirname and process.cwd() provide the current module path; use
only env.dirname for JSDoc's home dir; fix callers
- get rid of jsdoc/util/include (and update test framework accordingly)
- avoid running Rhino/Node.js tests on the wrong runtime
- remove support for global 'publish' function, which relied upon
jsdoc/util/include
- update jsdoc/util/dumper for consistency with Node.js'
JSON.stringify()
- fix jsdoc/util/runtime to detect Node.js correctly
- add Node.js versions of jsdoc/fs and jsdoc/path
- other minor cleanup
2013-10-25 23:30:56 -07:00
Jeff Williams
9745685dde make the fs.statSync shim throw an error (consistent with Node.js) 2013-10-23 09:32:20 -07:00
Jeff Williams
e7752cde18 Merge branch 'master' into parsimony
Conflicts:
	lib/jsdoc/name.js
	lib/jsdoc/src/handlers.js
	lib/jsdoc/src/parser.js
	lib/jsdoc/tag/dictionary/definitions.js
	lib/jsdoc/util/templateHelper.js
	package.json
	test/specs/documentation/alias.js
	test/specs/documentation/modules.js
	test/specs/tags/augmentstag.js
	test/specs/tags/overviewtag.js
2013-10-21 08:42:29 -07:00
Jeff Williams
735a9b790c esprima parser (currently disabled) 2013-10-21 08:02:03 -07:00
Jeff Williams
c8167b8d76 set Rhino shell's JS version to 180 (#477)
fixes a crash with JS 1.8 keywords (such as `let`)
2013-08-15 07:44:30 -07:00
Jeff Williams
c058a60ed1 hook up node visitors; gratuitous refactor of 'runtime' module (formerly 'vm'); move runtime-specific code
includes updated Rhino jar:
https://github.com/hegemonic/rhino/commit/b63c00d5
2013-07-05 09:11:27 -07:00
Jeff Williams
12cdd46dba update Rhino jar
adds the new class org.jsdoc.AstBuilder.

https://github.com/hegemonic/rhino/commit/305193a5
2013-06-23 09:18:36 -07:00
Jeff Williams
780637450c add async versions of Node.js fs/path methods
the methods are really asynchronous; the file I/O is not.
2013-05-03 08:42:41 -07:00
Jeff Williams
00b52df5b1 make '%j' work as expected in util.format, console.log, and so on 2013-04-19 15:56:49 -07:00
Jeff Williams
8c65d81e23 match Node.js' console.log/error/info/warn/trace; speed up -X option (#298) 2013-04-18 23:16:47 -07:00
Jeff Williams
a1799b6bbe fix error message when the 'encoding' parameter to fs.writeFileSync is omitted 2013-01-24 20:30:21 -08:00
Jeff Williams
ddb700e957 fix Windows bustage (#291) 2012-12-26 20:12:54 -08:00
Jeff Williams
d73570defc make fs module consistent with Node.js (#211) 2012-12-26 19:03:05 -08:00
Jeff Williams
b786527ea4 add mechanism for loading VM-specific functions (#289) 2012-12-26 11:56:33 -08:00
Jeff Williams
e4236eaa42 remove most globals from jsdoc.js (#287)
for clarity, also forward-declared all variables in main()
2012-12-25 04:55:50 -08:00
Jeff Williams
4e0e4c2b97 move Node.js shims to rhino/ 2012-12-23 10:38:25 -08:00
Jeff Williams
9af22fdc3f move lib/ to rhino/ (#210) 2012-12-23 09:51:58 -08:00