Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created May 13, 2013 00:42
Show Gist options
  • Save kwhinnery/5565515 to your computer and use it in GitHub Desktop.
Save kwhinnery/5565515 to your computer and use it in GitHub Desktop.
Execute "tishadow run" in your Titanium app directory whenever a JavaScript file changes.

Automatic TiShadow Installs

Execute "tishadow run" in your Titanium app directory whenever a JavaScript file changes. Edit your JS files in a text editor, save, then switch to the test device or simulator. Profit.

Install supervisor

[sudo] npm install -g supervisor

Execute tishadow run anytime a JavaScript file changes

supervisor -n exit -x tishadow run
@farwayer
Copy link

How can we run 'tishadow run --update' with supervisor?

supervisor -n exit -w Resources -x tishadow -- run --update

@WooD1k
Copy link

WooD1k commented Oct 17, 2013

Thanks a bunch!

@Wingee
Copy link

Wingee commented Nov 29, 2013

Is there anyway to get this to work with ios and android at the same time?!
Thanks!

@appinlet
Copy link

I made the following alias' in my .bashrc

alias tiwch='supervisor -n exit -w app -e "js|tss|xml" -x tishadow -- run --update'
alias tiwrk='cd ~/Documents/Appcelerator_Studio_Workspace/'
alias tisvr='tishadow server'

Now whenever I need to start, I open two terminal windows, in one i type "tisvr" to start the server.
I then open up the second window and type "tiwrk" to navigate to my Appcelerator workspace, cd into the Project directory and then type "tiwch" to start the watch process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment