Skip to content

Instantly share code, notes, and snippets.

@ericpony
Forked from darcyparker/jsctags.cmd
Last active August 29, 2015 14:13
Show Gist options
  • Save ericpony/503c5328a871c704701d to your computer and use it in GitHub Desktop.
Save ericpony/503c5328a871c704701d to your computer and use it in GitHub Desktop.
@echo off
REM Windows batch file to run jsctags
REM
REM Assumes node.exe is in your %PATH%.
REM git clone --recursive git://github.com/mozilla/doctorjs.git d:\opt\doctorjs
REM Note: Currently, the latest jsctags only works with older versions of node
REM To manage multiple versions of node on the same machine, use `n`.
REM `npm install -g n`
REM
REM Alternatively:
REM A patch to allow jsctags to work with node 0.10.x again is here but has not
REM been pulled into master by mozilla yet.
REM git://github.com/tow8ie/doctorjs.git
REM git checkout nodejs-0.10.x-compatibility:
setlocal
set NODE_PATH=C:\Portable\DoctorJS\lib\jsctags;%NODE_PATH%
REM n use 0.8.22 "D:\opt\doctorjs\bin\jsctags.js" %*
node "C:\Portable\doctorjs\bin\jsctags.js" %*
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment