jsduck2jsx
v0.1.1
Published
Generate JSX wrapper from JSDuck output files
Downloads
12
Readme
jsduck2jsx
Synopsis
Generate JSX wrapper from JSDuck output files.
Motivation
It generates JSX wrapper from existing code. If your code using jsduck to generate document, you can use your module from JSX easily.
Installation
It needs JSDuck to generate JSON style output.
$ gem jsduck
$ npm install jsduck2jsxUsage
Sencha Touch
$ jsduck --export=full --output st_jsonout touch-2.3.0/src/
$ node_modules/.bin/jsduck2jsx -o sencha-touch.jsx -f "Ext*" -i js/web.jsx -t /node_modules/jsduck2jsx/share/senchatouch_type.json st_jsonoutYou can use following shortcut. Resulting file will be in the lib folder:
# Use pregenerated JSON
$ node_modules/.bin/jsduck2jsx --sencha-touch
# Use your own JSON
$ node_modules/.bin/jsduck2jsx --sencha-touch st_jsonoutExt.js
$ jsduck --export=full --output ej_jsonout ext-4.2.1/src/
$ node_modules/.bin/jsduck2jsx -o ext.jsx -f "Ext*" -i js/web.jsx -t /node_modules/jsduck2jsx/share/extjs_type.json ej_jsonoutYou can use following shortcut. Resulting file will be in the lib folder:
# Use pregenerated JSON
$ node_modules/.bin/jsduck2jsx --extjs
# Use your own JSON
$ node_modules/.bin/jsduck2jsx --extjs st_jsonoutOptions
-o filepath,--output=filepathOutput JSX file path
-f filter,--filter=filterFile name filter
-i modulepath,--import=modulepathAdditional needed JSX module.
-t jsonpath,--type=jsonpathAdditional type information.
-h,--helpDisplay help
Shortcut
--sencha-touch--extjs
Development
Repository
- Repository: git://github.com/shibukawa/jsduck2jsx.git
- Issues: https://github.com/shibukawa/jsduck2jsx/issues
Run Test
$ grunt testBuild
# Build application or library for JS project
$ grunt build
# Generate API reference
$ grunt doc
Author
- shibukawa / [email protected]
License
MIT
Complete license is written in LICENSE.md.
