Threaded View

  1. #1
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Vote Rating
    christocracy is on a distinguished road


    Default JsBuilder / JsDoc Rails plugin including rake tasks

    I've created a Rails plugin for both JsBuiler and JsDoc
    it works fabulously. kudos to this excellent java JsBuilder tool.

    In addition to wrapping JsBuilder, I've also written a wrapper for some work I've been doing on the jsdoc toolkit
    interested? I could put it into my public SVN for you.

    >rake js_builder:build project=my_custom_library
    >rake js_builder:build project=my_controller_library
    and for building documentation with jsdoc toolkit:
    >rake js_builder:document project=my_custom_library,x86_64/apache2-mod_deflate

    config is defined in a yaml file which maps to the .jsb format. my js_builder plugin creates the .jsb file.
    # builds resistor-ext2 tree
      :name: Resistor Software Ext2 Library
      :path: public/javascripts/resistor-ext2/source
      :output: ../deploy    
      :author: Chris Scott
      :version: 2.0
      :copyright: Resistor Software  
      :source: false
      :source_dir: $output/source
      :minify: true
      :min_dir: $output/build
      :doc: false
      :doc_dir: $path/../docs
      :min_dir: $output/build
        :name: EverythingInOne
        :file: $output/resistor-ext2-all.js
        :debug: true
        :shorthand: false
        :shorthand_list: not sure if this is necessary
        - core/RExt.js
        - util/Collection.js
        - form/vtypes.js
        - Page.js
        - form/DialogForm.js
        - form/Fields.js
        - widgets/Plugins.js
        - widgets/View.js
        - widgets/RPanel.js	    
        - widgets/RegionManager.js
        - application/company/CompanyManager.js
        - widgets/LoginForm.js
    The actual java apps for jsbuilder / jsdoc are held within the plugin's own /lib dir -- you don't need to copy builder to your project directory to get it to work. The plugin will generate the necessary paths and send them to the java executable.
    Last edited by christocracy; 21 Jan 2008 at 8:04 AM. Reason: forgot an "s"

Thread Participants: 1