graphql-voyager

v2.1.0
GraphQL introspection viewer

preversion

npm ci --ignore-scripts && npm test

changelog

ts-node scripts/gen-changelog.ts

test

npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling

start

npm run build:worker && webpack serve --mode=development --env standalone

serve

ts-node ./scripts/serve-directory.ts -p 9090 demo-dist

clean:release

rm -rf middleware

clean:worker

rm -rf worker-dist

bundle:standalone

webpack --mode=production --env standalone

bundle:lib

webpack --mode=production --env lib

bundle

rm -rf dist && npm run bundle:lib && npm run bundle:standalone

compile:middleware

tsc -d src/middleware/index.ts --outDir middleware --lib ES6,DOM,esnext.asynciterable

build:worker

npm run clean:worker && docker compose up --abort-on-container-exit --build build-worker

build:release

npm run build:worker && npm run bundle && npm run compile:middleware && npm run declarations

build:demo

npm run build:release && rm -rf demo-dist && cp -R demo/ demo-dist/ && cp dist/voyager.css* dist/voyager.standalone.js* demo-dist/

stats

NODE_ENV=production webpack --json --mode=production > stats.json

lint

eslint --cache --max-warnings 0 .

check

tsc

prettier

prettier --write --list-different . **/*.svg

prettier:check

prettier --check . **/*.svg

check:spelling

cspell --cache --no-progress '**/*'

testonly

npm run build:demo && npm pack && docker compose up --abort-on-container-exit --build test

declarations

tsc --emitDeclarationOnly -p tsconfig.lib.json

update-snapshots

docker compose up --build update-snapshots
npm i graphql-voyager

Metadata

  • MIT
  • >=20.0.0
  • IvanGoncharov
  • released 9/24/2024

Downloads

Maintainers