{"id":13726962,"url":"https://github.com/capaj/graphql-codegen-vscode","last_synced_at":"2025-04-07T13:08:45.194Z","repository":{"id":42654547,"uuid":"262469191","full_name":"capaj/graphql-codegen-vscode","owner":"capaj","description":"vscode extension which runs graphql-codegen whenever you save a query/mutation","archived":false,"fork":false,"pushed_at":"2025-02-12T11:00:41.000Z","size":733,"stargazers_count":70,"open_issues_count":16,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T12:05:26.514Z","etag":null,"topics":["codegen","graphql","graphql-code-generator","graphql-codegen","hacktoberfest","typescript","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=capaj.graphql-codegen-vscode","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/capaj.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-09T02:09:59.000Z","updated_at":"2025-02-01T20:13:22.000Z","dependencies_parsed_at":"2023-11-29T12:30:31.307Z","dependency_job_id":"452219cf-a72b-4383-a902-8b8d019bf176","html_url":"https://github.com/capaj/graphql-codegen-vscode","commit_stats":{"total_commits":68,"total_committers":8,"mean_commits":8.5,"dds":"0.23529411764705888","last_synced_commit":"9480cf7b10a55ece2edacff6cc8e4046848b7200"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fgraphql-codegen-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fgraphql-codegen-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fgraphql-codegen-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fgraphql-codegen-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capaj","download_url":"https://codeload.github.com/capaj/graphql-codegen-vscode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657281,"owners_count":20974345,"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":["codegen","graphql","graphql-code-generator","graphql-codegen","hacktoberfest","typescript","vscode","vscode-extension"],"created_at":"2024-08-03T01:03:33.347Z","updated_at":"2025-04-07T13:08:45.177Z","avatar_url":"https://github.com/capaj.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003c!-- Graphql logo readme banner START --\u003e\n\u003ca href=\"https://the-guild.dev\"\u003e\n  \u003cimg src=\"https://the-guild-org.github.io/press-kit/full-dark-logo.png\" alt=\"Created by The guild\" style=\"float: right; margin: 0 0 10px 10px;width: 100px;\" align=\"right\"/\u003e\n\u003c/a\u003e\n\u003c!-- Graphql logo readme banner END --\u003e\n\n# graphql-codegen-vscode\n\nRuns [@graphql-codegen](https://github.com/dotansimha/graphql-code-generator) generation as soon as you hit save on any `gql` or `graphql` file.\nKeep in mind it will only run when your node_modules contains `@graphql-codegen/cli` package.\n\n## Extension config\n\n- `\"graphql-codegen.fileExtensionsDeclaringGraphQLDocuments\"`: change which file extensions are watched for saves. Defaults to `graphql` and `gql`. If you just use these files to define your mutations you don't need to configure anything.\n- `\"graphql-codegen.filePathToWatch\"`: allow users to specify a multimatch patters that file paths should match before running codegen. This is important as users could specify a more broad file (eg `ts`) that could exist in both paths relevant to graphql generation and paths that are not. Defaults to `null`, so watches everything.\n- `\"graphql-codegen.configFilePath\"`: allow users to specify a path to the codegen configuration file. Defaults to `codegen.yml`.\n\n### How is it different than VilvaAthibanPB.graphql-codegen\n\nThis extension uses codegen from your node_modules inside the folder you are working on, so you will never get a mismatching output to what your CLI would give you. Also it is faster-especially on large projects. VilvaAthibanPB's always executes all of the codegens.\nThis extensions only executes codegens that match the last saved file.\n\n### OS support\n\nShould support all major OSes.\n\n### Contributing\n\nTesting is done manually until some basic specs are added.\n\n## CLI Version support\n\nExtension was initially tested with @graphql-codegen/cli version 1.21.x. Last version is tested with version 5.0.0\nOther versions might not work as expected. If you hit any problems with other versions, please report them. The aim is to support as broad range of CLI versions as possible.\n\n## FAQ\n\n### Command output\n\nSince this runs the codegen behind the scenes you cannot see the output. You get notified of success/error with a vscode information message like this:\n\n![image](https://user-images.githubusercontent.com/1305378/127301219-830602e3-b77b-4723-a69a-45e73121c334.png)\n\n### Multiple workspaces support\n\nYou can have multiple workspaces in your editor, but keep in mind that we always iterate from the first to last and we run codegen inside the first workspace which has `/node_modules/@graphql-codegen/cli` module available.\nIf you have multiple VSCode workspaces with this module, it might not work correctly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fgraphql-codegen-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapaj%2Fgraphql-codegen-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fgraphql-codegen-vscode/lists"}