tisomorphic
Make npm modules available in Titanium.
installation
in your titanium project root
npm install --save-dev tisomorphic
requirements
- Alloy project
app/lib
must exist
usage
npm install --save superagent es6-promise # modules to use npm run tisomorphic
that's all. You can use superagent and es6-promise by Node.js way.
var Promise = Promise;var superagent = ; var p = { superagent;}; p;
TODO
- modify
alloy.jmk
in the project to insert files directly intoResources
directory.