35 Commits

Author SHA1 Message Date
Jeff Williams
7093310ac1 fix shells that don't support [[ … ]] pattern matching (#492) 2013-09-17 21:51:38 -07:00
Brian Donovan
79487b786a Account for relative jsdoc symlinks.
This happens when you install jsdoc via homebrew on Mac OS X. The jsdoc binary is actually a link to "../Cellar/jsdoc3/3.2.0/bin/jsdoc", which without this patch the BASEPATH line below tries to cd up a level from the current working directory and into a non-existent Cellar directory.
2013-09-17 11:36:07 -07:00
Jeff Williams
d27619be17 improve debug stack traces by disabling optimization 2013-08-04 12:14:00 -07:00
Jeff Williams
bd74965552 don't split quoted arguments on spaces (#397) 2013-04-15 15:28:48 -07:00
Jeff Williams
d5877c1217 move rhino_modules/ to lib/ 2012-12-23 14:09:37 -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
Jeff Williams
487ce7a8b9 move common files from nodejs_modules to rhino_modules; remove unused files; de-lint 2012-10-17 08:20:53 -07:00
Jeff Williams
8993be2049 start looking in node_modules for JS modules 2012-10-14 09:11:04 -07:00
Jeff Williams
0a199914a1 replace more syntax that makes the dash shell cranky (#187) 2012-09-21 09:14:47 -07:00
Jeff Williams
9f8f7bfba8 Replace syntax that makes the dash shell cranky (#184)
Thanks to http://www.dartmouth.edu/~rc/classes/ksh/flow-control-ex.html
for this monstrosity.
2012-09-21 08:19:09 -07:00
Bob Kerns
3bf586ab5f Make the tests work under Cygwin
Under Cygwin, we need to be a bit more aggressive with replacing \ with /
to avoid \ in URIs internally. This shows up when running the tests with -T,
but not when running files directly, for reasons I don't fully understand.

This patch replaces the previous replacement of \ => / with one that happens
earlier and applies to all references, not just the URIs we construct.

Cygwin now passes jsdoc -T from any directory.
2012-09-11 19:38:50 -07:00
Bob Kerns
c3f8dab0d5 Make the tests work when run from other directories. 2012-09-11 19:35:12 -07:00
Bob Kerns
d8d61ee2d6 Make jsdoc script work with MinGW and Cygwin
On MinGW and Cygwin, we have different representations for pathnames,
neither of which Rhino understands. We also have to contend with '\',
which is not a legal URI character.

And we have to supply a third / after file:// (two before the null
hostname, and one before the start of the absolute path). Since Windows
paths don't start with /, we have to supply it in that case.

We handle the MinGW and Cygwin cases by asking for the information with
'pwd -W' for MinGW and 'cygpath $(pwd)' for Cygwin, before finally
falling back to pwd for everyone else. Then, if they don't start with '/'
we supply the extra '/' for the URL.
2012-09-11 18:54:47 -07:00
Jeff Williams
a3bf78410b Merge pull request #166 from hegemonic/exports-publish 2012-08-22 08:57:58 -07:00
Jakob Heuser
d61259a90c attempt to make npm compatible paths by removing node_modules as a path... darn you npm 2012-08-15 11:09:58 -07:00
Michael Mathews
51e1a785f8 Rhino likes the filepaths (all args really) to be url encoded, which is an issue if spaces appear in filepaths. This makes JSDoc cooperate better with that rule. 2012-07-08 01:07:49 +01:00
Michael Mathews
901d17baa3 Small tweaks required to get ready for upgrade to rhino 1.7r4. 2012-07-04 23:53:19 +01:00
Michael Mathews
aad1a85ffd Added fix for spaced filepaths from @benblank windows cmd to the bash version. Closes Issue #130. 2012-06-27 22:10:11 +01:00
Ben Blank
e7dd88da46 restore parity between jsdoc and jsdoc.cmd 2012-06-16 11:56:03 -07:00
Michael Mathews
84f4e54c55 Running in normal mode should be quiet to allow results to be piped in to other processes. 2012-05-29 16:34:18 +01:00
Jannon
2d73440b3d Testing Framework Upgrade Part I
This first part of the testing framework upgrade:

- enhances the jsdoc script to allow switching to debug mode from the command line
- uses Jasmine to run tests
- adds flexibility to run tests from multiple root directories
- does automatic test discovery, so test files can just be created, dropped in an appropriate folder, and run without having to explicity add it to the test runner
- cleans up the test directory layout
- incorporates env.rhino.js which should make it easier to test templates
- is incomplete: this is just a savepoint.  About 1/3 of the tests have been converted.  The rest are still run through the old testrunner
2012-04-30 17:39:50 -07:00
Matthew Wardrop
87a7e9bd6f Make the jsdoc script set the paths correctly when executed via a symlink from some other directory. 2012-03-16 11:05:56 +11:00
Michael Mathews
b25a6acce3 Fix for issue that caused plugins to be unable to be required when using a relative path to jsdoc. (hattip kived) See #37. 2011-10-14 21:05:48 +01:00
Michael Mathews
729936316e Fix to filepath to jsdoc that should allow it to be run from a working directory outside the application root. 2011-10-13 23:31:57 +01:00
Michael Mathews
47518c3e0f Fixed incorrect code sample in README for running the debugger. Closes #42. 2011-10-08 10:23:31 +01:00
Michael Mathews
7d840bcaa3 The event namespace is now optional for symbols mentioned in @fires tags. Closes #40. 2011-10-07 20:42:23 +01:00
tschaub
71393844ad Use Rhino's require implementation. 2011-09-21 17:37:32 -06:00
Michael Mathews
dfe7474ece Inner functions are now tracked, same as inner vars. Fixes bug where some inner functions were not documented as members of their enclosing function. Closes #30. 2011-09-08 23:34:00 +01:00
Michael Mathews
90ac234799 Added some internal debugging features. FIX: Added initialiser for variable that sometimes caused an error to be thrown when it was undefined. Closes #24. 2011-08-30 08:41:41 +01:00
Michael Mathews
8799668ccf Added more nodejs compatible version of require(). 2011-06-17 21:06:37 +01:00
Michael Mathews
ee382cdad1 Removing my own jar file and just including rhino with updated instructions on how to run jsdoc via rhino directly, build script is no longer necessary. This should path issues reported on non *nix platforms. [closes #15] 2011-05-10 21:03:37 +01:00
Michael Mathews
a43ca23c24 Updated with usage notes. 2011-05-07 13:33:02 +01:00
Michael Mathews
37b9e2bf78 Added explicit classpath to the bash script. 2011-04-09 19:48:59 +02:00
Michael Mathews
8ff19e29b6 Moved mustache.js into modules. Added shell script to run jsdoc.jar. 2011-01-10 21:38:47 +00:00