186 Commits

Author SHA1 Message Date
David Tanner
4d34dfde44 Merge with master.
There was a merge issue with createStack
2016-10-03 09:11:15 -06:00
eL0ck
228d52cc7c remove redundant service list 2016-09-28 08:49:51 +02:00
Doug Moscrop
2aab2a2ccc fix #2226 non-aws providers throw an error 2016-09-27 11:59:31 -04:00
David Tanner
1a8b94cc4f Upping code coverage.
Found some unused code when looking for throttling errors, added functionality to get code from SDK errors.
Added tests to cover functionality.
Fixed prefix to be serverless/{serviceName}/{stage}
2016-09-22 15:55:52 -06:00
Florian Motlik
953dbfbb1d Merge pull request #2101 from serverless/update-tracking-functionality
Update tracking functionality
2016-09-22 14:35:04 +02:00
kengos
cb74b3b1bb add filename option to YAML.load 2016-09-21 22:36:13 +09:00
Philipp Muens
10a638b744 Update tracking functionality according to PR review 2016-09-20 19:24:35 +02:00
Philipp Muens
1f8dc53aea Add timezone information 2016-09-20 09:12:59 +02:00
Philipp Muens
3338d018d6 Convert date object to string to get the timezone as well 2016-09-20 09:08:47 +02:00
Philipp Muens
b69027b686 Add tests for tracking functionality which check the existence of the trackingId 2016-09-20 09:08:47 +02:00
Philipp Muens
3c84d6112e Add memorySize and timeout tracking functionality 2016-09-20 09:08:47 +02:00
Philipp Muens
d1a16e283f Add new tracking functionalities and group them by topic 2016-09-20 09:08:47 +02:00
Philipp Muens
649ada4c2c Add unique userId (uuid) for tracking functionality 2016-09-20 09:08:47 +02:00
Florian Motlik
67644f7284 Merge pull request #2033 from rowanu/throw-error-on-events-object
Add check (and test) that function.events is an array.
2016-09-19 16:34:14 +02:00
John McKim
9e7f7c89f3 fix bug where variableSyntax is never set from config 2016-09-16 17:15:25 +10:00
Doug Moscrop
56ed24e348 refactor PluginManager.run hook collection slightly 2016-09-09 21:01:48 -04:00
Doug Moscrop
5d4316db93 refactor CLI command/options to remove a few lines of code 2016-09-09 21:01:48 -04:00
Eslam A. Hefnawy
2e6cce979d fixed issue when referencing to self or file properties with var references 2016-09-08 17:53:18 +09:00
rowan
733f9ba55c Add check (and test) that function.events is an array. 2016-09-06 16:07:34 +10:00
Florian Motlik
1364f05f61 Merge pull request #1917 from johncmckim/issue-1777
Update packaging to support individual packages per function
2016-09-05 14:56:07 +02:00
Florian Motlik
cf5ddc67da Merge pull request #1978 from horike37/issue-1271-custom-validation
Add custom validation for plugin options
2016-09-02 07:38:30 +02:00
John McKim
ea864be300 merge with master 2016-09-02 07:17:57 +10:00
Florian Motlik
6692d2d0f1 Merge pull request #1961 from mallzee/archivejs-replacing-jszip
fix(zip): Switch to archivejs to reduce high memory footprint
2016-09-01 13:19:34 +02:00
John McKim
44823ebc71 merge with master 2016-09-01 07:30:17 +10:00
Eslam A. Hefnawy
3016a555ac fix bug where function name is not using default stage 2016-08-31 17:38:18 +09:00
Eslam A. Hefnawy
1a8a3af31c trimming trailing white space 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
bbce402fb8 sls vars - skip getting value once a value has been found 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
ee0af0121f fixed bugs for new variable syntax 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
b96e449a93 removed comments 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
714020e65d added unit tests for variables class 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
1585711b17 refactored variables class and overwrites 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
9ed7a2a766 overwrite functionality working 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
e5837e2770 trying overwrites 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
2035c6ada0 removed comment 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
b363ebb8fb added file reference to the new variable system 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
5dafeee388 basic new variable system 2016-08-31 16:37:58 +09:00
Jamie Sutherland
7834ca0217 fix(zip): Switch to archivejs to reduce high memory footprint 2016-08-30 11:51:30 +01:00
horike37
1e2bdc1787 Add custom validation for plugin options 2016-08-30 05:33:27 +09:00
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
Philipp Muens
4937140094 Update outdated doc references 2016-08-19 07:21:52 +02: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
Philipp Muens
506cd44869 Remove automatic servicePath detection to prevent unintended behavior 2016-08-17 11:41:21 +02:00
Florian Motlik
b189f75507 Merge pull request #1813 from serverless/creds-error
Added friendly error for missing AWS credentials
2016-08-11 13:20:22 +02:00
Eslam A. Hefnawy
93a86fbfdb added friendly error for missing aws creds 2016-08-11 19:03:05 +09:00
Eslam A. Hefnawy
4c1bdf0662 removed extra spaces 2016-08-11 18:27:07 +09:00
Eslam A. Hefnawy
f05b4e7d55 fixed a bug in service class to load shortcut options 2016-08-11 18:25:11 +09:00
Philipp Muens
41ca875ebd Merge pull request #1793 from kengos/master
fix populate boolean and 0 variables
2016-08-08 14:07:17 +02:00
Philipp Muens
b0a6849163 Merge pull request #1768 from svdgraaf/feature/sort-plugins-by-name
Sort plugins for display in help
2016-08-08 07:14:39 +02:00
kengos
2efcc24787 fix populate boolean and 0 variables 2016-08-08 12:25:14 +09:00