mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
attempt to make npm compatible paths by removing node_modules as a path... darn you npm
This commit is contained in:
parent
425e56f835
commit
d61259a90c
@ -24,7 +24,7 @@ and run the following command on Windows:
|
||||
If you can't get the short-form commands to work, try invoking Java directly:
|
||||
|
||||
java -cp lib/js.jar org.mozilla.javascript.tools.shell.Main \
|
||||
-modules node_modules -modules rhino_modules -modules . \
|
||||
-modules nodejs_modules -modules rhino_modules -modules . \
|
||||
jsdoc.js -T
|
||||
|
||||
Usage
|
||||
@ -72,7 +72,7 @@ or the long form version:
|
||||
|
||||
$ java -classpath lib/js.jar \
|
||||
org.mozilla.javascript.tools.debugger.Main -debug \
|
||||
-modules node_modules -modules rhino_modules -modules . \
|
||||
-modules nodejs_modules -modules rhino_modules -modules . \
|
||||
jsdoc.js \
|
||||
your/script.js
|
||||
|
||||
|
||||
4
jsdoc
4
jsdoc
@ -25,9 +25,9 @@ fi
|
||||
if test "$1" = "-T"
|
||||
then
|
||||
echo "Running Tests"
|
||||
java -classpath "${BASEPATH}/lib/js.jar" ${CMD} -opt -1 -modules "${URLPATH}/node_modules" -modules "${URLPATH}/rhino_modules" -modules "${URLPATH}" "${BASEPATH}/jsdoc.js" $ARGS --dirname="${BASEPATH}/"
|
||||
java -classpath "${BASEPATH}/lib/js.jar" ${CMD} -opt -1 -modules "${URLPATH}/nodejs_modules" -modules "${URLPATH}/rhino_modules" -modules "${URLPATH}" "${BASEPATH}/jsdoc.js" $ARGS --dirname="${BASEPATH}/"
|
||||
|
||||
else
|
||||
# normal mode should be quiet
|
||||
java -classpath "${BASEPATH}/lib/js.jar" ${CMD} -modules "${URLPATH}/node_modules" -modules "${URLPATH}/rhino_modules" -modules "${URLPATH}" "${BASEPATH}/jsdoc.js" $ARGS --dirname="${BASEPATH}/"
|
||||
java -classpath "${BASEPATH}/lib/js.jar" ${CMD} -modules "${URLPATH}/nodejs_modules" -modules "${URLPATH}/rhino_modules" -modules "${URLPATH}" "${BASEPATH}/jsdoc.js" $ARGS --dirname="${BASEPATH}/"
|
||||
fi
|
||||
|
||||
@ -36,10 +36,10 @@ IF [%1]==[--debug] (
|
||||
|
||||
IF [%1]==[-T] (
|
||||
ECHO Running Tests
|
||||
java -classpath "%_BASEPATH%/lib/js.jar" %CMD% -opt -1 -modules "%_URLPATH%/node_modules" -modules "%_URLPATH%/rhino_modules" -modules "%_URLPATH%" "%_BASEPATH%/jsdoc.js" %ARGS% --dirname="%_BASEPATH%/
|
||||
java -classpath "%_BASEPATH%/lib/js.jar" %CMD% -opt -1 -modules "%_URLPATH%/nodejs_modules" -modules "%_URLPATH%/rhino_modules" -modules "%_URLPATH%" "%_BASEPATH%/jsdoc.js" %ARGS% --dirname="%_BASEPATH%/
|
||||
) ELSE (
|
||||
REM normal mode should be quiet
|
||||
java -classpath "%_BASEPATH%/lib/js.jar" %CMD% -modules "%_URLPATH%/node_modules" -modules "%_URLPATH%/rhino_modules" -modules "%_URLPATH%" "%_BASEPATH%/jsdoc.js" %ARGS% --dirname="%_BASEPATH%/
|
||||
java -classpath "%_BASEPATH%/lib/js.jar" %CMD% -modules "%_URLPATH%/nodejs_modules" -modules "%_URLPATH%/rhino_modules" -modules "%_URLPATH%" "%_BASEPATH%/jsdoc.js" %ARGS% --dirname="%_BASEPATH%/
|
||||
)
|
||||
|
||||
ENDLOCAL
|
||||
|
||||
@ -16,7 +16,7 @@ and run the following command on Windows:
|
||||
If you can't get the short-form commands to work, try invoking Java directly:
|
||||
|
||||
java -cp lib/js.jar org.mozilla.javascript.tools.shell.Main -opt -1 \
|
||||
-modules node_modules -modules rhino_modules -modules . \
|
||||
-modules nodejs_modules -modules rhino_modules -modules . \
|
||||
jsdoc.js -T
|
||||
|
||||
Writing Tests
|
||||
|
||||
@ -36,7 +36,7 @@ exports.load = function(loadpath, matcher, clear) {
|
||||
var file = path.join(env.dirname, loadpath, wannaBeSpecs[i]);
|
||||
try {
|
||||
if (fs.statSync(file).isFile()) {
|
||||
if (!/.*node_modules.*/.test(file) && matcher.test(path.filename(file))) {
|
||||
if (!/.*nodejs_modules.*/.test(file) && matcher.test(path.filename(file))) {
|
||||
specs.push(createSpecObj(file));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user