Comparing version 2.24.0 to 2.25.0
@@ -68,3 +68,3 @@ #! /usr/bin/env node | ||
var path = require('path'); | ||
var jarName = "wiremock-jre8-standalone-2.24.0.jar"; | ||
var jarName = "wiremock-standalone-2.25.0.jar"; | ||
var mainClass = "{{MAIN_CLASS}}"; | ||
@@ -71,0 +71,0 @@ var classPath = "{{CLASSPATH}}"; |
@@ -14,5 +14,5 @@ { | ||
"preferGlobal": true, | ||
"version": "2.24.0", | ||
"version": "2.25.0", | ||
"jdeploy": { | ||
"jar": "wiremock-jre8-standalone-2.24.0.jar" | ||
"jar": "wiremock-standalone-2.25.0.jar" | ||
}, | ||
@@ -19,0 +19,0 @@ "dependencies": { |
# Wiremock NPM | ||
[![NPM](https://img.shields.io/npm/v/wiremock.svg?style=flat-square) ](https://www.npmjs.com/package/wiremock) | ||
[![Build Status](https://travis-ci.org/tomasbjerre/wiremock-npm.svg?branch=master)](https://travis-ci.org/tomasbjerre/wiremock-npm) | ||
This is [Wiremock Standalone](http://wiremock.org/docs/running-standalone/) wrapped inside an NPM package. | ||
This is [Wiremock Standalone](http://wiremock.org/docs/running-standalone/) wrapped inside an NPM package. It relies only on dependencies found in NPM. It is created with [JDeploy](https://github.com/shannah/jdeploy) and will use the existing JRE if found, or download one with [node-jre](https://www.npmjs.com/package/node-jre). | ||
It only relies on dependencies found in an NPM package repository. It is created with [JDeploy](https://github.com/shannah/jdeploy) and will download and use a JRE, [node-jre](https://www.npmjs.com/package/node-jre), if one is not available. | ||
See: http://wiremock.org/docs/running-standalone/ | ||
## Usage | ||
## Example - Command line | ||
It is used as a command line tool like this: | ||
It can be used as a command line tool like this: | ||
@@ -17,4 +18,2 @@ ```bash | ||
See: http://wiremock.org/docs/running-standalone/ | ||
## Example - Mock API in frontend app | ||
@@ -28,6 +27,9 @@ | ||
``` | ||
http://localhost:8080/ -------[/api/*]------------> http://localhost:8081/ | ||
\ | ||
\ | ||
\-----[*]---------------> http://localhost:8082/ | ||
http://localhost:8080/ | ||
| | ||
| | ||
|---[/api/*]-> http://localhost:8081/ | ||
| | ||
\ | ||
\-[*]------> http://localhost:8082/ | ||
``` | ||
@@ -37,3 +39,3 @@ | ||
* http://localhost:8080/api/example Will serve the API with `npx wiremock`. | ||
* http://localhost:8080/whatever Will serve the frontend. This can be a Vue app or whatever. | ||
* `http://localhost:8080/api/example` Will serve the API with `wiremock`. | ||
* `http://localhost:8080/whatever` Will serve the frontend. This can be a Vue app or whatever. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39
12759582