Hi Darshan et all
I have been working on and off on the fabrication generator last week and is now able to generate the first scaffold fabrication app with two modules. As mentioned most of the code is based on the simple routing demo. The generator creates two modules: an authentication module and a dashboard module both compiled as swfs and loaded when needed.
It is still in a rather early state but I thought it would be a good idea to release it now so that I can avoid moving in a wrong direction.
As a remark I have solved the problems with custom proxy, command, mediator, package etc that Jason suggested. But this feature will first be included in a future release.
The source is hosted at github -> http://github.com/sejensen/fabricator/tree/master
And the ruby gem is released at rubyforge -> http://rubyforge.org/projects/pure-fab-gen/
(It took some time to get the project approved, but by using rubyforge everyone can easily install the gem)
Usage instructions: (this is on mac with osx 10.5, assumes that ruby and rubygems are installed)
install gem: sudo gem install fabricator (currently version 0.0.5)
generate app: pureapp AppName org.my.custom.package 'app title'
import project in flex builder as flex project: run AppNameShell.mxml
To create module codestructure
Run ruby script/generate pure_module ModuleName
example ruby script/generate pure_module Address -> results in AddressModule.mxml plus generated code for the new module. You have to overwrite the files when asked this is required to be able to genrate all the modules you want and still get all of them build etc.
Disclaimer for now the module is not included in the app, Since I am currently refactoring mediator and container code. but I thought being able to generate the skeleton and classes was a good start and the new module gets compiled as seperate swf.
That should be it! Hope to get some feedback, also on the currently generated code which is a little sparse. And if anyone have an idea of a more complex general app to generate that would be great?.
P.S. I hope the name fabricator is okay?