Philipp Muens
82cbccf6b0
Refactor plugins to use new constructor based options passing
2016-06-09 20:09:50 +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
Eslam A. Hefnawy
b4fa9a498f
fixed sync promises in arary
2016-06-09 13:19:09 +02:00
Eslam A. Hefnawy
b1561800eb
fixed some linting issues
2016-06-02 15:33:23 +02:00
Eslam A. Hefnawy
ad67c7d780
moved neatness console.log to CLI
2016-06-01 17:30:33 +02:00
Philipp Muens
474c7f150c
Add "magic handler" zipping support
...
Add zipping of handler directories. Add a walkDirSync method which collects all the
file paths in a directory (needed for the .zip file creation for "magic handlers") in a synchronous way.
2016-05-31 17:13:05 +02:00
Eslam A. Hefnawy
e0cb16c7bf
successfully deployed functions
2016-05-31 16:20:09 +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
45dbe769ba
finished all tests for awsResourcesDeploy plugin
2016-05-25 14:42:31 +02:00
Eslam A. Hefnawy
e51ed686b8
added tests for validate method
2016-05-24 23:56:26 +02:00
Philipp Muens
329fda0d7d
Bring back spinner and log method
2016-05-24 14:58:19 +02:00
Philipp Muens
e5a5033db7
Add basic CLI help functionality
2016-05-24 14:58:19 +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 λ Hefnawy
55f544209f
Merge branch 'dev' into remove-populate
2016-05-24 10:45:34 +02:00
Eslam A. Hefnawy
d3d4c0ae53
merging dev into create
2016-05-23 21:49:19 +02:00
Philipp Muens
2bfc79e0e8
Rename arguments / args to options
2016-05-23 17:02:52 +02:00
Philipp Muens
c8639c678a
Add argument support for CLI and plugins
...
Add the possibility to access arguments inside plugins (e.g. "--function function1" or "-f function").
Additionally the "lifeCycleEvent" property is renamed to "lifecycleEvent".
2016-05-23 15:17:22 +02:00
Eslam A. Hefnawy
21daae8318
added create plugin
2016-05-23 00:30:56 +02:00
Eslam A. Hefnawy
7a717f2903
fixed some async tests
2016-05-20 20:08:50 +02:00
Eslam A. Hefnawy
476e145ba3
removed commented out code
2016-05-20 19:42:03 +02:00
Eslam A. Hefnawy
3df05b04f1
moved getPopulated logic to load()
2016-05-20 19:39:17 +02:00
Philipp Muens
30ee6d1592
Add basic CLI integration
...
Additionally unit and integration tests for the CLI are added.
2016-05-20 16:28:17 +02:00
Eslam A. Hefnawy
e5104fc0ea
fixed merging conflicts
2016-05-20 13:41:06 +02:00
Eslam A. Hefnawy
9665c54e0d
cleaned the codebase and fixed tons of linting issues
2016-05-20 13:33:54 +02:00
Eslam A. Hefnawy
590fc4dee0
Utils: shortId is now consistent
2016-05-20 08:43:41 +02:00
Eslam A. Hefnawy
e759fe1761
added functions and events to Service and tested it
2016-05-19 21:13:50 +02:00
Eslam A. Hefnawy
6435d39eff
fixed conflicts in all.js
2016-05-19 15:19:26 +02:00
Eslam A. Hefnawy
8b6b1b26b6
added tests for populating with custom syntax
2016-05-19 14:56:37 +02:00
Eslam A. Hefnawy
017fdae0c6
updated and increased test coverage for Utils
2016-05-19 12:24:46 +02:00
Philipp Muens
478e4b97a6
Fix PluginManager issues regarding PR feedback
2016-05-19 09:43:05 +02:00
Philipp Muens
47b3ab27ff
Change name of serverless instance to be more explicit
2016-05-18 19:52:26 +02:00
Philipp Muens
ce2c889661
Update naming of "before" and "after" hooks
...
Update the naming so that it matches the new naming pattern.
"before" and "after" are always prepended so that we don't run into
problems when a function already includes a "before" or "after".
2016-05-18 16:21:12 +02:00
Eslam A. Hefnawy
86ff6f7ea1
allow for more providers when loading resources
2016-05-18 16:19:31 +02:00
Eslam A. Hefnawy
d9198e1820
some cleanup
2016-05-18 15:59:19 +02:00
Philipp Muens
9b490492a4
Refactor code to match PR comments
2016-05-18 15:34:09 +02:00
Eslam A. Hefnawy
3443efc468
wrap expect throw inside a function
2016-05-18 14:19:32 +02:00
Eslam A. Hefnawy
d5b407f75b
added Config class tests
2016-05-18 13:42:58 +02:00
Eslam A. Hefnawy
712e60b621
finished Service class tests
2016-05-18 13:27:59 +02:00
Philipp Muens
d0b42c70e0
Update Promise check
...
So that it won't fail if nothing is returned by the hook.
2016-05-18 11:57:27 +02:00
Philipp Muens
f74f565859
Add intelligent "before" and "after" hook keywording
...
The PluginManager will run the correct hook even if the capitalization is
wrong ("foo:beforeBar" will be executed as well as "foo:beforebar"). This
way users don't have to deal with the correct capitalization of function names
issue.
2016-05-18 11:10:18 +02:00
Philipp Muens
a3afcd51ab
Add support to load service plugins
2016-05-18 10:17:51 +02:00
Philipp Muens
4e2fb39c81
Rename PluginManagement to PluginManager
2016-05-18 10:01:38 +02:00
Philipp Muens
57f7e20d85
Add Promise support for return value of hook functions
2016-05-18 09:32:41 +02:00
Philipp Muens
5869872e3b
Refactor loadCorePlugins functionality
...
Add the correct path to the plugin so that slice magic to get the correct
path is not necessary anymore.
2016-05-17 20:29:54 +02:00
Eslam A. Hefnawy
1fdcaf4763
implemented more Service methods and tests and updated populate function
2016-05-17 20:25:22 +02:00
Philipp Muens
7401ab2de7
Add PluginManagement class
...
Add basic functionality for the PluginManagement class.
Refs #1118 and #1116 .
2016-05-17 20:08:24 +02:00