62 Commits

Author SHA1 Message Date
John McKim
fd1545d89d Allow services with no functions #2267 2016-10-25 06:15:23 +10:00
Philipp Muens
9ebf296762 Merge pull request #2194 from craftship/globs-exclude
Use Globs to Exclude Files
2016-10-03 15:09:46 -07:00
Jon Sharratt
d7f9b16211 remove package include from classes 2016-10-01 11:11:36 +01: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
rowan
733f9ba55c Add check (and test) that function.events is an array. 2016-09-06 16:07:34 +10: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
714020e65d added unit tests for variables class 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
5dafeee388 basic new variable system 2016-08-31 16:37:58 +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
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
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
kengos
2efcc24787 fix populate boolean and 0 variables 2016-08-08 12:25:14 +09:00
Eslam λ Hefnawy
6da0e11bd3 Merge pull request #1764 from johncmckim/issue-1728
Move variableSyntax into defaults and update docs
2016-08-05 16:31:06 +09:00
John McKim
9e8138abfd move variableSyntax into defaults and update docs 2016-08-05 14:13:23 +10:00
Eslam A. Hefnawy
f9b8f3d447 updated invoke and log and fixed tests 2016-08-04 22:24:58 +09:00
Eslam A. Hefnawy
044a13f47d adding default function name property 2016-08-04 21:35:02 +09: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
0e519175c9 Fix wrong check if serverless.env.yml exists 2016-07-27 10:57:44 +02:00
Philipp Muens
c9d1453d3a Switch from .yaml to the more convenient .yml 2016-07-27 10:39:41 +02:00
Philipp Muens
3290ced8ee Remove hard service runtime dependency 2016-07-22 17:19:08 +02:00
Florian Motlik
6ef2770235 Merge pull request #1599 from quodio/api-gateway-fix
existence of events
2016-07-22 17:02:07 +02:00
jexact
8febc06dae provide empty list of events if necessary 2016-07-22 14:53:43 +02:00
Eslam A. Hefnawy
252abe597e fixed tests for provider config 2016-07-21 19:18:35 +09:00
Eslam A. Hefnawy
94fa416059 provider property can now be an object 2016-07-21 19:14:48 +09:00
Philipp Muens
cd098cac21 Add service bound runtime functionality 2016-07-12 20:39:34 +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
Eslam A. Hefnawy
356127b830 fix linting issues 2016-07-04 09:51:59 +01:00
Eslam A. Hefnawy
6ee4b9e420 more validation and better error messages 2016-07-04 09:51:59 +01:00
Eslam A. Hefnawy
8b9a516a1d safely loading serverless.env.yaml 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
d2dc0ba58e ZERO linting issues and test coverage of 93% 🎉 🎉 2016-06-23 15:55:57 +02:00
Philipp Muens
b16664357d Fix linting issues 2016-06-21 14:51:32 +02:00
Eslam A. Hefnawy
afe2321b11 fixed integration tests 2016-06-21 13:03:58 +02:00
Eslam A. Hefnawy
a8c56353f9 removed extra comment 2016-06-20 22:03:00 +02:00
Eslam A. Hefnawy
7a976c2724 making load method even more robust 2016-06-20 21:57:52 +02:00
Eslam A. Hefnawy
aa3a807813 making the load method more robust 2016-06-20 21:43:01 +02:00
Eslam A. Hefnawy
947aa680a1 u can now reference deep sub props in variables 2016-06-20 20:22:46 +02:00
Eslam A. Hefnawy
ff0ed5a200 variable population now is aware of default stage and region 2016-06-20 18:36:55 +02:00
Eslam A. Hefnawy
2c20687793 update plugins for provider-per-service arch 2016-06-19 21:38:01 +02:00
Eslam A. Hefnawy
1e3763deac updated tests for Service class and create plugin 2016-06-17 21:42:41 +02:00
Philipp Muens
39d30b3ca0 Add automatic servicePath detection functionality
The service directory will be automatically detected if the users CWD is a valid
Serverless service directory.
2016-05-26 14:34:56 +02:00
Eslam A. Hefnawy
de86121170 refactor: removed instances keyword and replaces this.S to this.serverless 2016-05-24 11:33:36 +02:00
Eslam A. Hefnawy
7a717f2903 fixed some async tests 2016-05-20 20:08:50 +02:00