json-schema-faker

v0.5.0-rcv.46
JSON-Schema + fake data generators
json jsonschema fake mocks

dev

npm run test:schema -- -w

test

npm run test:ci -- && npm run test:schema

test:ci

npm run coverage:unit && npm run report -- -r lcov

test:all

npm run coverage:all && npm run report -- -r html

test:run

_mocha --exit --colors --recursive --parallel --loader=testdouble --watch-files 'tests/**' --watch-files 'src/**' --watch-extensions js,json -bR spec

test:unit

npm run test:run tests/unit --

test:schema

npm run test:run tests/schema --

test:integration

npm run test:run tests/integration --

coverage

c8 --reporter=lcov -x '**/tests/**' -x '**/*.spec.mjs'

coverage:all

npm run coverage -- npm run test:all

coverage:unit

npm run coverage -- npm run test:unit

report

c8 report

lint

eslint --ext mjs,svelte src tests

_pretest

npm run lint

_prepublish

npm run build

_graphviz

madge src --dot > structure.gv

mortero

mortero -Ddist -spublic -X{_base,lib} -ecss.less

watch

npm run mortero -- --platform browser -dw

build

NODE_ENV=production npm run mortero -- -S --no-minify

pretest

npm run lint && npm run build -- -ymain

copy:vendor

concat -o dist/vendor.js node_modules/json-schema-ref-parser/dist/ref-parser.min.js node_modules/jsonpath-plus/dist/index-browser-umd.min.js

copy:bundle

concat -o dist/bundle.js dist/vendor.js dist/main.iife.js

copy:wargs

concat -o dist/wargs.cjs node_modules/wargs/dist/wargs.cjs

entry:cjs

echo 'module.exports = require("./main.cjs").default;' > dist/index.cjs

_prepublishOnly

npm run build -- -f

postbuild

npm run copy:bundle && npm run entry:cjs

prebuild

mkdir -p dist && npm run copy:vendor && npm run copy:wargs

codecov

codecov -e TRAVIS_NODE_VERSION

Metadata

  • MIT
  • Whatever
  • Alvaro Cabrera
  • released 10/11/2022

Downloads