Skip to content

Instantly share code, notes, and snippets.

@tonylukasavage
Last active December 18, 2015 08:49
Show Gist options
  • Save tonylukasavage/5757332 to your computer and use it in GitHub Desktop.
Save tonylukasavage/5757332 to your computer and use it in GitHub Desktop.
Shell script to create a new Titanium project, make it Alloy, and load it up in Sublime Text
# Here's how to add it to a shell profile
tialloy() {
ti create --id com.testing.$1 --name $1 --workspace-dir . --platforms \
android,blackberry,ios,ipad,iphone,mobileweb,tizen --no-prompt && \
cd $1 && alloy new . && subl .
}
# Given a project name, create a new Titanium mobile project, convert it to alloy, and load it up
# in Sublime text. Great for churning out test cases and POCs.
#
# usage:
# tialloy.sh project_name
ti create --id com.testing.$1 --name $1 --workspace-dir . --platforms android,blackberry,ios,ipad,iphone,mobileweb,tizen --no-prompt && cd $1 && alloy new . && subl .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment