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:
|
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 \
|
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
|
jsdoc.js -T
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
@ -72,7 +72,7 @@ or the long form version:
|
|||||||
|
|
||||||
$ java -classpath lib/js.jar \
|
$ java -classpath lib/js.jar \
|
||||||
org.mozilla.javascript.tools.debugger.Main -debug \
|
org.mozilla.javascript.tools.debugger.Main -debug \
|
||||||
-modules node_modules -modules rhino_modules -modules . \
|
-modules nodejs_modules -modules rhino_modules -modules . \
|
||||||
jsdoc.js \
|
jsdoc.js \
|
||||||
your/script.js
|
your/script.js
|
||||||
|
|
||||||
|
|||||||
4
jsdoc
4
jsdoc
@ -25,9 +25,9 @@ fi
|
|||||||
if test "$1" = "-T"
|
if test "$1" = "-T"
|
||||||
then
|
then
|
||||||
echo "Running Tests"
|
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
|
else
|
||||||
# normal mode should be quiet
|
# 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
|
fi
|
||||||
|
|||||||
@ -36,10 +36,10 @@ IF [%1]==[--debug] (
|
|||||||
|
|
||||||
IF [%1]==[-T] (
|
IF [%1]==[-T] (
|
||||||
ECHO Running Tests
|
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 (
|
) ELSE (
|
||||||
REM normal mode should be quiet
|
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
|
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:
|
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 \
|
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
|
jsdoc.js -T
|
||||||
|
|
||||||
Writing Tests
|
Writing Tests
|
||||||
|
|||||||
@ -36,7 +36,7 @@ exports.load = function(loadpath, matcher, clear) {
|
|||||||
var file = path.join(env.dirname, loadpath, wannaBeSpecs[i]);
|
var file = path.join(env.dirname, loadpath, wannaBeSpecs[i]);
|
||||||
try {
|
try {
|
||||||
if (fs.statSync(file).isFile()) {
|
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));
|
specs.push(createSpecObj(file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user