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.
Perhaps just by making the
tsm
sdk logicrequire()
able. Then we can do annpm -g install mockti
then cd into a directory and typemockti 2.1.1
which will generate atitanium.js
file according to that SDK version. Perhaps also provide an API such aswhich would throw the
Titanium
andTi
objects into the current namespace for that matching version. This would probably be easier in a CI setup.