Skip to content

Instantly share code, notes, and snippets.

@hansemannn
Last active December 9, 2022 17:12
Show Gist options
  • Save hansemannn/c9df49fb2761aed4dd31d58862225c2f to your computer and use it in GitHub Desktop.
Save hansemannn/c9df49fb2761aed4dd31d58862225c2f to your computer and use it in GitHub Desktop.
Use LiveView from the Titanium CLI (without Studio)
  1. Install LiveView globally:
npm i -g liveview
  1. Change the ~/.titanium/config.json to include the CLI hook (under paths -> hook):
{
	"user": { ... },
	"app": { ... },
	"cli": { ... },
	"paths": {
		"commands": [],
		"hooks": [
			"/usr/local/lib/node_modules/liveview/hook"
		],
		"modules": [],
		"plugins": [],
		"sdks": [ ... ],
		"templates": []
	},
	"sdk": { ... }
}
  1. Append --liveview to your build command (select -p for the platform):
ti build -p [ios|android|windows] --liveview

Code strong!

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