John McKim
6fdb39f9d3
Merge with master
2016-08-24 06:11:10 +10:00
John McKim
5a2c9d2224
update packaging to support individual packages per function
2016-08-22 07:40:16 +10:00
Nick Chisiu
16aa6581ab
fix #1854 - update npm devDependencies packages ( #1879 )
...
* fix #1854 - added latest version of eslint-config-airbnb-base package
* fix #1854 - added latest npm shrinkwrap scheme
* fix #1854 - added latest npm coveralls package
* fix #1854 - added latest npm eslint package
* fix #1854 - added latest npm eslint-config-airbnb package
* fix #1854 - added latest npm eslint-plugin-import package
* fix #1854 - added latest npm eslint-plugin-jsx-a11y package
* fix #1854 - added latest npm eslint-plugin-react package
* fix #1854 - fixed estlint new-parens errors for integration test
* fix #1854 - fixed estlint new-parens errors for yaml parsers tests
* fix #1854 - fixed estlint max-len errors for util tests
* fix #1854 - disabled no-extraneous-dependencies on eslintrc for NodeJS 4 incapability on this feature
* fix #1854 - fixed eslint new-parens errors for Service tests
* fix #1854 - fixed eslint new-parens errors for Serverless tests
* fix #1854 - fixed eslint new-parens errors for plugin manager tests
* fix #1854 - fixed eslint new-parens errors for plugin tracking tests
* fix #1854 - fixed eslint new-parens errors for plugin package zipService lib
* fix #1854 - fixed eslint new-parens errors for plugin package zipService tests
* fix #1854 - fixed eslint trailing spaces errors for plugin package zipService lib
* fix #1854 - fixed eslint new-parens errors for plugin package cleanup tests
* fix #1854 - fixed eslint new-parens errors for plugin create tests
* fix #1854 - fixed eslint dot same line expectation error on plugin aws logs index
* fix #1854 - fixed eslint operator assignment error on plugin aws logs index
* fix #1854 - fixed eslint dot location error on plugin aws invoke tests
* fix #1854 - fixed eslint new-parens error on plugin aws invoke tests
* fix #1854 - fixed eslint new-parens error on plugin aws deployFunction tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy uploadDeploymentPackage tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy updateStack tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy createStack tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy apiGateway lib deployment
* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class
* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class ( second fix )
* fix #1854 - fixed eslint no-lonely-if req error on Serverless Service class
* fix #1854 - disabled react/require-extension on eslintrc because it's deprecated
* fix #1854 - AwsCompileApigEvents #constructor() should resolve if no functions are given:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - createStack #postCreate() should resolve:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - emptyS3Bucket #deleteObjects() should resolve if objectsInBucket is empty:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - AwsInvoke #extendedValidate() should resolve if path is not given:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - #cleanup() should resolve if the .serverless directory is not present:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 -#validate() should resolve if servicePath is given:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - Service #load() should resolve if no servicePath is found:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - added latest mocha package
* fix #1854 - added latest sinon npm package
* fix #1854 - serverless/lib/plugins/aws/deploy/tests/createStack.js 136:48 error Missing semicolon semi
* fix #1854 - serverless/lib/plugins/package/tests/cleanup.js 35:7 error Missing semicolon semi
* fix #1854 - serverless/lib/plugins/package/tests/validate.js 22:49 error Missing semicolon semi
* fix #1854 - added latest npm shrinkwrap
* fix #1854 - fixed no-extra-boolean-cast eslint error on aws deploy apiGateway methods
* fix #1854 - fixed new-parens eslint error on serverless tests for Service class
2016-08-18 11:51:09 +02:00
Florian Motlik
f8ee88be0d
Merge pull request #1863 from bfhobbes/fix-issue-1860-bad-zipi-when-deploying-from-windows
...
fix #1860 - Cannot find module for any node_modules
2016-08-18 09:48:37 +02:00
John McKim
ce52d9d3e9
update terminology and docs
2016-08-16 07:53:24 +10:00
Andrew McDonald
0f2659c5a3
Fixing trailing space
...
npm test isn't working at all for me. ( windows )
2016-08-15 12:39:28 -07:00
Andrew McDonald
391f1c2bb7
Bringing line length under 100 due to lint issue
2016-08-15 11:50:21 -07:00
Andrew McDonald
fa2088808b
fix #1860 - Cannot find module for any node_modules
...
When running on windows, 'UNIX' was incorrectly being passed into jszip as the host platform which causes it to generate a zip file which lambda doesn't unpack properly. ( I think its the \ vs / thing - the zip file looks correct when I open it in a gui tool, but using unpack unpacks a bunch of files with '\' in the filename and no actual folder structure )
2016-08-15 11:41:22 -07:00
John McKim
b28ecbeb31
merge from master
2016-08-13 08:06:09 +10:00
Philipp Muens
ffceabc7c5
Rename lifecycle events of deploy plugin
2016-08-11 16:23:17 +02:00
John McKim
d334d1721f
Ensure cf template is always written to disk
2016-08-11 05:20:13 +10:00
John McKim
6a0e245180
Clean .serverless before deploy rather than after
2016-08-11 04:53:30 +10:00
Philipp Muens
a0f7bb20d1
Add tests to increase test coverage
2016-08-08 08:27:26 +02:00
Chris Olszewski
4ac22f2246
switch from node-zip to jszip
2016-08-04 14:23:52 -05:00
Philipp Muens
0ccaea1d5a
Switch naming from yaml to yml for Serverless config related files
2016-07-27 11:24:10 +02:00
Philipp Muens
c9d1453d3a
Switch from .yaml to the more convenient .yml
2016-07-27 10:39:41 +02:00
Sander van de Graaf
2f83daf3b5
fix test comment to be correct
2016-07-25 09:35:01 +02:00
Sander van de Graaf
f6fb90c834
make linter happy
2016-07-25 09:33:53 +02:00
Sander van de Graaf
0a728c6562
add tests for including files with non-default file permissions
2016-07-25 09:24:09 +02:00
Sander van de Graaf
2052611eb5
Make sure the linter is happy as well
2016-07-21 12:43:45 +02:00
Sander van de Graaf
4756586709
Make sure permissions are zipped
...
As also mentioned in PR #960 , the permissions need to be set correctly, to be able to upload binaries, this is a regression :)
2016-07-20 16:57:05 +02:00
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