You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a way to extend the base server setup with minimal configuration on behalf of the user. We are currently thinking that an approach that mirrors the structure of an app might be a good way to go.
The file structure for such an extension would look like this:
Some files would replace core functionality and in turn, if present would be replaced by files in the app if present. For example /document.js. Some files would be applied one after the other in the order core -> extension 1 -> extension 2 -> app For example server.js and build.js. Documentation would be used to make it clear which files override/are overridden and which files are applied one after another.
Installing an extension would be done by npm installing the extension along side the core podlet-server package like so
npm i @podium/podlet-server my-podlet-server-extension
And the extension itself would include a property in package.json that identifies it as a podlet server extension
The podlet-server module will then scan the app's package.json for direct dependencies and check their package.json files for this extension key and, if found, pick up and load the various files contained in the package before checking the extensions own package.json for dependencies and checking those dependencies for any extension keys and loading loading them in as well if found. Finally, the podlet-server will load in the app itself.
The text was updated successfully, but these errors were encountered:
We need a way to extend the base server setup with minimal configuration on behalf of the user. We are currently thinking that an approach that mirrors the structure of an app might be a good way to go.
The file structure for such an extension would look like this:
Some files would replace core functionality and in turn, if present would be replaced by files in the app if present. For example /document.js. Some files would be applied one after the other in the order core -> extension 1 -> extension 2 -> app For example server.js and build.js. Documentation would be used to make it clear which files override/are overridden and which files are applied one after another.
Installing an extension would be done by npm installing the extension along side the core podlet-server package like so
And the extension itself would include a property in package.json that identifies it as a podlet server extension
The podlet-server module will then scan the app's package.json for direct dependencies and check their package.json files for this extension key and, if found, pick up and load the various files contained in the package before checking the extensions own package.json for dependencies and checking those dependencies for any extension keys and loading loading them in as well if found. Finally, the podlet-server will load in the app itself.
The text was updated successfully, but these errors were encountered: