Florian Motlik
ce7edee6a5
Run integration tests and eslint for job 1 only
2016-06-10 08:24:04 +02:00
Philipp Muens
01596d1486
Merge pull request #1292 from serverless/fix-linting-errors
...
Fix linting errors and reduce ratchet to 100
2016-06-10 08:23:14 +02:00
Philipp Muens
24b90af89d
Fix linting errors and reduce ratchet to 100
2016-06-10 07:43:37 +02:00
Philipp Muens
da0ed6b909
Merge pull request #1270 from serverless/add-option-validation-in-plugin-manager
...
Refactor PluginManager functionality / Add option validation in plugin manager
2016-06-09 20:39:06 +02:00
Philipp Muens
82cbccf6b0
Refactor plugins to use new constructor based options passing
2016-06-09 20:09:50 +02:00
Philipp Muens
e563a071b5
Add option definitions to core plugins
2016-06-09 19:43:13 +02:00
Philipp Muens
b7ce3e1ed2
Update plugins concept docs
...
Update plugins concept docs so that both, the serverless instance and the options are
shown in the examples.
2016-06-09 19:43:13 +02:00
Philipp Muens
2e701c1d4d
Fix failing tests for "create" plugin
2016-06-09 19:43:13 +02:00
Eslam A. Hefnawy
4d9e236b7e
added global rejection handler
2016-06-09 19:43:13 +02:00
Philipp Muens
09b701fa40
Start updating of create plugin to work with recent changes in PluginManager
2016-06-09 19:43:13 +02:00
Philipp Muens
c2fc2adead
Refactor help displaying in CLI
...
Extract the help displaying from processInput to an own method.
2016-06-09 19:43:13 +02:00
Philipp Muens
db9dfdde45
Replace error throwing with Serverless error class
2016-06-09 19:43:13 +02:00
Philipp Muens
90c4feeca5
Add validateOptions functionality in PluginManager class
2016-06-09 19:43:13 +02:00
Philipp Muens
40f6dab03f
Move options passing to the plugins constructor
2016-06-09 19:43:13 +02:00
Philipp Muens
85c603dbb0
Refactor CLI class usage
...
So that the loaded plugins are not passed into the constructor. This is a preparation
for the upcoming task to move the options to the plugins constructor rather than the hook
which is run.
2016-06-09 19:39:57 +02:00
Philipp Muens
9a53a64057
Merge pull request #1288 from serverless/add-aws-compile-s3-events-plugin
...
Add implementation for awsCompileS3Events plugin
2016-06-09 19:38:37 +02:00
Philipp Muens
48c9529f6b
Add documentation for "awsCompileS3Events" plugin
2016-06-09 19:10:07 +02:00
Philipp Muens
67ba3f06ae
Add merging of generated resources to the aws.Resources section (in service)
...
This way the plugin simply adds the Resources to the CloudFormation template in the
compileEvents lifecycle. The deploy plugin will use this resources to update the stack later on.
This removes the dependency between the awsCompileS3Events plugin and the deploy plugin
as the awsCompileS3Events plugin simply adds the resources to the section and forgets about it.
2016-06-09 19:08:54 +02:00
Philipp Muens
8e2dcf4c15
Add implementation for awsCompileS3Events plugin
2016-06-09 19:07:47 +02:00
Philipp Muens
231602531a
Merge pull request #1284 from serverless/extend-deploy-lifecycle
...
Extend deploy lifecycle
2016-06-09 19:03:19 +02:00
Eslam A. Hefnawy
2709286f90
fixed tests for plugin manager
2016-06-09 18:41:09 +02:00
Philipp Muens
2fe214b999
Add fix to check for the correct resource (should be a function)
2016-06-09 17:10:42 +02:00
Philipp Muens
a851b58c7f
Fix failing "awsDeploy" hook promise chain tests
2016-06-09 16:33:00 +02:00
Philipp Muens
fb4d31215b
Fix linting and naming issues
2016-06-09 16:08:52 +02:00
Philipp Muens
739e5d46a8
Add fix for update function in "updateStack"
...
This fix makes it possible to iterate over the service.resources.aws.Resources
property to attach the zipFileKey to the corresponding function resource.
Furthermore this fix removes the tight coupling between the "awsDeploy" and "awsCompileFunctions"
plugins.
2016-06-09 15:10:46 +02:00
Philipp Muens
cc258c8398
Uppercase "AwsDeploy" class name
...
So that it sticks to the overall naming convention.
2016-06-09 14:34:08 +02:00
Philipp Muens
f8d55f1766
Add documentation for the "awsCompileFunctions" plugin
2016-06-09 14:13:32 +02:00
Philipp Muens
a7a4d55b6a
Attach compiled functions to the aws.Resources object
...
This way the "compileFunctions" plugin has no direct dependency to the "awsDeploy"
plugin.
2016-06-09 14:05:00 +02:00
Eslam A. Hefnawy
b4fa9a498f
fixed sync promises in arary
2016-06-09 13:19:09 +02:00
Philipp Muens
061616f5d8
Fix broken create test (in createStack)
2016-06-09 07:52:48 +02:00
Philipp Muens
6d2e67f21a
Refactor awsDeploy to use new deploy lifecycles
...
The awsDeploy plugin now uses different lifecycles to split the tasks up and
introduce a way for 3rd party plugin developers to hook into those lifecycle to e.g.
add resources before everything is deployed.
2016-06-09 07:18:05 +02:00
Philipp Muens
e092308d6b
Fill empty strings for function template with placeholders
2016-06-08 11:58:01 +02:00
Philipp Muens
a7acecbf05
Remove programmatically role setting for Lambda function
2016-06-08 08:23:51 +02:00
Philipp Muens
2ed4283c1d
Add tests for option validation
...
Those tests will be remove later on when the new PluginManager is ready to be merged.
2016-06-08 07:35:31 +02:00
Philipp Muens
553bf31f05
Rename functionObj to functionObject
2016-06-08 06:52:13 +02:00
Philipp Muens
5d1894aa05
Remove "compileFunctions" out of "awsDeploy" plugin
2016-06-07 20:38:35 +02:00
Philipp Muens
0e6fde8ab0
Move Role addition out of "compileFunctions"
2016-06-07 20:35:37 +02:00
Philipp Muens
179e92cd01
Move "compileFunctions" into own plugin
2016-06-07 16:37:46 +02:00
Eslam λ Hefnawy
2979fefc48
Merge pull request #1274 from serverless/integration-testing
...
Integration testing for service lifecycle
2016-06-06 15:56:37 +02:00
Eslam A. Hefnawy
88cdbb39d4
check stack status for integration test
2016-06-06 15:43:08 +02:00
Eslam A. Hefnawy
75282ed360
added integration tests to travis
2016-06-06 15:03:16 +02:00
Eslam A. Hefnawy
0b7674a5a7
Merge branch 'v1.0' into integration-testing
2016-06-06 15:02:23 +02:00
Florian Motlik
4ad4d78ca8
Merge pull request #1277 from serverless/aws-variables
...
Add Encrypted AWS variables to build for integration tests
2016-06-06 14:58:21 +02:00
Eslam A. Hefnawy
aa228c832c
integration tests are now seperate
2016-06-06 14:55:17 +02:00
Florian Motlik
89b8a95641
Add Secret Env Variables for AWS
2016-06-06 14:50:35 +02:00
Eslam A. Hefnawy
745cbaa131
added integration tests for service lifecycle
2016-06-06 14:09:50 +02:00
Philipp Muens
f53b7d739f
Merge pull request #1237 from serverless/docs
...
Add basic docs structure / docs for create, deploy, remove and invoke plugins
2016-06-06 08:49:19 +02:00
Philipp Muens
aea591bc8b
Add example for plugin usage definition in serverless.yaml file
2016-06-06 08:28:52 +02:00
Philipp Muens
e0671671b4
Add updates to the create documentation based on PR comments
2016-06-06 08:28:52 +02:00
Philipp Muens
1abbdc5f75
Reformat config docs
...
So that they are easier to edit and view. Furthermore
serverless.yml is renamed to serverless.yaml to reflect recent
changes in service parsing.
2016-06-06 08:28:52 +02:00