@shellicar/build-graphql 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +43 -0
  3. package/package.json +3 -7
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ ## [0.1.1] - 2025-01-05
4
+
5
+ ### Fixed
6
+
7
+ Fix missing README
8
+
9
+ ## [0.1.0] - 2025-01-05
10
+
11
+ Initial release.
12
+
13
+ [0.1.1]: https://github.com/shellicar/build-graphql/releases/tag/0.1.1
14
+ [0.1.0]: https://github.com/shellicar/build-graphql/releases/tag/0.1.0
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # @shellicar/build-graphql
2
+
3
+ Build plugin that loads GraphQL files and makes them available through a virtual module import.
4
+
5
+ - ⚡️ Supports Vite, Webpack, Rspack, Vue CLI, Rollup, esbuild and more, powered by [unplugin](https://github.com/unjs/unplugin).
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ pnpm add -D @shellicar/build-graphql
11
+ ```
12
+
13
+ ### With esbuild
14
+
15
+ ```ts
16
+ import GraphQLPlugin from '@shellicar/build-graphql/esbuild'
17
+
18
+ build({
19
+ // other options
20
+ plugins: [
21
+ GraphQLPlugin({
22
+ globPattern: 'src/**/*.graphql'
23
+ })
24
+ ]
25
+ })
26
+ ```
27
+
28
+ ### Importing GraphQL Documents
29
+
30
+ ```ts
31
+ import typedefs from '@shellicar/build-graphql/typedefs'
32
+ ```
33
+
34
+ See [playground examples](./packages/playground) for full working implementations.
35
+
36
+ ## Options
37
+
38
+ See [types.ts](./packages/build-graphql/src/core/types.ts) for detailed options documentation.
39
+
40
+ ## Credits
41
+
42
+ - [@luckycatfactory/esbuild-graphql-loader](https://github.com/luckycatfactory/esbuild-graphql-loader)
43
+ - [unplugin](https://github.com/unjs/unplugin)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shellicar/build-graphql",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Build plugin that loads GraphQL files and makes them importable via a virtual typedefs module.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/shellicar/build-graphql#readme",
@@ -80,7 +80,8 @@
80
80
  }
81
81
  },
82
82
  "files": [
83
- "dist"
83
+ "dist",
84
+ "*.md"
84
85
  ],
85
86
  "publishConfig": {
86
87
  "access": "public"
@@ -118,7 +119,6 @@
118
119
  }
119
120
  },
120
121
  "devDependencies": {
121
- "@biomejs/biome": "^1.9.4",
122
122
  "@luckycatfactory/esbuild-graphql-loader": "^3.8.1",
123
123
  "@nuxt/kit": "^3.15.0",
124
124
  "@nuxt/schema": "^3.15.0",
@@ -126,16 +126,12 @@
126
126
  "@types/node": "^22.10.5",
127
127
  "bumpp": "^9.9.2",
128
128
  "chalk": "^5.4.1",
129
- "eslint": "^9.17.0",
130
129
  "esno": "^4.8.0",
131
- "fast-glob": "^3.3.2",
132
130
  "npm-check-updates": "^17.1.13",
133
131
  "npm-run-all2": "^7.0.2",
134
132
  "rollup": "^4.29.1",
135
133
  "terser": "^5.37.0",
136
134
  "tsup": "^8.3.5",
137
- "turbo": "^2.3.3",
138
- "typescript": "^5.7.2",
139
135
  "vite": "^6.0.7",
140
136
  "vitest": "^2.1.8",
141
137
  "webpack": "^5.97.1"