May 11, 2010
building an JSDoc dummy file of Titanium Desktop API

  1. Follow “Building Titanium From Source” guide until last chapter (namely “Building and running”)
  2. Checkout version 1.0 because trunk doesn’t have bindings for Titanium.Filesystem:

    git checkout titanium_1.0.0; cd kroll; git checkout titanium_1.0.0; cd ..

  3. Run scons apicoverage; it will create build/linux/apicoverage.json (of course path is platform-specific)

  4. Download genapidoc.py (taken from mbirth’s wiki) and generate JSDoc-annotated dummy file by calling genapidoc.py > titanium.js in directory with apicoverage.json.
  5. You still have to fix some syntax errors in generated file. After correcting them you’ll get working autocompletion of Titanium Desktop API in your favorite IDE.

Enjoy!

Inspired by mbirth’s “Generate JSDoc file for your IDE” recipe for Titanium Mobile.

Liked posts on Tumblr: More liked posts »