79 Commits

Author SHA1 Message Date
Mariusz Nowak
7864f4d28d refactor(CLI Onboarding): Seclude from internal Framework logic 2021-05-12 12:41:30 +02:00
Mariusz Nowak
b915cc4671 refactor: Refactor isNpmPackageWritable to not depend on serverless 2021-05-12 12:41:30 +02:00
Mariusz Nowak
40fddcc0ee fix(CLI): Ensure to recognize interactive CLI command properly 2021-04-20 15:41:26 +02:00
Mariusz Nowak
87d380275b refactor: Replace config.servicePath with service.dir 2021-04-16 13:32:13 +02:00
Mariusz Nowak
fc3a4391b5 refactor: Introduce serviceDir and configurationFilename
In place of `configurationPath`
2021-04-16 13:32:13 +02:00
Mariusz Nowak
2294a4b4cb refactor(CLI): Move lifecycles definition to commands schema
It's needed to be able to process commands as introduced by plugins without a need of processing Serverless instance
2021-03-24 11:50:24 +01:00
Mariusz Nowak
d455b236cf refactor(CLI): Handle "help" with a schema 2021-03-22 15:31:17 +01:00
Mariusz Nowak
21cc4cf8cb refactor(CLI): Expose "--help" in supported command options 2021-03-16 09:34:33 +01:00
Mariusz Nowak
b9afc144bf refactor(CLI): Recognize interactive setup command in commands schema 2021-03-16 09:34:33 +01:00
Piotr Grzesik
217b9751ea refactor: Revert bluebird from lib/plugins/interactiveCli
This reverts commit 7c0ceb5c4a1171666e381ef9a00c6f133569732b.
2021-03-04 11:06:44 +01:00
Juanjo Diaz
7c0ceb5c4a
refactor: Remove bluebird from lib/plugins/interactiveCli (#9029) 2021-03-01 11:54:18 +01:00
Sudipto Das
9abe9db27f
refactor: Replace fse.exists with fs.promises.access (#8788) 2021-01-24 14:31:08 +01:00
Mariusz Nowak
f274cd7637 refactor: Seclude configuration parse from internals 2021-01-22 14:57:10 +01:00
Mariusz Nowak
b23bfdbf6a refactor(CLI): Seclude service config path resolution out of internals 2021-01-18 16:19:12 +01:00
Mariusz Nowak
293cd6d0e2 fix(CLI): Ensure to not follow with project setup on existing path 2021-01-18 16:19:12 +01:00
Mariusz Nowak
adc4e2f8cf refactor(CLI): Refactor to async/await 2021-01-18 16:19:12 +01:00
Mariusz Nowak
76fa62da3b fix(CLI): Fix configuration of a new service in interactive setup 2021-01-18 16:19:12 +01:00
Mariusz Nowak
cf7b25e458 style: Upgrade "prettier" to v2 2021-01-04 16:21:24 +01:00
Mariusz Nowak
3808471972 test: Move unit tests to "test/unit" folder 2020-11-30 16:53:52 +01:00
Mariusz Nowak
2c4fa7baec feat(CLI): Add auto update config step to interactive setup 2020-10-29 12:28:11 +01:00
Mariusz Nowak
b8ddd2553d test: Upgrade to @serverless/test v6.1 2020-10-29 12:28:11 +01:00
Mariusz Nowak
ef39e958db refactor: Upgrade "@serverless/utils" to v2
Drop "@serverless/inquirer" dependency
2020-09-23 15:14:25 +02:00
Mariusz Nowak
738c52f6e5 fix: Workaround config schema error on project initialization
It's a temporary patch until #8257 is properly solved
2020-09-16 15:34:08 +02:00
Mariusz Nowak
3177e40cee fix: Ensure to memoize config file resolution by instance
Memoizing by service name doesn't work when test configuration changes in same process
2020-09-14 14:15:12 +02:00
Christian Musa
33eef9f06b feat(CLI): Remove "slss", "serverless" command alias (#8161)
BREAKING CHANGE:
`slss` alias for `serverless` CLI ommand was removed. Rely on `sls` instead
2020-09-10 13:26:17 +02:00
Mariusz Nowak
8c3c7c4e3a chore: Rename "tests" folder to "test"
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Mariusz Nowak
96afed438c refactor: Switch to @serverless/util/config 2020-06-16 10:59:59 +02:00
Ahmad Mahmoud Mohammad
4724cb8eeb
refactor: Replace inquirer with @serverless/inquirer (#7729) 2020-05-26 10:12:24 +02:00
Kenan Christian Dimas
c106d53638
refactor: Upgrade 'fs-extra' to v8 (#7719) 2020-05-13 16:16:17 +02:00
Mariusz Nowak
c900900488 feat: Unconditionally display browser url 2019-12-17 08:42:57 +01:00
Mariusz Nowak
1e87d5856d
test: Upgrade to @serverless/test v3 2019-12-12 14:27:40 +01:00
Daniel Schep
d11ff1e316
Allow --app & --org cli option in interactive CLI (#6697)
* Allow plugins to add flags that are allowed during interactive CLI

* simpler return, comment, & move setting sls.interactiveCli

* allow listof starter pr ojects to be customized

* docs!

* lint

* remove return and hide interacive cli "command"

* expose whole initializeService module like aws is

* update copy

* 🤦

* make it easier to update initalizeprojectChoices, avoiding ugly inplace updates

* bump sfe dep

* version bump

* Revert "version bump"

This reverts commit 4c9449136e00ce195b9c119f983845aec26c3693.
2019-10-23 15:52:27 -04:00
Mariusz Nowak
535e373c6d
Ensure inquirer stubs are reset after each test 2019-10-16 14:28:08 +02:00
Mariusz Nowak
6ac33363d9
Ensure test runs in isolated environment 2019-10-16 11:38:41 +02:00
Mariusz Nowak
6005e57a11
Run sanity test in non supported environments 2019-10-16 10:10:52 +02:00
Mariusz Nowak
508039151e
Ensure to test tab completion only in supported environments 2019-10-15 17:52:14 +02:00
Mariusz Nowak
1cf186ea8b
Improve sinon stubs handling 2019-10-15 17:24:14 +02:00
Mariusz Nowak
83acd6653a
Simplify plugin paths handling 2019-10-15 17:21:57 +02:00
Mariusz Nowak
33bb0666cd
Interactive CLI tab completion setup step 2019-10-15 17:16:55 +02:00
Mariusz Nowak
c876123192
Improve message for Windows users 2019-09-24 12:49:21 +02:00
Mariusz Nowak
2586ac518e
Check for predefined credentials upfront 2019-09-23 15:56:14 +02:00
Mariusz Nowak
873f65c366
Improve consistency of return type 2019-09-23 15:56:13 +02:00
Mariusz Nowak
22aaeacac0
Improve message formatting 2019-09-23 15:56:13 +02:00
Mariusz Nowak
36a1102aeb
Seclude writeOnSetupSkip 2019-09-23 15:56:13 +02:00
Mariusz Nowak
dfac42eb54
Expose setupAws configuration
To enable customization in dashboard plugin
2019-09-23 15:56:13 +02:00
Mariusz Nowak
d0052e7651
Modularize setup AWS interactive CLI step
So it can be customized by dashboard plugin
2019-09-23 15:56:12 +02:00
Mariusz Nowak
814accb50d
Upgrade to @serverless/test v2.0.0 2019-09-19 15:34:12 +02:00
Mariusz Nowak
7eeb16a468
Rely on @serverless/test/configure-inquirer-stub 2019-09-13 16:53:47 +02:00
Mariusz Nowak
b2ead19255
Ensure process is seen as TTY for test run 2019-09-05 17:39:08 +02:00
Mariusz Nowak
b294b73c29
Cleanup test configuration 2019-09-05 16:12:50 +02:00