Titanium Live App Reloading for simulator and device.
Install
Bleeding edge version
$ npm install -g git+https://github.com/appcelerator/liveview.git
Outputs usage. Optional command for its usage.
$ liveview <command> --help
Manually Install the Titanium CLI hook: Note: Cli hook is automatically installed with LiveView
$ liveview install clihook
Manually Remove the Titanium CLI hook: Note: Cli hook is automatically removed with LiveView
$ liveview rm clihook
Run liveview with the requested Titanium CLI Build Flags. ( prompts for build flags if none provided )
$ liveview run [Titanium-CLI-Build-Flags]
Run liveview via the Titanium CLI Tools
$ ti build --liveview [options]
Outputs Server Active Server(s) Paths(s).
$ liveview server status
Outputs Server Active Server(s) pid Paths(s).
$ liveview server status
Stop liveview file/event servers
$ liveview server stop
Start a liveview file/event server for given directory
$ liveview server start [-p --project-dir] <project-dir-path> [-d --daemonize]
As LiveView is now distributed in the SDK, the best way to work on it is to link your local git repository into the SDK version used by the app you're using to test.
- Install the dependencies
npm install
- Run
npm link
, this allows you to symlink the module into your SDK easily cd
to the SDK directory used by your app. So if your app is using8.3.1.GA
use:- Mac -
cd ~/Library/Application\ Support/Titanium/mobilesdk/osx/8.3.1.GA
- Windows -
cd %PROGRAMDATA%\Titanium/mobilesdk/win32/8.3.1.GA
- Mac -
- Run
npm link liveview
and you're good to go! When you make changes in your local git repository they will be reflected straight away into the SDK
See LICENSE file for information on license.