Skip to content

Instantly share code, notes, and snippets.

@falkolab
Last active July 18, 2017 22:35
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save falkolab/da74a5fab2a7226090e357ab68426bf6 to your computer and use it in GitHub Desktop.
Save falkolab/da74a5fab2a7226090e357ab68426bf6 to your computer and use it in GitHub Desktop.
How to use latest Alloy with appc CLI

If you want to use latest alloy with appc CLI command:

  1. Update Alloy: [sudo] npm install -g alloy

  2. Create file in your project <project root>/plugins/global.alloy/1.0/hooks/global_alloy_hook.js with content:

exports.init = function (logger, config, cli, appc) {
	delete process.env.ALLOY_PATH;
};
  1. add plugin to the tiapp.xml plugins section:
<plugins>
	<plugin version="1.0">ti.alloy</plugin>        
	<plugin version="1.0">global.alloy</plugin>
</plugins>
  1. Recompile project

  2. Enjoy

@FokkeZB
Copy link

FokkeZB commented May 24, 2016

Be aware that this does not work with LiveView enabled. In that case the AppC CLI bundled Alloy version will still be used.

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