Skip to content
/ liveview Public

Titanium LiveTi (live preview of Titanium applications on device)

License

Notifications You must be signed in to change notification settings

tidev/liveview

Repository files navigation

LiveView

Titanium Live App Reloading for simulator and device.

Install

Bleeding edge version

$ npm install -g git+https://github.com/appcelerator/liveview.git

liveview#help

Outputs usage. Optional command for its usage.

$ liveview <command> --help

liveview#install

Manually Install the Titanium CLI hook: Note: Cli hook is automatically installed with LiveView

$ liveview install clihook

liveview#rm

Manually Remove the Titanium CLI hook: Note: Cli hook is automatically removed with LiveView

$ liveview rm clihook

liveview#run

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]

server#status

Outputs Server Active Server(s) Paths(s).

$ liveview server status

server#pids

Outputs Server Active Server(s) pid Paths(s).

$ liveview server status

server#stop

Stop liveview file/event servers

$ liveview server stop

server#start

Start a liveview file/event server for given directory

$ liveview server start [-p --project-dir] <project-dir-path> [-d --daemonize]

Development

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.

  1. Install the dependencies npm install
  2. Run npm link, this allows you to symlink the module into your SDK easily
  3. cd to the SDK directory used by your app. So if your app is using 8.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
  4. 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

License

See LICENSE file for information on license.

(C) Copyright 20132021, Appcelerator Inc. All Rights Reserved.