Last Friday I released a new version of TiShadow – 2.3.0. If you don’t know what TiShadow is, click on the link above, have a read and come back to this post.
The motivation behind TiShadow has always been to remove the pain points in the Titanium development lifecyle and in particular, speed things up. For example just type
tishadow run and your app is instantly running on all connected devices.
Till now, using TiShadow with Alloy meant doing something like this:
$ alloy compile --config platform=ios && tishadow run
As of the latest version, TiShadow detects Alloy projects and will compile them for you, so you can just do this:
$ tishadow run --platform ios
Or to push only the files that were changed since the last push:
$ tishadow run --platform ios --update
Okay, what else?
This isn’t just about saving characters. (Yes you can make this even shorter with
ts run or other custom aliases.) What it means is that Alloy has become a first class citizen. You can now use some of TiShadow’s other features to really speed up your Alloy development (e.g.
One example is the in-built live reloads. In the past if you wanted to get live reloads working on code changes when using Alloy you needed to use grunt or supervisor. (If you haven’t seen JALT yet I strongly suggest you do.) But there are many tidevs that don’t use any of the Alloy preprocessor and for them adding a task runner to their work flow was a little much.
For some time TiShadow has support the
@ operator that executes a TiShadow command on code changes. Now that TiShadow fully supports Alloy you can just do this:
$ tishadow @ run --platform ios --update
Or if you prefer to save keystrokes:
$ ts @ run -P ios -u
Here is a demo: