apidoc-mock

v4.1.0
Create a mock server from apiDoc comments.
api apidoc apidoc mock cli comment mock server

test

run-s -l test:lint test:spell* test:ci

start

./bin/cli.js -w ./data

release

changelog

test:ci

export CI=true; jest --collectCoverage

test:dev

rm -rf ./.docs; eslint ./src; run-s test:spell test:local

start:dev

nodemon --watch data --watch src './bin/cli.js -w ./data'

test:deps

rm -rf ./.docs; run-s test

test:lint

eslint ./src ./bin ./data

build:deps

bash ./scripts/dependencies.sh --doctor -u --doctorInstall "yarn" --doctorTest "yarn test:deps" --reject "apidoc"

docker:run

docker stop mock-api-test; docker run -i --rm -p 5000:8000 -v "$(pwd)/data:/app/data" --name mock-api-test apidoc-mock-test

test:local

jest --watch

test:spell

cspell './src/**/*.js' './tests/**/*.js' --config ./cspell.config.json

docker:stop

docker stop mock-api-test

docker:build

docker build -t apidoc-mock-test .

test:clearCache

jest --clearCache

test:spell-docs

cspell ./README.md ./CONTRIBUTING.md --config ./cspell.config.json

test:integration

jest --roots=./tests

test:integration-dev

jest --roots=./tests --watchAll

Metadata

  • MIT
  • >=14.0.0
  • cdcabrera
  • released 1/29/2023

Downloads

Maintainers