Skip to content

stephanabel/wiremock-standalone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WireMock Standalone for NPM

npm version Wiremock Standalone npm

This package downloads WireMock standalone from Maven Central and provides simple CLI wrapper for NPM.

How to use

npm i -D wiremock-standalone
# OR
yar add -D wiremock-standalone

Usage (as script in package.json):

{
  "scripts": {
    "start:mock": "wiremock --root-dir ./mock"
  }
}

Options

Java runtime arguments

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

Custom Maven repository URL

You can use the MAVEN_BASE_URL environment variable to override the public https://repo1.maven.org/maven2 URL.

HOWTOs

Passing ENV variables with env-cmd

yarn env-cmd -f [path/to/.env] yarn wiremock --global-response-templating --verbose --root-dir ./mocks --permitted-system-keys=WIREMOCK_.*

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Donate

About

WireMock standalone library for node

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%