Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16078

Implement full NodeJS require specs so we can use NPM for modules

    Details

    • Story Points:
      8
    • Sprint:
      2016 Sprint 14 SDK

      Description

      I know from Jeff Haynie that Hyperloop (and thus Ti.Next - likely Titanium 4.x) will support the full NodeJS require specs so to make it possible to use NPM as a package manager for all kinds of modules. This is also the direction ALOY-86 has been going, asking for widget dependency management.

      I open this ticket to request looking into the possibility of implementing this in Titanium 3.x already.

      • What are the obstacles to change the require implementation to require both JS and native modules from the local and global node_modules paths?
      • What does it take to get Alloy to loading e.g. widgets from local and global installed node_modules?
      • How should the builder copy in global node_modules to the project when it packages the app?

      I think this would spur and new wave of Titanium native/CommonJS modules and Alloy widgets, sync adapters etc that would really boost the platform, as well as making it easier to re-use proprietary components in multiple projects myself.

      Ultimately, I think tiapp.xml and manifest could even be replaced by package.json?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • It looks like Backbone Issue Sync is not enabled for your project.

                    Git Source Code