type-graphql

v2.0.0-beta.5
Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
typescript graphql schema resolvers api decorators controllers apollo

fix

npx npm-run-all --npm-path npm "fix:*"

docs

npm run start --prefix website

test

npx jest --verbose --coverage

build

npx tsc --build ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.typings.json

check

npx npm-run-all --npm-path npm "check:*"

clean

npx npm-run-all --npm-path npm "clean:*"

prepare

npx ts-patch install -s && npx husky install

pretest

npm run clean:coverage

release

npm version --message "release: %s"

test:ci

npx jest --verbose --coverage --ci --forceExit --runInBand

version

npm run --prefix ./website new-release --release=$npm_package_version && git add -A .

fix:lint

npx eslint --fix .

gen:docs

npx ts-node ./scripts/markdown.ts --on docs

prebuild

npm run clean:build && npm run check:version

postbuild

npx shx rm ./build/typings/shim.d.ts && npx shx cp ./src/shim.ts ./build/typings && npx ts-node ./scripts/package.json.ts

check:lint

npx eslint .

check:type

npx npm-run-all --npm-path npm "check:type:*"

fix:format

npx prettier --write .

gen:readme

npx ts-node ./scripts/markdown.ts --on readme

pretest:ci

npm run clean:coverage

test:watch

npx jest --watch

check:spell

npx cspell lint --config cspell.json --no-progress --show-context "**"

clean:build

npx shx rm -rf ./build

check:format

npx prettier --check .

check:script

npx shellcheck ./.husky/pre-commit

fix:markdown

npx markdownlint --fix "**/*.md"

check:scripts

npx tsc --project ./scripts/tsconfig.json --noEmit

check:version

npx ts-node ./scripts/version.ts

check:examples

npx tsc --project ./examples/tsconfig.json --noEmit

check:markdown

npx markdownlint "**/*.md"

check:type:cjs

npx tsc --project ./tsconfig.cjs.json --noEmit

check:type:esm

npx tsc --project ./tsconfig.esm.json --noEmit

clean:coverage

npx shx rm -rf ./coverage

gen:sponsorkit

npx sponsorkit --width=320 --dir=./images --name=github-sponsors

prepublishOnly

npm run build && npm run gen:readme

build:benchmarks

npx tsc --build ./benchmarks/tsconfig.json

check:benchmarks

npx tsc --project ./benchmarks/tsconfig.json --noEmit

check:type:tests

npx tsc --project ./tests/tsconfig.json --noEmit

check:type:typings

npx tsc --project ./tsconfig.typings.json --noEmit --emitDeclarationOnly false

postgen:sponsorkit

npx shx cp ./images/github-sponsors.svg ./website/static/img/github-sponsors.svg

prebuild:benchmarks

npm run clean:build:benchmarks

clean:build:benchmarks

npx shx rm -rf ./benchmarks/build

Metadata

  • MIT
  • >= 16.16.0
  • MichaƂ Lytek
  • released 1/10/2024

Downloads

Maintainers