{"id":32558355,"url":"https://github.com/shellicar/build-graphql","last_synced_at":"2026-02-09T15:10:23.565Z","repository":{"id":271003515,"uuid":"912126289","full_name":"shellicar/build-graphql","owner":"shellicar","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-11T04:38:24.000Z","size":397,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T23:34:47.661Z","etag":null,"topics":[],"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/shellicar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-04T17:15:10.000Z","updated_at":"2026-01-11T04:36:50.000Z","dependencies_parsed_at":"2025-01-04T18:26:54.024Z","dependency_job_id":"f999cddc-9ebb-4a59-87d5-77393b9bbfba","html_url":"https://github.com/shellicar/build-graphql","commit_stats":null,"previous_names":["shellicar/build-graphql"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/shellicar/build-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellicar%2Fbuild-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellicar%2Fbuild-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellicar%2Fbuild-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellicar%2Fbuild-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellicar","download_url":"https://codeload.github.com/shellicar/build-graphql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellicar%2Fbuild-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29270248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-10-28T23:54:25.255Z","updated_at":"2026-02-09T15:10:23.542Z","avatar_url":"https://github.com/shellicar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @shellicar/build-graphql\n\n[![npm package](https://img.shields.io/npm/v/@shellicar/build-graphql.svg)](https://npmjs.com/package/@shellicar/build-graphql)\n[![build status](https://github.com/shellicar/build-graphql/actions/workflows/node.js.yml/badge.svg)](https://github.com/shellicar/build-graphql/actions/workflows/node.js.yml)\n\nBuild plugin that loads GraphQL files and makes them available through a virtual module import.\n\n- ⚡️ Supports Vite, Webpack, Rspack, Vue CLI, Rollup, esbuild and more, powered by [unplugin].\n\n## Installation \u0026 Quick Start\n\n```sh\nnpm i --save @shellicar/build-graphql\n```\n\n```sh\npnpm add @shellicar/build-graphql\n```\n\n```ts\n// build.ts\nimport GraphQLPlugin from '@shellicar/build-graphql/esbuild'\n\nawait build({\n  // other options\n  plugins: [\n    GraphQLPlugin({ \n      globPattern: 'src/**/*.graphql'\n    })\n  ]\n})\n```\n\n```ts\n// vite.config.ts\nimport GraphQLPlugin from '@shellicar/build-graphql/vite'\n\nexport default defineConfig({\n  // other options\n  plugins: [\n    GraphQLPlugin({ \n      globPattern: 'src/**/*.graphql'\n    })\n  ],\n});\n```\n\n```ts\n// main.ts\nimport typedefs from '@shellicar/build-graphql/typedefs'\n```\n\n\u003c!-- BEGIN_ECOSYSTEM --\u003e\n\n## @shellicar TypeScript Ecosystem\n\n### Core Libraries\n\n- [`@shellicar/core-config`](https://github.com/shellicar/core-config) - A library for securely handling sensitive configuration values like connection strings, URLs, and secrets.\n- [`@shellicar/core-di`](https://github.com/shellicar/core-di) - A basic dependency injection library.\n\n### Reference Architectures\n\n- [`@shellicar/reference-foundation`](https://github.com/shellicar/reference-foundation) - A comprehensive starter repository. Illustrates individual concepts.\n- [`@shellicar/reference-enterprise`](https://github.com/shellicar/reference-enterprise) - A comprehensive starter repository. Can be used as the basis for creating a new Azure application workload.\n\n### Build Tools\n\n- [`@shellicar/build-clean`](https://github.com/shellicar/build-clean) - Build plugin that automatically cleans unused files from output directories.\n- [`@shellicar/build-version`](https://github.com/shellicar/build-version) - Build plugin that calculates and exposes version information through a virtual module import.\n- [`@shellicar/build-graphql`](https://github.com/shellicar/build-graphql) - Build plugin that loads GraphQL files and makes them available through a virtual module import.\n\n### Framework Adapters\n\n- [`@shellicar/svelte-adapter-azure-functions`](https://github.com/shellicar/svelte-adapter-azure-functions) - A [SvelteKit adapter](https://kit.svelte.dev/docs/adapters) that builds your app into an Azure Function.\n- [`@shellicar/cosmos-query-builder`](https://github.com/shellicar/cosmos-query-builder) - Helper class for type safe advanced queries for Cosmos DB (Sql Core).\n\n### Logging \u0026 Monitoring\n\n- [`@shellicar/winston-azure-application-insights`](https://github.com/shellicar/winston-azure-application-insights) - An [Azure Application Insights](https://azure.microsoft.com/en-us/services/application-insights/) transport for [Winston](https://github.com/winstonjs/winston) logging library.\n- [`@shellicar/pino-applicationinsights-transport`](https://github.com/shellicar/pino-applicationinsights-transport) - [Azure Application Insights](https://azure.microsoft.com/en-us/services/application-insights) transport for [pino](https://github.com/pinojs/pino)\n\n\u003c!-- END_ECOSYSTEM --\u003e\n\n## Usage\n\n```sh\npnpm add -D @shellicar/build-graphql\n```\n\n### With esbuild\n\n```ts\nimport graphqlPlugin from '@shellicar/build-graphql/esbuild';\nimport type { Options } from '@shellicar/build-graphql/types';\nimport { build } from 'esbuild';\n\nconst options: Options = {\n  globPattern: '../**/*.graphql',\n  debug: true,\n};\n\nawait build({\n  entryPoints: ['src/main.ts'],\n  outdir: 'dist',\n  bundle: true,\n  platform: 'node',\n  target: 'node20',\n  tsconfig: 'tsconfig.json',\n  plugins: [graphqlPlugin(options)],\n});\n```\n\n### With Vite\n\n```ts\n\n```\n\n### Importing GraphQL Documents\n\n```ts\nimport typedefs from '@shellicar/build-graphql/typedefs'\n```\n\nSee [examples](./examples) for full working implementations.\n\n## Options\n\nSee [types.ts](./packages/build-graphql/src/core/types.ts) for detailed options documentation.\n\n## Credits\n\n- [@luckycatfactory/esbuild-graphql-loader]\n- [unplugin]\n\n[@luckycatfactory/esbuild-graphql-loader]: https://github.com/luckycatfactory/esbuild-graphql-loader\n[unplugin]: https://github.com/unjs/unplugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellicar%2Fbuild-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellicar%2Fbuild-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellicar%2Fbuild-graphql/lists"}