94 Commits

Author SHA1 Message Date
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
Philipp Muens
e44ceb5183 Add better alignment / indentation for options 2016-06-28 14:54:27 +02:00
Philipp Muens
188713447f Add show required options in CLI functionality 2016-06-28 14:34:30 +02:00
Eslam A. Hefnawy
381cc3c8ad added docs for understanding serverless 2016-06-24 17:17:18 +02:00
Eslam A. Hefnawy
d7c50f3626 greeting is now generated on help only 2016-06-24 15:42:52 +02:00
Eslam A. Hefnawy
64a5248477 fixed help logs 2016-06-24 12:50:22 +02:00
Eslam A. Hefnawy
09978b3c72 fixed error message 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
8b9a516a1d safely loading serverless.env.yaml 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
d2dc0ba58e ZERO linting issues and test coverage of 93% 🎉 🎉 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
d05d6ad961 Fix YAML indentation when dumping
This way all our YAML files follow the 4 spaces best practice.
2016-06-22 09:29:51 +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
Philipp Muens
c84f5e93aa Remove unnecessary convertRegionName function 2016-06-21 11:36:36 +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
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