If you want to use latest alloy
with appc
CLI command:
-
Update Alloy:
[sudo] npm install -g alloy
-
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;
};
- add plugin to the
tiapp.xml
plugins section:
<plugins>
<plugin version="1.0">ti.alloy</plugin>
<plugin version="1.0">global.alloy</plugin>
</plugins>
-
Recompile project
-
Enjoy
Be aware that this does not work with LiveView enabled. In that case the AppC CLI bundled Alloy version will still be used.