xp-forge / lambda

AWS Lambda for the XP Framework
2 stars 0 forks source link

Simplify packaging lambda #2

Closed thekid closed 3 years ago

thekid commented 3 years ago

Currently, the ZIP command line utility is required to create a lambda deployment:

$ zip -r task.zip class.pth src vendor

The downsides:

While the latter could be circumvented by a combination of find and grep -v, this would make the second point even more obvious.

Idea: Extend lambda

This could be the new way of packaging:

$ xp lambda package

This would create a ZIP file exactly like above, but exclude any code in src/test/php by default. It would work with https://github.com/xp-framework/zip, and should be able to work even without ZLIB - files would simply not be compressed in this case.

thekid commented 3 years ago

Released in https://github.com/xp-forge/lambda/releases/tag/v0.3.0