Skip to content

Add automatic excludes / presets for different programming languages when packaging #1495

Closed

Description

@pmuens

We should provide automatic excludes for common, not necessary files.

We can create own plugins which will hook into the before:deploy:createDeploymentPackage to set the service.package.exclude values.

Is also discussed in #1486

Activity

  1. self-assigned this
    on Jul 6, 2016
  2. added this to the milestone on Jul 6, 2016
  3. austencollins commented on Jul 10, 2016

    @austencollins
    Member

    @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?

  4. pmuens commented on Jul 11, 2016

    @pmuens
    ContributorAuthor

    Hmm. That's a good point.

    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.

  5. flomotlik commented on Aug 5, 2016

    @flomotlik
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions