Peter Indiola
4adc5cc197
Fix spelling and typos in docs, code variables and code comments
2019-11-20 23:28:56 +08: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
529a3459fd
Resolve local plugins withough hacking module.paths
2019-10-09 17:19:10 +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
Philipp Muens
7d728e509f
Update error message
2019-10-08 12:03:59 +02: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
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
Daniel Schep
4efbf845a2
variable prefix is always a string
2019-08-28 08:37:09 -04:00
Daniel Schep
851b043710
remove initialize hook stuff. moving to diff pr
2019-08-27 14:21:10 -04:00
Daniel Schep
b5757d334a
Array.reduce instead of Promise.reduce
2019-08-27 14:11:04 -04:00
Daniel Schep
729381f25e
move initialize hook into plugman.run & test
2019-08-27 11:40:07 -04:00
Daniel Schep
ed1117b5e8
fix tests and validate inputs
2019-08-27 09:47:26 -04:00
Daniel Schep
d1a2a30ef9
remove unused custom var getter flag
2019-08-27 08:53:34 -04:00
Daniel Schep
15319b5be1
s/isDependentService/isDisabledAtPrepopulation
2019-08-27 08:46:41 -04:00
Daniel Schep
569623e156
s/method/resolver/
2019-08-27 08:44:57 -04:00
Daniel Schep
7ccdde6178
asfaf
2019-08-26 08:13:34 -04:00
Daniel Schep
e3c4755dbe
WIP
2019-08-23 10:08:41 -04:00
Daniel Schep
12fea8f336
rename
2019-08-23 10:07:41 -04:00
Daniel Schep
faa5a07009
prettify
2019-08-21 12:46:21 -04:00
Daniel Schep
c69cb50555
objects not arrays for instances in variableResolvers
2019-08-21 11:11:46 -04:00
Daniel Schep
c3674e1293
safer & more explicit implementation of variableResolvesrs(also renamed)
2019-08-21 10:22:05 -04:00
Daniel Schep
55a794f4e0
drop support for the asyncInit function on plugins
2019-08-20 15:45:32 -04:00
Daniel Schep
c0ed311865
simplify variable getter hook system
2019-08-20 15:00:23 -04:00
Daniel Schep
02fa190d0b
Add plugin hooks to define config variable getters
2019-08-20 11:23:42 -04:00
Mariusz Nowak
4944f471b1
Prettify
2019-06-26 12:43:01 +02:00
Matthieu Napoli
1019939969
#6017 Plugin relative paths should start with ./
...
Following the discussion in #6261 it should be possible to load plugin via relative paths, as long as the path starts with `./`.
For example:
```yaml
plugins:
# will load myfirstplugin/plugin.js or myfirstplugin/plugin/index.js
- './myfirstplugin/plugin'
# will load mysecondplugin/plugin.js or mysecondplugin/plugin/index.js
- './mysecondplugin/plugin'
```
2019-06-20 11:55:55 +02:00
Matthieu Napoli
152b4c460a
Fix #6017 Allow to load plugin from path
...
The list of plugins can now contain relative paths.
For example:
```yaml
plugins:
# will load myfirstplugin/plugin.js or myfirstplugin/plugin/index.js
- 'myfirstplugin/plugin'
# will load mysecondplugin/plugin.js or mysecondplugin/plugin/index.js
- 'mysecondplugin/plugin'
```
2019-06-18 16:12:49 +02:00
Daniel Schep
970a1cc3f8
refactor getServerlessConfigFile to simply accept a serverless object
2019-06-10 11:19:14 -04:00
Daniel Schep
94bf5a4382
delint
2019-06-10 11:19:14 -04:00
Daniel Schep
2b81303370
--config option.
...
closes #5589
closes #4485
closes #4473
closes #4124
closes #5822
2019-06-10 11:19:14 -04:00
Daniel Schep
6135a1e14c
fix yarn install of SFE integration
...
closes #6181
2019-05-28 16:03:01 -04:00