{"id":20486846,"url":"https://github.com/rricard/graphql-cli-codegen","last_synced_at":"2025-04-13T15:24:33.113Z","repository":{"id":57253361,"uuid":"99153631","full_name":"rricard/graphql-cli-codegen","owner":"rricard","description":"apollo-codegen plugin for graphql-cli","archived":false,"fork":false,"pushed_at":"2018-01-06T19:29:46.000Z","size":138,"stargazers_count":22,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T21:46:46.231Z","etag":null,"topics":["apollo","cli","codegen","graphql"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rricard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-02T19:31:01.000Z","updated_at":"2023-03-11T12:20:39.000Z","dependencies_parsed_at":"2022-08-31T22:11:25.062Z","dependency_job_id":null,"html_url":"https://github.com/rricard/graphql-cli-codegen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fgraphql-cli-codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fgraphql-cli-codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fgraphql-cli-codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fgraphql-cli-codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rricard","download_url":"https://codeload.github.com/rricard/graphql-cli-codegen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322604,"owners_count":21084336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apollo","cli","codegen","graphql"],"created_at":"2024-11-15T16:38:53.832Z","updated_at":"2025-04-13T15:24:33.080Z","avatar_url":"https://github.com/rricard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-cli-codegen\n\napollo-codegen plugin for graphql-cli\n\n**Warning!** This plugin is highly experimental. It is not tested at all and hacks with the codegen internals. Don't expect immediate support.\n\n## Installation\n\n```\nnpm i -g graphql-cli graphql-cli-codegen\n```\n\n## Usage\n\nConfigure the plugin via a `.graphqlconfig`.\n\nThe schema will be obtained from the `schemaPath` key and the files from the `includes` key.\n\nAll other options such as `target` or `output` must be placed in the `extensions.codegen` key.\n\nHere is an example:\n\n`.graphqlconfig`\n```json\n{\n  \"schemaPath\": \"schema.graphqls\",\n  \"includes\": [\n    \"src/**/*.graphql\",\n    \"src/**/*.gql\",\n  ],\n  \"extensions\": {\n    \"codegen\": {\n      \"target\": \"flow\",\n      \"output\": \"src/graphql-annotations.js\"\n    }\n  }\n}\n```\n\nYou can now run:\n```\ngraphql codegen\n```\n\nIt's done now!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frricard%2Fgraphql-cli-codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frricard%2Fgraphql-cli-codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frricard%2Fgraphql-cli-codegen/lists"}