51 Commits

Author SHA1 Message Date
ac360
00ad5626c7 improve code style and tests 2016-11-04 08:13:32 -07:00
ac360
de2042cb8f reduce line length 2016-11-04 07:48:15 -07:00
ac360
decbd6eaef reduce long line 2016-11-04 07:28:55 -07:00
ac360
c8a9b3cf6d fix for empty plugins property in serverless.yml 2016-11-04 07:21:16 -07:00
Andrew McClenaghan
0c3bf24ea6 Add folder for local plugins 2016-11-01 21:06:55 +07:00
Philipp Muens
4a9dc58e18 Add string and instance powered provider check 2016-10-19 08:32:06 +02:00
Philipp Muens
a60a9b575b Remove provider storage on PluginManager level 2016-10-19 08:32:06 +02:00
Andrew McClenaghan
8206e0e056 Add usage for command when missing options 2016-10-10 10:34:59 +02:00
Doug Moscrop
a0cde12edc add Merge plugin commands 2016-09-28 13:45:04 -04:00
Doug Moscrop
0c452a6af8 fix Verify that a command is valid before trying to populate variables 2016-09-28 11:34:50 -04:00
Doug Moscrop
19f5bfb27f refactor PluginManager and CLI to better support command nesting 2016-09-28 11:34:50 -04:00
Doug Moscrop
56ed24e348 refactor PluginManager.run hook collection slightly 2016-09-09 21:01:48 -04:00
horike37
1e2bdc1787 Add custom validation for plugin options 2016-08-30 05:33:27 +09:00
Sander van de Graaf
c565dc2b81 made eslint happy 2016-08-05 13:49:35 +02:00
Sander van de Graaf
6816ced0f6 removed individual lodash functions 2016-08-05 13:30:35 +02:00
Philipp Muens
67060fbb8d Remove duplicate comment 2016-08-01 13:35:45 +02:00
Philipp Muens
b5b596f534 Add support to convert shortcut to options for two level deep commands 2016-08-01 11:45:52 +02:00
Philipp Muens
4630f02f2f Fix plugins are loaded twice bug 2016-07-26 11:03:40 +02:00
Arnaud Rebts
7dd58f0325 Implement service plugin loading
Resolves #1442
2016-07-12 11:16:27 +02:00
Eslam λ Hefnawy
2cf4633d50 Merge branch 'v1.0' into better-errors 2016-07-04 18:10:29 +09:00
Eslam A. Hefnawy
7e019f6aa7 replace sls with serverless 2016-07-04 09:51:59 +01: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
Philipp Muens
dfa15aa696 Fix wrong indentation of error message 2016-07-04 09:51:38 +01:00
Philipp Muens
7ccdc82e09 Add provider awareness for plugins 2016-07-04 09:51:38 +01:00
Philipp Muens
267e6c58fb Add shortcut support for options 2016-06-29 14:07:55 +02:00
Eslam A. Hefnawy
09978b3c72 fixed error message 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
7c92c5004f added spacers 2016-06-23 15:55:57 +02:00
Philipp Muens
008df83d42 Fixes #1379 - Add command validation in PluginManager 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
c16985a0d9 better ux for error handling 2016-06-23 15:55:57 +02:00
Philipp Muens
82cbccf6b0 Refactor plugins to use new constructor based options passing 2016-06-09 20:09:50 +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
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
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 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
9665c54e0d cleaned the codebase and fixed tons of linting issues 2016-05-20 13:33:54 +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
Philipp Muens
9b490492a4 Refactor code to match PR comments 2016-05-18 15:34:09 +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