- Install LiveView globally:
npm i -g liveview- Change the
~/.titanium/config.jsonto 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
--liveviewto your build command (select-pfor the platform):
ti build -p [ios|android|windows] --liveviewCode strong!