Slide 43
Slide 43 text
alloy hooks into ti cli
the $ alloy new task installs this plugin:
exports.installPlugin
=
function(alloyPath,
projectPath)
{
var
id
=
'ti.alloy';
//
copy
plugin
var
srcFile
=
path.join(alloyPath,'Alloy','plugin',CONST.PLUGIN_FILE);
var
destFile
=
path.join(projectPath,'plugins',id,CONST.PLUGIN_FILE);
exports.copyFileSync(srcFile,
destFile);
//
add
the
plugin
to
tiapp.xml,
if
necessary
tiapp.init(path.join(projectPath,
'tiapp.xml'));
tiapp.installPlugin({
id:
'ti.alloy',
version:
'1.0'
});
}; thanks
TiConf 2014 - Monitor Your App: A Complete Panel of Titanium Monitoring Solutions
TiConf 2014 - Monitor Your App: A Complete Panel of Titanium Monitoring Solutions 43