SynchroLabs / SynchroServer

The Synchro Server platform
https://synchro.io
1 stars 2 forks source link

Need node_modules support for Synchro apps #34

Closed BobDickinson closed 9 years ago

BobDickinson commented 10 years ago

We need some mechanism for Synchro apps to include the node_modules that they require. Using the node_modules directory in the Synchro app directory seems natural, but this would require those supporting node modules (which could have cascading dependencies underneath) to be loaded using our dynamic loader that can load modules other than from disk files.

Wherever these node_modules are loaded from, they must be resolvable from the Synchro apps that require them, which are themselves loaded at a virtual path relative the the Synchro API server (since the Synchro app modules don't exist at any physical file path).

BobDickinson commented 9 years ago

This has been fixed (node_modules are supported per app, though they must be on the local server, even if the rest of the Synchro app modules are hosted somewhere else by a remote module store (like Azure of AWS). This is now well documented in the wiki.