assertTrue is the professional blog of Luke Bayes and Ali Mills

AsDoc and COMPC now supported in Sprouts

Posted by Luke Bayes Mon, 25 Feb 2008 08:24:00 GMT

I just got some enhancements into the Sprout packages that provide full support for asdoc and compc.

The AsDoc support is especially handy because it gives the full terminal interface, but also allows you to generate documentation against any already defined MXMLC task without duplicating all of your configuration!

A Rakefile might look something like this:

desc "Compile the main application"
mxmlc 'bin/SomeProject.swf' do |t|
  t.input = 'src/SomeProject.as'
  t.source_path = 'lib/yourlib'
  t.source_path = 'lib/asunit'
  t.source_path = 'test'
  t.source_path = 'src'
end

desc "Generate documentation"
asdoc :doc => 'bin/SomeProject.swf'

That’s it!

You just set an MXMLC task as a prerequisite for an asdoc task and the configuration options are inherited.

The latest as3 bundle gem automatically adds something similar to all of your new project rake files.

You can always get the latest Rubyforge gems with the following:
sprout -R
sudo gem update sprout

Be sure to let us know if anything doesn’t work as expected!

Tags  | no comments

Comments

Your Reply

Comment Form.

Fields denoted with an "*" are required.