rf / mockti

titanium mocking
MIT License
27 stars 9 forks source link

tsm integration of some kind #3

Open rf opened 12 years ago

rf commented 12 years ago

Perhaps just by making the tsm sdk logic require()able. Then we can do an npm -g install mockti then cd into a directory and type mockti 2.1.1 which will generate a titanium.js file according to that SDK version. Perhaps also provide an API such as

var mockti = require('mockti');
mockti('2.1.1');

which would throw the Titanium and Ti objects into the current namespace for that matching version. This would probably be easier in a CI setup.