Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WireMock standalone CLI wrapper for node.js

NotificationsYou must be signed in to change notification settings

modernweb-pl/wiremock-standalone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiremock StandaloneWiremock Standalonenpm

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

How to use

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"  }}

Downloader configuration

By default, the latest stablejre8 version of WireMock JAR is downloaded from public Maven repository.You can override this behavior by:

  1. setting environment variables
  2. creating.wiremock configuration file in your project (JSON format)
  3. addingwiremock property in yourpackage.json
ENVJSONDefault
MAVEN_REPO_URLmavenRepoURLhttps://repo1.maven.org/maven2
WIREMOCK_VERSIONversionresolved to the latest
JRE_VERSIONjreVersionjre8

Runtime options

Java 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

HOWTOs

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

Donation

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

Donate

Sponsor this project

    Packages

    No packages published

    Contributors6


    [8]ページ先頭

    ©2009-2025 Movatter.jp