No commit activity in last 3 years
No release in over 3 years
Gator Generators for RobotLegs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.5
~> 0.0.21.pre
~> 0.0.7.pre
~> 1.6.4
~> 2.3.0

Runtime

~> 0.0.21.pre
~> 0.0.7.pre
 Project Readme

gator-as3-robotlegs¶ ↑

Add this to your gator project file to use the generators:

require "gator/as3/robotlegs/generators"

For FlexUnit4 test generators add:

require "gator/as3/robotlegs/generators/test/flexunit4"

For ASUnit4 test generators add:

require "gator/as3/robotlegs/generators/test/asunit4"

List of commands¶ ↑

  • For a class that extends org.robotlegs.mvcs.Context Generates src/com/funk/ApplicationContext.as:

gator g as3 rl context com.funk.Application

  • For a class that extends org.robotlegs.mvcs.Command Generates src/com/funk/controller/StartupCommand.as:

gator g as3 rl command com.funk.controller.Startup

  • For a class that extends org.robotlegs.mvcs.Mediator Generates src/com/funk/views/mediators/ExampleViewMediator.as:

gator g as3 rl mediator com.funk.views.ExampleView

  • For a class that extends flash.display.Sprite Generates src/com/funk/views/components/Example.as:

gator g as3 rl view com.funk.views.Example

  • For a class that extends flash.display.Sprite + a class that extends org.robotlegs.mvcs.Mediator Generates src/com/funk/views/mediators/ExampleMediator.as + src/com/funk/views/components/Example.as:

gator g as3 rl view_with_mediator com.funk.views.Example

  • For a class that extends org.robotlegs.mvcs.Actor Generates src/com/funk/models/ExampleModel.as:

gator g as3 rl model com.funk.models.Example

  • For a class that extends org.robotlegs.mvcs.Actor Generates src/com/funk/services/ExampleService.as:

gator g as3 rl service com.funk.services.Example

mxml¶ ↑

  • For a class that extends s:Application Generates src/Main.mxml:

gator g mxml rl app Main

  • For a class that extends s:Module Generates src/com/funk/module/one/Example.mxml:

gator g mxml rl module com.funk.module.one.Example

  • For a class that extends s:Module Generates src/com/funk/module/one/Example.mxml:

gator g mxml rl module_application com.funk.module.one.Example

test¶ ↑

For a the test class only prepend the generator command with ‘test’ Generates test/MainExampleCommandTest.as test/AllTests.as test/ASUnit4Runner.as:

gator g as3 rl test command MainExample

Contributing to gator-as3-robotlegs¶ ↑

  • Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet

  • Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright © 2011 devboy. See LICENSE.txt for further details.