4 Commits

Author SHA1 Message Date
Arnaud Rebts
390e7d0037 Don't use regex to test file path in package plugin
In a regex, `.` means any character, so the default exclude list will
actually exclude more than intended (any path containing `.serverless`
for example).

Instead, use `String#indexOf()`
2016-07-12 17:22:25 +02:00
Philipp Muens
b74fa46563 Update hook order and zipping functionality
Update the hook order because the functions need the .zip file in their resource
definition. Furthermore the zipping process / writing it to disc was optimized.
The ".serverless" directory is also added to the "default exclude array" so that it's not
considered during packaging.
2016-07-07 20:10:05 +02:00
Philipp Muens
16679f4db8 Fix code and tests so that the package plugin works correctly 2016-07-07 20:10:05 +02:00
Philipp Muens
259c58d822 Add package plugin 2016-07-07 20:10:05 +02:00