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

Commit

Permalink
Merge pull request #117 from mocks-server/release
Browse files Browse the repository at this point in the history
Release v2.0.0
  • Loading branch information
javierbrea authored Feb 17, 2021
2 parents 10f3f06 + adf4020 commit bb7824b
Show file tree
Hide file tree
Showing 69 changed files with 2,329 additions and 464 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- release
- pre-release
pull_request:
jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-package-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: actions/checkout@v2
- name: Get NPM version is new
id: check
uses: EndBug/version-check@v1.6.0
uses: EndBug/version-check@v2.0.1
with:
diff-search: true
file-name: ./package.json
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
# tests
/coverage
/mocks
/test/e2e/main/fixtures/files-watch
/test/e2e/main/v1/fixtures/files-watch
/test/e2e/main/v1/fixtures/mocks.config.js
/test/e2e/main/v2/fixtures/temp
/test/e2e/main/v2/fixtures/mocks.config.js

# misc
.DS_Store
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,49 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
### Fixed
### Removed
### BREAKING CHANGE

## [2.0.0] - 2021-02-17

### Added
- feat: Display current mock.
- feat: Display menus for changing current mock.
- feat: Add menus for changing route variant and restore variants

### Changed
- feat: Display legacy options and menus only when core `pathLegacy` setting has value. Add toggle legacy watch menu.
- refactor: Refresh inquirer main options every time main menu is displayed.
- chore(deps): Update dependencies

### Fixed
- fix: Resolve previous inquirers before displaying a new one
- fix: Start promise was never resolved

### BREAKING CHANGE
- Changed format of `cli` option to boolean (now `--no-cli` has to be used to disable it)

## [2.0.0-beta.2] - 2021-02-16

### Changed
- chore(deps): Update mocks-server/core dependency. Adapt tests.

## [2.0.0-beta.1] - 2021-02-14

### Added
- feat: Display current mock.
- feat: Display menus for changing current mock.
- feat: Add menus for changing route variant and restore variants

### Changed
- feat: Display legacy options and menus only when core `pathLegacy` setting has value. Add toggle legacy watch menu.
- refactor: Refresh inquirer main options every time main menu is displayed.

### Fixed
- fix: Resolve previous inquirers before displaying a new one
- fix: Start promise was never resolved

### BREAKING CHANGE
- Changed format of `cli` option to boolean (now `--no-cli` has to be used to disable it)

## [1.4.1] - 2020-12-25

Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@

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

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.
[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.

## Usage

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]._
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]._

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

## Main features

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

## Options

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

## Support

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

## Contributing

Expand All @@ -40,6 +40,7 @@ Please read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of
[website-url]: https://www.mocks-server.org
[plugins-url]: https://www.mocks-server.org/docs/plugins-adding-plugins
[settings-url]: https://www.mocks-server.org/docs/configuration-options
[animated-image-url]: https://www.mocks-server.org/img/inquirer-cli.gif
[main-distribution-url]: https://www.npmjs.com/package/@mocks-server/main
[options-url]: https://www.mocks-server.org/docs/configuration-options
[logo-url]: https://www.mocks-server.org/img/logo_120.png
Expand Down
2 changes: 1 addition & 1 deletion jest.e2e.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
clearMocks: true,

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

// Indicates whether the coverage information should be collected while executing the test
collectCoverage: false,
Expand Down
Loading

0 comments on commit bb7824b

Please sign in to comment.