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
{{ message }}
Repository navigation
Add automatic excludes / presets for different programming languages when packaging #1495
@pmuens When #1442 is implemented, plugins will be installed in the service directory, so they will be zipped with the entire service. However, they are dev dependencies, so they don't need to be in the final zip. How can plugins be automatically excluded from the packaging process? This gets especially complicated when Lambdas use Node.js and rely on npm packages.
Not sure if this is best, but perhaps plugins should always be installed as npm dev dependencies and we could read that in the packaging process and exclude those listed dev packages?
Maybe we can match the name in the services plugins definition with the names inside the package.json file to see which ones are plugins and which ones are normal dependencies.
Adding them as a dev-dependency would work as well but I assume that users will forget it / don't know it and therefore bloat the deployment package.
We are defining common exclude/include patterns now through the template files, so we don't need to define that automatically. Imho this would also lead to pretty surprising results for users imho. In case we do need this still for something please reopen.
Activity
austencollins commentedon Jul 10, 2016
@pmuens When #1442 is implemented, plugins will be installed in the service directory, so they will be zipped with the entire service. However, they are dev dependencies, so they don't need to be in the final zip. How can plugins be automatically excluded from the packaging process? This gets especially complicated when Lambdas use Node.js and rely on npm packages.
Not sure if this is best, but perhaps plugins should always be installed as npm dev dependencies and we could read that in the packaging process and exclude those listed dev packages?
pmuens commentedon Jul 11, 2016
Hmm. That's a good point.
Maybe we can match the name in the services
pluginsdefinition with the names inside thepackage.jsonfile to see which ones are plugins and which ones are normal dependencies.Adding them as a
dev-dependencywould work as well but I assume that users will forget it / don't know it and therefore bloat the deployment package.flomotlik commentedon Aug 5, 2016
We are defining common exclude/include patterns now through the template files, so we don't need to define that automatically. Imho this would also lead to pretty surprising results for users imho. In case we do need this still for something please reopen.