This package contain helper scripts to show the coverage of GraphQL fields and types of serlo.org.
- Clone repo.
- Install dependencies via
yarn
. - Download GraphQL queries of serlo.org via
yarn download-documents
. The queries are stored in the directorydocuments/
.
- Use
yarn show-coverage
to show the coverage of GraphQL types and fields in the terminal. - Use
yarn generate-report
to generate a report about the coverage inpublic/index.html
.
- In
download_documents.ts
in the variablerepos
is defined which repositories are scanned for graphql queries. - In
download_documents
there are also the regexes stored which are used to detect GraphQL statements.