Thursday, 15 January 2015

JSDuck Installation for MAC

Steps to install JSDuck:

1. You need a C/C++ compiler in your system to compile some of the JSDuck dependencies. The simplest route is to install the Xcode command line tools from App store (you don't need the full Xcode (version> 4.6.2), just command line tools will suffice). Or you could try installing GCC instead.

2. Install Ruby from terminal using command:
\curl -L https://get.rvm.io | bash -s stable
source /Users/<username>/.rvm/scripts/rvm
rvm install 1.9.3 --with-gcc=gcc
sudo gem install compass
sudo gem install rdiscount
sudo gem install json
sudo easy_install pyyaml
sudo easy_install pygments

3. Install jsDuck from terminal using command:
sudo gem install jsduck

4. To run:
Goto the project directory www folder in terminal & type
jsduck js --output=apidocs

No comments: