112 Commits

Author SHA1 Message Date
Philipp Muens
747b98510c Address PR review comments 2019-09-17 10:52:39 +02: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
Mariusz Nowak
b2cf1025c7
Improve help case handling 2019-09-06 14:39:19 +02:00
Mariusz Nowak
ca871ca8c4
In all cases rethrow original plugin error 2019-09-06 12:56:23 +02:00
Daniel Schep
a231e0302d changes for @erikerikson's review 2019-08-30 09:29:12 -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
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
Philipp Muens
dec3d5ff40 Update docs / Fix typos 2019-08-28 13:30:14 +02:00
Daniel Schep
851b043710 remove initialize hook stuff. moving to diff pr 2019-08-27 14:21:10 -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
569623e156 s/method/resolver/ 2019-08-27 08:44:57 -04:00
Daniel Schep
0ca9c2ed67 lint 2019-08-26 13:39:21 -04:00
Daniel Schep
83591d507c fix tests 2019-08-26 12:29:12 -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
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
d3bcfeea78 lint 2019-08-20 14:39:20 -04:00
Daniel Schep
8b53a4323a lint & docs 2019-08-20 14:29:40 -04:00
Daniel Schep
e4d29bb9cd test coverage for loading variable getters 2019-08-20 14:18:52 -04:00
Mariusz Nowak
02192415be
Improve serverless mock 2019-07-01 13:05:49 +02: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
Mariusz Nowak
8ca00b6f9f
Increase default timeout
Some tests tend to timeout especially when run on Windows in VM
2019-06-05 10:59:22 +02:00
Mariusz Nowak
e75a1eabb7
Upgrade after chai update 2019-06-03 16:57:41 +02:00
Mariusz Nowak
54bdfdf7eb
Update after chai upgrade 2019-06-03 16:55:09 +02:00
Mariusz Nowak
1eb9deb37b
Fix instances checking in tests 2019-06-03 16:54:56 +02:00
Mariusz Nowak
f6d993e97b
Merge with master 2019-05-31 12:36:53 +02:00
Mariusz Nowak
78c2025f13
Ensure to mirror mandatory windows env var 2019-05-31 12:03:40 +02:00
Mariusz Nowak
9c5a13badd
Lint 2019-05-30 22:20:36 +02:00
Mariusz Nowak
e82eed38c1
Expose process output in case of crash 2019-05-30 22:08:33 +02:00
Philipp Muens
773e9af3c1 Thorough integration testing 2019-05-30 15:20:58 +02:00
Mariusz Nowak
531f4600db
Isolate process.env toggling in tests 2019-05-29 10:15:18 +02:00
Daniel Schep
c636c8dcb8 Merge remote-tracking branch 'origin/master' into plat-916 2019-05-24 12:47:46 -04:00
Daniel Schep
df5cfd4e4d Merge branch 'master' into plat-916 2019-05-23 08:52:08 -04:00
Mariusz Nowak
5bea069b88
Merge branch 'master' into improve-promised-bdd-setup 2019-05-21 10:24:13 +02:00
Mariusz Nowak
56b8c8f42e
Whitespace 2019-05-20 13:39:29 +02:00
Mariusz Nowak
3ad898b450
Improve whitespace handling 2019-05-20 13:37:53 +02:00
Mariusz Nowak
87afded3d7
Ensure to return promise 2019-05-20 10:58:05 +02:00
Mariusz Nowak
5a48c84c2e
Ensure needed test methods 2019-05-15 17:36:29 +02:00
Daniel Schep
68b9c39f34 Merge remote-tracking branch 'origin/master' into plat-916 2019-05-14 09:49:29 -04:00
Mariusz Nowak
c35cfb19fb
Improve toggling of process.env vars 2019-05-14 13:44:49 +02:00
Mariusz Nowak
648368ab60
Ensure no side effects 2019-05-14 13:27:35 +02:00
Mariusz Nowak
d193dc8b63
Ensure to delete env vars
Due to string coercion assigining undefined sets them
with "undefined" string
2019-05-14 12:40:56 +02:00
Daniel Schep
660917e3b0 test coverage for async plugin initialization 2019-05-10 14:55:26 -04:00
Daniel Schep
c06a67851e built in integration of serverless enterprise 2019-05-01 15:48:12 -04:00