serverless/serverless

Packaging: Support customization of source directory

Aperta

#7920 aperta il 7 lug 2020

 (3 commenti) (3 reazioni) (0 assegnatari)JavaScript (5734 fork)batch import
cat/packagingenhancementhelp wanted

Metriche repository

Star
 (46.915 stelle)
Metriche merge PR
 (Merge medio 1g 15h) (34 PR mergiate in 30 g)

Descrizione

Use case description

The serverless.yml package section should allow to define a codeUri which will be use as the base path for generating the zip archive.

e.g. Code src/handler/index.js src/lib/service.js

serverless.yml package: codeUri: ./src

this would generate a zip archive containing: handler/index.js lib/service.js

Proposed solution

e.g. Sample Code src/handler/index.js src/lib/service.js

serverless.yml package: codeUri: ./src

this would generate a zip archive containing: handler/index.js lib/service.js

This would be a similar capability that AWS SAM offers via: CodeUri: ./src https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html

Guida contributor