[TxMt] Flex 2 Bundle

Thomas Aylott (subtleGradient) oblivious at subtlegradient.com
Tue May 15 11:16:59 UTC 2007


On May 15, 2007, at 5:35 AM, Simon Gregory wrote:

>> I've been playing with the flex bundles for a while now.  It looks  
>> like there are lots of different ways of building Flex at this
> point.  I've been using rake:
>> http://theblogthatnoonereads.tunasoft.com/2007/04/29/building-flex- 
>> on-rails/
>
> Yes, there's a lot of ways to invoke mxmlc/compc. Ideally I'd like  
> to see just one build and one run command in the
> ActionScript 3 bundle but don't want to impose a particular method.  
> Currently there is:
>
> mxmlc
> Ant
> fsch (A wrapper for mxmlc which caches the build in RAM and  
> dramatically speeds up compilation - on my current project
> mxmlc takes 20+ seconds, with fsch this comes down to 4-5 seconds)
> Shell - project specific custom file.
>
> I'd imagine that we could quickly add rake and yaml to the equation  
> too. Does anyone have any suggestions of a way to handle
> this? Would it be best to add the various build methods as  
> templates then check for custom build scrips within a TM project
> before defaulting to a basic build? Are there any other bundle  
> developers who've solved a similar problem?
>
> Cheers,
> Simon

All my projects use custom build scripts in the project root.
We have a custom Logger class with a custom ruby server that  
communicate back and forth.
I wrote a simple command that uses the Textmate.system javascript  
hook to call it and write the results back to the html output menu as  
if it was a terminal window.

That command is available in my personal (and rather outdated now)  
as3 bundle.
	All the CrazyEgg 2.0 team (me + two other dudes) are using my custom  
bundle right now.
	http://textmate.svn.subtlegradient.com/Bundles/Actionscript%203%20% 
5BsG%5D.tmbundle
	http://textmate.svn.subtlegradient.com/Bundles/Actionscript%203%20% 
5bsG%5d.tmbundle/Commands/Actionscript%20Runner.tmCommand

For any other projects I work on that don't require a custom server  
to be running or any strange custom build junk, I'd like it to  
fallback to the fastest and best compilation that my system can handle.

fsch sounds best if it's installed, otherwise fallback to simply mxmlc.

I'd still leave the other build commands in there for people who need  
them, but I'd have a single command that tries a custom build script  
then fsch then finally falls back mxmlc. Bind that to ⌘B and you've  
got yourself the perfect build command.

	thomas Aylott — subtleGradient — CrazyEgg — sixteenColors


More information about the textmate mailing list