Mariusz Nowak
f3017894c8
Update @serverless/test dependency
2019-10-21 17:42:50 +02:00
Mariusz Nowak
7fce1c77a3
Remove obsolete comment
2019-10-21 17:42:09 +02:00
Mariusz Nowak
16fa70c209
Improve CLI integration tests
2019-10-21 17:39:59 +02:00
Mariusz Nowak
2c836580d3
Lint fix
2019-10-21 17:39:59 +02:00
Mariusz Nowak
2c26e6f423
Lint fixes
2019-10-21 17:39:59 +02:00
Mariusz Nowak
c43c3f5e62
Improve timeout setup
2019-10-21 17:39:59 +02:00
Mariusz Nowak
b33e96dbce
Allow to customize serverless binary path
2019-10-21 17:39:59 +02:00
Mariusz Nowak
389e61d3e8
Reconfigure to rely on spawn and env resolver
2019-10-21 17:39:58 +02:00
Mark Tse
e62ddadc9d
chore - stop using deprecated 'new Buffer()' method.
2019-10-13 15:15:26 -04:00
Mariusz Nowak
050cb90684
Merge pull request #6814 from serverless/improve-plugins-load
...
Improve plugins resolution and initialization flow
2019-10-10 06:23:44 -05:00
Mariusz Nowak
4d9006bcdf
Merge pull request #6808 from kdnakt/variables-add-question
...
Make question mark available as variables fallback
2019-10-10 06:01:36 -05:00
Philipp Muens
c3ce4280b1
Run Prettier
2019-10-10 12:40:57 +02:00
Mariusz Nowak
07726b6be8
Require all plugins before their initialization.
...
It allows to exit early on initialization errors, and provides means to customize core plugins by service plugin before they're initialized
2019-10-10 09:18:36 +02:00
Mariusz Nowak
a299ec7ce9
Remove obsolete lint instruction
2019-10-10 09:11:08 +02:00
Doug Moscrop
0fe004e942
allow empty arrays in overrides
2019-10-09 18:44:41 -04:00
Mariusz Nowak
529a3459fd
Resolve local plugins withough hacking module.paths
2019-10-09 17:19:10 +02:00
Mariusz Nowak
69b2b65f2d
Expose output in case of test crash
2019-10-09 17:16:59 +02:00
Mariusz Nowak
8ae73e36fd
Improve servicePath handling
2019-10-09 17:16:58 +02:00
Mariusz Nowak
a62f15f661
Ensure to statically require core plugins
2019-10-09 17:16:58 +02:00
Mariusz Nowak
40ea32f44b
Pass already required plugins to loadPlugins method
2019-10-09 17:16:58 +02:00
Mariusz Nowak
c68c085290
Improve tests
2019-10-09 17:16:57 +02:00
kdnakt
12cad14dce
Make question mark available as variables fallback
2019-10-09 09:10:32 +09:00
Philipp Muens
7d728e509f
Update error message
2019-10-08 12:03:59 +02:00
Eslam A. Hefnawy
7ee130ad28
prettify components versions
2019-09-18 18:14:22 +03:00
Eslam A. Hefnawy
46f2083c41
fix tests
2019-09-18 16:24:25 +03:00
Eslam A. Hefnawy
b5ef8bb9cd
fixed tests and lints
2019-09-18 15:29:30 +03:00
Eslam A. Hefnawy
b79c9060ea
remove version line escape
2019-09-18 15:10:17 +03:00
Eslam A. Hefnawy
792a5fb4b1
added components versions
2019-09-18 14:49:30 +03:00
Daniel Schep
65fbf684d0
Move where initialize lifecycle hook is called ( #6687 )
...
Move where initialize lifecycle hook is called
2019-09-17 08:22:17 -04:00
Philipp Muens
747b98510c
Address PR review comments
2019-09-17 10:52:39 +02:00
Daniel Schep
ad0252dec3
do async plugin init in load all plugins
2019-09-16 14:59:59 -04:00
Daniel Schep
9748b4e124
Revert "drop support for the asyncInit function on plugins"
...
This reverts commit 55a794f4e07cd7a903ee80c4b68f9f4818b40355.
2019-09-16 08:34:01 -04:00
Daniel Schep
3c212322a7
Revert "move where initialize lifecycle hook is called"
...
This reverts commit 6bd2b537a9d5575c38bddd6048363736f5b4490e.
2019-09-16 08:33:20 -04:00
Daniel Schep
6bd2b537a9
move where initialize lifecycle hook is called
...
We actually still need to call it before variables are populated.
The enterprise plugin needs it so that credentials in deploy profiles will work
when ${cf} ${s3} and ${ssm} vars are resolved.
This shouldnot be a major issue since didnot publish docs about this lifecycle hook
2019-09-13 17:06:45 -04:00
Mariusz Nowak
6c949450bc
Refactor to rely on @serverless/test/skip-with-notice
2019-09-13 16:53:47 +02:00
Mariusz Nowak
5a77bcaf7f
Improve logic readability
2019-09-06 14:39:40 +02:00
Mariusz Nowak
16f358115a
Skip in case of 'plugin' command only on not found error
2019-09-06 14:39:21 +02:00
Mariusz Nowak
b2cf1025c7
Improve help case handling
2019-09-06 14:39:19 +02:00
Mariusz Nowak
f5e71c2b5f
Fix module not found error detection
2019-09-06 14:32:05 +02:00
Mariusz Nowak
c4a11fed59
Cover only plugin load with error handler
2019-09-06 14:32:05 +02:00
Mariusz Nowak
ca871ca8c4
In all cases rethrow original plugin error
2019-09-06 12:56:23 +02:00
astuyve
5b9a1cc105
Remove enterprise from upgrade notes
2019-09-03 13:09:45 -05:00
Philipp Muens
b87008c15d
Easier to understand error message
2019-09-03 12:35:48 +02:00
Daniel Schep
a231e0302d
changes for @erikerikson's review
2019-08-30 09:29:12 -04:00
Daniel Schep
9e82d11a46
fix variable prefix regex
2019-08-30 07:22:34 -04:00
Daniel Schep
43076c0f22
Merge remote-tracking branch 'origin/master' into custom-variable-getters
2019-08-29 12:38:58 -04:00
Daniel Schep
c6f3611177
prettier
2019-08-29 12:23:41 -04:00
Daniel Schep
fc9b9066b6
check for falsey variable resolver
2019-08-29 08:35:54 -04:00
Daniel Schep
91ae8bcc17
Add initialize lifecycle event ( #6601 )
...
* Revert "remove initialize hook stuff. moving to diff pr"
This reverts commit 851b043710fffd6e88d025e4da741bb8af35ba8e.
* Switch to Bluebird Promise implementation
2019-08-28 12:05:17 -04:00
Daniel Schep
dd1ba83e5d
validate that options is an object if not a function
2019-08-28 08:47:08 -04:00