[ALOY-1704] Allow Alloy Widgets to be discovered by package.json properties
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Brenton House |
Assignee | Feon Sua Xin Miao |
Created | 2019-09-20T13:46:40.000+0000 |
Updated | 2019-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.
No comments