Last active
December 18, 2015 08:49
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 . | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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