Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit bb7824b

Browse files
authored
Merge pull request #117 from mocks-server/release
Release v2.0.0
2 parents 10f3f06 + adf4020 commit bb7824b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2329
-464
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- master
66
- release
7+
- pre-release
78
pull_request:
89
jobs:
910
test:

.github/workflows/check-package-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: actions/checkout@v2
1212
- name: Get NPM version is new
1313
id: check
14-
uses: EndBug/version-check@v1.6.0
14+
uses: EndBug/version-check@v2.0.1
1515
with:
1616
diff-search: true
1717
file-name: ./package.json

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
# tests
1010
/coverage
1111
/mocks
12-
/test/e2e/main/fixtures/files-watch
12+
/test/e2e/main/v1/fixtures/files-watch
13+
/test/e2e/main/v1/fixtures/mocks.config.js
14+
/test/e2e/main/v2/fixtures/temp
15+
/test/e2e/main/v2/fixtures/mocks.config.js
1316

1417
# misc
1518
.DS_Store

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,49 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
### Changed
1010
### Fixed
1111
### Removed
12+
### BREAKING CHANGE
13+
14+
## [2.0.0] - 2021-02-17
15+
16+
### Added
17+
- feat: Display current mock.
18+
- feat: Display menus for changing current mock.
19+
- feat: Add menus for changing route variant and restore variants
20+
21+
### Changed
22+
- feat: Display legacy options and menus only when core `pathLegacy` setting has value. Add toggle legacy watch menu.
23+
- refactor: Refresh inquirer main options every time main menu is displayed.
24+
- chore(deps): Update dependencies
25+
26+
### Fixed
27+
- fix: Resolve previous inquirers before displaying a new one
28+
- fix: Start promise was never resolved
29+
30+
### BREAKING CHANGE
31+
- Changed format of `cli` option to boolean (now `--no-cli` has to be used to disable it)
32+
33+
## [2.0.0-beta.2] - 2021-02-16
34+
35+
### Changed
36+
- chore(deps): Update mocks-server/core dependency. Adapt tests.
37+
38+
## [2.0.0-beta.1] - 2021-02-14
39+
40+
### Added
41+
- feat: Display current mock.
42+
- feat: Display menus for changing current mock.
43+
- feat: Add menus for changing route variant and restore variants
44+
45+
### Changed
46+
- feat: Display legacy options and menus only when core `pathLegacy` setting has value. Add toggle legacy watch menu.
47+
- refactor: Refresh inquirer main options every time main menu is displayed.
48+
49+
### Fixed
50+
- fix: Resolve previous inquirers before displaying a new one
51+
- fix: Start promise was never resolved
52+
53+
### BREAKING CHANGE
54+
- Changed format of `cli` option to boolean (now `--no-cli` has to be used to disable it)
1255

1356
## [1.4.1] - 2020-12-25
1457

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77

88
# [![Mocks Server][logo-url]][website-url] Mocks Server Plugin Inquirer CLI
99

10-
Plugin for [Mocks Server][website-url] that provides an interactive CLI that allows to change the server settings while it is running and displays logs and alerts.
10+
[Mocks Server][website-url] plugin that provides an interactive CLI that allows to change the server settings while it is running and displays logs and alerts.
1111

1212
## Usage
1313

14-
This plugin is preinstalled in the [main distribution of the Mocks Server project][main-distribution-url]. _If you want ot install it by yourself, you can refer to the [plugins documentation website][plugins-url]._
14+
This plugin is preinstalled in the [main distribution of the Mocks Server project][main-distribution-url]. _If you want ot install it by yourself, you can refer to the [plugins documentation][plugins-url]._
1515

16-
![Interactive CLI](assets/cli_animation.gif)
16+
![Interactive CLI][animated-image-url]
1717

1818
## Main features
1919

20-
* __Displays current [settings][settings-url].__ _Settings will be refreshed automatically even if they are changed using other plugins, as the REST API, etc._
21-
* __Allows changing [settings][settings-url].__
20+
* __Displays current [settings][settings-url].__ _Settings will be refreshed automatically even when changed using other plugins, as the REST API, etc._
21+
* __Allows to change [settings][settings-url].__
2222
* __Displays current alerts.__ _Alerts include errors when loading mock files, wrong options, etc._
2323
* __Displays logs.__ _Mocks-server logs are displayed in real time._
2424

2525
## Options
2626

27-
* `cli`: `<String>` Start interactive CLI or not. Default is `true`. Use `false` to disable it.
27+
* `cli`: `<String>` Start interactive CLI or not. Default is `true`. Use `false` to disable it _(`--no-cli`) when using command line arguments)_
2828

2929
## Support
3030

31-
[Inquirer][inquirer-url] is used for displaying the interactive CLI. You can [consult his OS Terminals support here][inquirer-support].
31+
[Inquirer][inquirer-url] is used for displaying the interactive CLI. You can [consult its OS Terminals support here][inquirer-support].
3232

3333
## Contributing
3434

@@ -40,6 +40,7 @@ Please read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of
4040
[website-url]: https://www.mocks-server.org
4141
[plugins-url]: https://www.mocks-server.org/docs/plugins-adding-plugins
4242
[settings-url]: https://www.mocks-server.org/docs/configuration-options
43+
[animated-image-url]: https://www.mocks-server.org/img/inquirer-cli.gif
4344
[main-distribution-url]: https://www.npmjs.com/package/@mocks-server/main
4445
[options-url]: https://www.mocks-server.org/docs/configuration-options
4546
[logo-url]: https://www.mocks-server.org/img/logo_120.png

jest.e2e.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
clearMocks: true,
77

88
testMatch: ["<rootDir>/test/e2e/**/*.spec.js"],
9-
// testMatch: ["<rootDir>/test/e2e/**/web-tutorial-files-watch.spec.js"],
9+
// testMatch: ["<rootDir>/test/e2e/main/v2/files-watch.spec.js"],
1010

1111
// Indicates whether the coverage information should be collected while executing the test
1212
collectCoverage: false,

0 commit comments

Comments
 (0)