19 Commits

Author SHA1 Message Date
Jeff Williams
a097e2f299 get rid of jsdoc/util/runtime (#1383); delint 2017-07-05 22:57:11 -07:00
Chris Recher
632c2bb62b Remove dependence on fs-extra. 2016-09-30 13:56:04 -07:00
Björn Harrtell
5ca4590a9e Replace wrench with fs-extra 2016-03-31 21:41:52 +02:00
vvo
8799e898bf test(astnode.js): avoid skipping tests having node.js inside
This commit makes the test suite run test/specs/jsdoc/src/astnode.js

It was previously skipped because of the runtime being node and
astnode.js containing "node"..

I even wonder if its still relevant to try to support different
runtime, but that's for another PR I guess.
2016-01-05 17:28:58 +01: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
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
42e6822009 update JSON schema; validate doclets against schema (#327) 2013-12-03 16:45:36 -08: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
d73570defc make fs module consistent with Node.js (#211) 2012-12-26 19:03:05 -08:00
Jeff Williams
a17c90dfd2 deprecate env.dirname in favor of __dirname (#286)
plus some minor cleanup to address JSHint warnings
2012-12-23 09:45:11 -08:00
Jeff Williams
17d9a0f4a7 don't refuse to run tests when installed via npm 2012-10-17 09:17:35 -07: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
da0a55e577 update 'wrench' module; move to node_modules 2012-10-15 06:01:39 -07:00
Jeff Williams
e17601feb1 remove Envjs from test harness; remove broken --coffee option; add --nocolor option 2012-10-07 07:39:47 -07:00
Jeff Williams
d091675cfa make 'fs' and 'path' modules more consistent with Node.js 2012-08-19 15:25:02 -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
Jeff Williams
22e899fa9d change __dirname to env.dirname
this fixes a JSHint error that cannot be suppressed.
2012-07-03 17:37:17 -07: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