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-coverageto show the coverage of GraphQL types and fields in the terminal. - Use
yarn generate-reportto generate a report about the coverage inpublic/index.html.
- In
download_documents.tsin the variablereposis defined which repositories are scanned for graphql queries. - In
download_documentsthere are also the regexes stored which are used to detect GraphQL statements.