Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7
WireMock standalone CLI wrapper for node.js
modernweb-pl/wiremock-standalone
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This package downloadsWireMock standalone from Maven Central and provides simple CLI wrapper for NPM.
npm i -D wiremock-standalone# ORpnpm add -D wiremock-standalone# ORyarn add -D wiremock-standalone
Usage (as script inpackage.json
):
{"scripts": {"start:mock":"wiremock --root-dir ./mock" }}
By default, the latest stablejre8
version of WireMock JAR is downloaded from public Maven repository.You can override this behavior by:
- setting environment variables
- creating
.wiremock
configuration file in your project (JSON format) - adding
wiremock
property in yourpackage.json
ENV | JSON | Default |
---|---|---|
MAVEN_REPO_URL | mavenRepoURL | https://repo1.maven.org/maven2 |
WIREMOCK_VERSION | version | resolved to the latest |
JRE_VERSION | jreVersion | jre8 |
You can pass options to Java runtime with--java-arg
CLI argument. All system properties are collected and appended to wiremock's--permitted-system-keys
option.
wiremock --java-arg -Dmy.custom.var=some-value --root-dir ./mock
Passing ENV variables withenv-cmd
yarn env-cmd -f [path/to/.env] yarn wiremock --global-response-templating --verbose --root-dir ./mocks --permitted-system-keys=WIREMOCK_.*
If this project help you reduce time to develop, you can give me a cup of coffee :)
About
WireMock standalone CLI wrapper for node.js
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.