Currently, the ZIP command line utility is required to create a lambda deployment:
$ zip -r task.zip class.pth src vendor
The downsides:
This program must be installed
The command line must be remembered
This also bundles unnecessary test code from the src and vendor directories
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.
Currently, the ZIP command line utility is required to create a lambda deployment:
The downsides:
src
andvendor
directoriesWhile 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:
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.