In the Titanium CoffeeScript Compiler Plugin post from yesterday I introduced the plugin and described how to install it and use it for Titanium Mobile applications. Since then, I’ve had some inquiries concerning whether the plugin can be used for Titanium Desktop.

Titanium Desktop does not support the registering and use of <plugins> in your project’s tiapp.xml file. But today I updated the plugin.py so that it can be run directly by the python interpreter, thus making it available to command-line scripts. Either the working directory needs to be your project folder …


~/myprojectfolder $ python "/Library/Application Support/Titanium/plugins/ti_coffee_plugin/1.0/plugin.py"

… or you can pass your project’s folder as an argument:


~ $ python "/Library/Application Support/Titanium/plugins/ti_coffee_plugin/1.0/plugin.py" ~/myprojectfolder

So if you install the newest version of plugin.py (please see the previous post and video — or the README — for installation instructions), then run the script whenever you’re about to build your Titanium Desktop project, then you’re good to go.

Better yet…

If you are using Titanium Studio, which I highly recommend you do, you can take advantage of its Eclipse capabilities and add a “builder” to your project so that the plugin.py gets executed automatically each time you build. This video shows how to do that:

Note that the use of Builders is just one way in which custom actions can be executed inside Titanium Studio. Take a look at the Titanium Studio documentation section regarding Customizing Studio, which includes a sample script that executes when a file is saved inside Titanium Studio.

{ Comments on this entry are closed }

Titanium CoffeeScript Plugin

Post image for Titanium CoffeeScript Plugin

by bill on 18 April 2011

I’ve created a small plugin for Titanium Mobile which will scan your Resources/ folder (and sub-folders) at build time and, if it finds any CoffeeScript .coffee files, will run the coffee compiler on them to produce the .js files. Since build plugins run before the platform-specific build system kicks in, this actually works.

Find the project on GitHub at:

https://github.com/billdawson/ti_coffee_plugin

The README includes installation information. The short video below shows examples of installation and use.

NOTE: This is not an official Appcelerator project or utility. Do not request support from Appcelerator. Instead, feel free to file a ticket in the Issues section of the GitHub project, and I’ll try my best to respond in a timely fashion.

{ Comments on this entry are closed }

Vertical layout in TitaniumThis is Part 3 of a series of posts about what’s coming up for Android development in the new Appcelerator Titanium Mobile SDK 1.3, which should be pushed out this week.

This time I’m featuring vertical layouts, which were implemented by Marshall Culpepper (@marshall_law.)
[click to continue…]

{ Comments on this entry are closed }

This is Part 2 of a series of posts about what’s coming up for Android development in the new Appcelerator Titanium Mobile SDK 1.3, which is coming next week.

Here in Part 2, I feature the ability of the WebView control to handle mime types for videos and then launch the full-screen video player appropriately. This magic was programmed by Marshall Culpepper (@marshall_law.)
[click to continue…]

{ Comments on this entry are closed }

Titanium Mobile 1.3 Android Preview Part 1: EmailDialog

April 30, 2010

Appcelerator Titanium 1.3 is coming next week, and I thought I’d take the time to go over at least a few of the upcoming features related to their Android support.  I’ll make this a short series of blog posts tagged “titanium-1.3-android“. So for the first installment, I couldn’t help but indulge myself and feature the [...]

Read the full article →

So you want to build the Titanium Mobile SDK from source

April 26, 2010

This is a quick, very quick, blog entry about building Titanium Mobile from source. No hand-holding or fancy screenshots. Get the sources from Github. You can use git if you want or just download the sources. For the latter, see the “Download Source” link near the upper-right of the Github page. Make sure you have [...]

Read the full article →

Should Appcelerator go back to using a “classic” forum?

April 12, 2010

I’ve noticed a fair amount of people who comment in the Q&A section at the Appcelerator Titanium developer website don’t really like the style of Q&A forum that resembles stackoverflow.com. As there’s no way to put a poll up there at the Appcelerator Q&A site, I thought I’d try a poll here on my site. [...]

Read the full article →

Titanium and Android: Load the emulator first!

April 12, 2010
Thumbnail image for Titanium and Android: Load the emulator first!

[UPDATE: Since Mobile SDK 1.3 is released, I no longer recommend this. The launching of the emulator succeeds just fine under 1.3. Also, the major disadvantage of my suggested approach here was that since you would be launching the emulator outside of the Titanium Developer program, your Titanium.API.info() calls would not show messages inside the [...]

Read the full article →

Apple Schmapple

April 9, 2010

After several years of only using Linux distros at home, I broke down and got the cheapest possible Mac Mini last year.  I’m even using an old 17″ monitor on it, and have only had an Apple keyboard for it since two weeks ago.  Prior to that I used a wireless PC keyboard that I [...]

Read the full article →

Appcelerator guys are on the ball

April 7, 2010

After my gripes yesterday, I find it important to also give lots of credit where it’s due.  After some problems in the 1.2 release, the folks at Appcelerator have been very responsive, Don Thorp (@donthorp) especially.  And I’m not a paying customer, so it’s nice to see that! As I’ve indicated elsewhere already, the problem [...]

Read the full article →