- Install LiveView globally:
npm i -g liveview
- Change the
~/.titanium/config.json
to include the CLI hook (underpaths
->hook
):
{
"user": { ... },
"app": { ... },
"cli": { ... },
"paths": {
"commands": [],
"hooks": [
"/usr/local/lib/node_modules/liveview/hook"
],
"modules": [],
"plugins": [],
"sdks": [ ... ],
"templates": []
},
"sdk": { ... }
}
- Append
--liveview
to your build command (select-p
for the platform):
ti build -p [ios|android|windows] --liveview
Code strong!