graphql-voyager

v2.0.0
GraphQL introspection viewer

lint

eslint --cache --max-warnings 0 .

test

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

check

tsc

serve

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

start

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

stats

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

bundle

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

prettier

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

testonly

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

changelog

ts-node scripts/gen-changelog.ts

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/

bundle:lib

webpack --mode=production --env lib

preversion

npm ci --ignore-scripts && npm test

build:worker

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

clean:worker

rm -rf worker-dist

declarations

tsc --emitDeclarationOnly -p tsconfig.lib.json

build:release

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

clean:release

rm -rf middleware

check:spelling

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

prettier:check

prettier --cache --check . **/*.svg

bundle:standalone

webpack --mode=production --env standalone

compile:middleware

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

Metadata

  • MIT
  • Whatever
  • IvanGoncharov
  • released 8/8/2023

Downloads

Maintainers