252 Commits

Author SHA1 Message Date
Mariusz Nowak
c563581ac9 refactor: Construct user errors with ServerlessError 2021-05-19 13:16:42 +02:00
Mariusz Nowak
105807a674 refactor(CLI Onboarding): Integrate steps from dashboard plugin 2021-05-12 12:41:30 +02:00
Mariusz Nowak
4f6a50a2e1 refactor(Telemetry): Make generatePayload serverless independent 2021-05-12 12:41:30 +02:00
Piotr Grzesik
e1b9ba46bd refactor(Telemetry): Do not generate payload if telemetry disabled 2021-04-27 14:01:26 +02:00
Piotr Grzesik
fac47cfa23 refactor(Telemetry): Only process in PluginManager if flag missing 2021-04-27 14:01:26 +02:00
Piotr Grzesik
82040b427e refactor: Add code to ServerlessError in lib/classes 2021-04-23 13:34:20 +02:00
Piotr Grzesik
d3ecb7cc3b feat(Telemetry): Record all commands and send only on deploy 2021-04-19 16:18:24 +02:00
Mariusz Nowak
e8c8f1cfff refactor: Rename servicePath vars to serviceDir 2021-04-16 13:32:13 +02:00
Mariusz Nowak
87d380275b refactor: Replace config.servicePath with service.dir 2021-04-16 13:32:13 +02:00
Piotr Grzesik
8aa275725b refactor: Use async/await in PluginManager 2021-04-13 09:15:30 +02:00
Mariusz Nowak
6292197ee1 refactor(Dashboard): Provide direct internal access to dashboard plugin 2021-03-30 10:22:40 +02:00
Mariusz Nowak
afad2315a5 refactor(CLI): Move to CLI logic required options validation 2021-03-26 10:11:57 +01:00
Mariusz Nowak
aca3c0d57d refactor(CLI): Seclude command help render from internals 2021-03-26 10:11:57 +01:00
Mariusz Nowak
0f353750f1 fix: Ensure detection of external plugins is multi instance safe 2021-03-26 10:11:57 +01:00
Mariusz Nowak
2dacbcce85 feat(CLI): Validate command and options against resolved schema 2021-03-24 11:50:24 +01:00
Mariusz Nowak
1618e23c5c refactor(Plugins): Bulletproof way to recognize external plugins
It ensures that also plugins added externally by invoking `pluginManager.addPlugin` are recognized as external.

e.g. such practise can be observed here: c53f535204/src/index.ts
2021-03-24 11:50:24 +01:00
Mariusz Nowak
f8b50b7079 refactor: Remove vague comment 2021-03-24 11:50:24 +01:00
Mariusz Nowak
a48117041c refactor(CLI): Integrate isHelpRequest into resolveInput util 2021-03-18 14:36:18 +01:00
Mariusz Nowak
6ec463cbe7 fix(CLI): Improve handling of container commands
Allow to run them, and simply show help output if they're run
2021-03-16 09:34:33 +01:00
Mariusz Nowak
15b5a11ecd refactor: Refactor pluginManager.invoke to async/await 2021-03-16 09:34:33 +01:00
Mariusz Nowak
87b8d019c2 refactor: Refactor pluginManager.spawn to async/await 2021-03-16 09:34:33 +01:00
Mariusz Nowak
a9a48f675e fix(CLI): Fix internal commands merge logic
Originally some properties which should not have been overwritten (as `pluginName`) got overwritten and that resulted with errorneous help output
2021-03-16 09:34:33 +01:00
Mariusz Nowak
140990d150 refactor(CLI): Improve error construct 2021-03-16 09:34:33 +01:00
Mariusz Nowak
14a2640bd9 refactor(CLI): Seclude schema of core commands 2021-03-16 09:34:33 +01:00
Mariusz Nowak
c9087ec4e6 refactor(CLI): Rely on cli/is-help-request util 2021-03-05 16:17:42 +01:00
Piotr Grzesik
c41bd64bb2 refactor: Revert removal of bluebird from lib/classes
This reverts commit 1a694ae4aab0a347b018380110b9a436f6c43c1e.
2021-03-04 11:06:44 +01:00
Juanjo Diaz
1a694ae4aa
refactor: Remove bluebird from lib/classes (#8943) 2021-02-19 18:03:04 +01:00
Juanjo Diaz
006557d847
refactor: Use standalone ServerlessError. (#8897) 2021-02-09 09:20:55 +01:00
Piotr Grzesik
f6c5427b0f chore: Bump @serverless/utils to "v3.0.0" 2021-01-26 16:23:31 +01:00
Mariusz Nowak
f274cd7637 refactor: Seclude configuration parse from internals 2021-01-22 14:57:10 +01:00
Frédéric Barthelet
66aa66fbfe
refactor: Replace _.set with native assignment 2021-01-05 11:18:10 +01:00
Mariusz Nowak
cf7b25e458 style: Upgrade "prettier" to v2 2021-01-04 16:21:24 +01:00
Vinod Tahelyani
42874946fc
feat(CLI): Improve general --help and remove --verbose option (#8532) 2020-11-25 10:42:08 +01:00
Piotr Grzesik
56c7e443a0
refactor: Replace _.forOwn with Object.entries().forEach (#8284) 2020-09-24 17:17:39 +02:00
Piotr Grzesik
76e02cc09c
refactor: Replace _.forEach with Object.entries().forEach (#8280) 2020-09-24 10:31:32 +02:00
Piotr Grzesik
b867df147a
refactor: Replace _.{entries|entriesIn|toPairs} with Object.entries
(PR #8275)
2020-09-23 13:13:54 +02:00
Piotr Grzesik
57d1ce1a66
refactor: Replace _.values with Object.values (#8274) 2020-09-23 13:09:50 +02:00
Derek Kulinski
82f6db7a1f
feat(Plugins): Fallback plugins search to global installation folder
(PR #8038)
2020-08-20 09:40:48 +02:00
Mariusz Nowak
4660acd324 fix(CLI): Mark 'help' as command that doesn't depend on external plugins 2020-08-07 10:40:55 +02:00
Mariusz Nowak
d8a73b8326 fix(Dashboard): Ensure service independent commands work unconditionally 2020-08-07 10:40:55 +02:00
Mariusz Nowak
3ffa549183 fix(CLI): Ensure to show help and version in context of invalid service 2020-07-10 17:35:23 +02:00
andreizet
7bbd04a693
refactor: Replace _.has with better counterparts (#7915) 2020-07-07 17:18:48 +02:00
Piotr Grzesik
75bf185785
refactor: Replace _.some usage with array.some (#7901) 2020-07-06 09:08:44 +02:00
Dai Van Nguyen
297f7d85e0
refactor: Replace _.reduce with array.reduce (#7883) 2020-06-26 12:32:07 +02:00
Dai Van Nguyen
4c33476210
refactor: Replace _.isEmpty with native counterparts (#7873) 2020-06-25 15:17:52 +02:00
Mariusz Nowak
96afed438c refactor: Switch to @serverless/util/config 2020-06-16 10:59:59 +02:00
Nguyễn Việt Đức
aaa2f965a7
refactor: Replace _.replace with string.replace (#7843) 2020-06-16 08:56:24 +02:00
Nguyễn Việt Đức
4c6f8be5cc
refactor: Replace _.map with array.map (#7827) 2020-06-12 09:59:42 +02:00
srd2014
053f5f420b
refactor: Replace _.split with string.split (#7820) 2020-06-09 12:23:14 +02:00
Chris Villanueva
77fbb5969b
refactor: Replace _.includes with val.includes (#7818) 2020-06-08 09:13:50 +02:00