Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1704] Allow Alloy Widgets to be discovered by package.json properties

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterBrenton House
AssigneeFeon Sua Xin Miao
Created2019-09-20T13:46:40.000+0000
Updated2019-09-20T13:46:40.000+0000

Description

Currently, you can install a Titanium Alloy widget via npm but it is required that the naming of the widget match the pattern "alloy-widget-*". It also requires that the widget be added to config.json in the app. This method is not very flexible as it doesn't support any scoped npm packages. What would be much better is to include a property in the package.json file (similar to what native Titanium modules on npm do) and bypass the requirement that the widget be added to config.json. Basically the dependency in package.json would replace config.json and the titanium json property in the package.json would replace the existing naming convention.

Comments

No comments

JSON Source