Skip to content

Commit

Permalink
chore(houdini): enable houdini vite plugin smart autoCodeGen
Browse files Browse the repository at this point in the history
  • Loading branch information
ewen-lbh committed Nov 11, 2024
1 parent d0e65d8 commit a463c66
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 39 deletions.
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.12.1",
"dependencies": {
"@carbon/charts-svelte": "^1.22.0",
"@ewen-lbh/houdini": "1.6.0",
"@graphql-tools/utils": "patch:@graphql-tools/utils@npm%3A10.5.4#~/.yarn/patches/@graphql-tools-utils-npm-10.5.4-34df6bb3a5.patch",
"@iconify-json/logos": "^1.2.1",
"@paypal/paypal-js": "^8.1.2",
Expand All @@ -27,7 +28,6 @@
"google-auth-library": "^9.14.1",
"graphql": "^16.9.0",
"graphql-ws": "^5.16.0",
"houdini": "^1.2.62",
"html-to-text": "^9.0.5",
"html5-qrcode": "^2.3.8",
"ics": "^3.8.1",
Expand Down
6 changes: 4 additions & 2 deletions packages/app/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import houdini from '@ewen-lbh/houdini/vite';
import { sentrySvelteKit } from '@sentry/sveltekit';
import { sveltekit } from '@sveltejs/kit/vite';
import houdini from 'houdini/vite';
import { fileURLToPath } from 'node:url';
import { FileSystemIconLoader } from 'unplugin-icons/loaders';
import icons from 'unplugin-icons/vite';
Expand Down Expand Up @@ -46,7 +46,9 @@ export default mergeConfig(
commonConfig,
defineConfig({
plugins: [
houdini(),
houdini({
autoCodeGen: 'smart',
}),
sentrySvelteKit({
sourceMapsUploadOptions: {
project: 'app',
Expand Down
105 changes: 69 additions & 36 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,7 @@ __metadata:
dependencies:
"@babel/core": "npm:^7.25.2"
"@carbon/charts-svelte": "npm:^1.22.0"
"@ewen-lbh/houdini": "npm:1.6.0"
"@graphql-tools/utils": "patch:@graphql-tools/utils@npm%3A10.5.4#~/.yarn/patches/@graphql-tools-utils-npm-10.5.4-34df6bb3a5.patch"
"@iconify-json/logos": "npm:^1.2.1"
"@iconify-json/material-symbols": "npm:^1.2.2"
Expand Down Expand Up @@ -1019,7 +1020,6 @@ __metadata:
graphql: "npm:^16.9.0"
graphql-ws: "npm:^5.16.0"
graphql-zeus: "npm:^5.3.3"
houdini: "npm:^1.2.62"
houdini-svelte: "npm:^1.2.62"
html-to-text: "npm:^9.0.5"
html5-qrcode: "npm:^2.3.8"
Expand Down Expand Up @@ -2033,6 +2033,41 @@ __metadata:
languageName: node
linkType: hard

"@ewen-lbh/houdini@npm:1.6.0":
version: 1.6.0
resolution: "@ewen-lbh/houdini@npm:1.6.0"
dependencies:
"@babel/parser": "npm:^7.23.9"
"@clack/prompts": "npm:^0.6.3"
"@graphql-tools/merge": "npm:^9.0.0"
"@graphql-tools/schema": "npm:^9.0.4"
"@kitql/helpers": "npm:^0.8.2"
"@types/estree": "npm:^1.0.0"
"@types/fs-extra": "npm:^9.0.13"
"@types/micromatch": "npm:^4.0.2"
"@ungap/structured-clone": "npm:^1.0.2"
"@whatwg-node/server": "npm:^0.9.14"
ast-types: "npm:^0.16.1"
commander: "npm:^9.4.0"
deepmerge: "npm:^4.2.2"
estree-walker: "npm:^3.0.1"
fs-extra: "npm:^10.1.0"
glob: "npm:^8.0.3"
graphql: "npm:^15.8.0"
graphql-yoga: "npm:^4.0.4"
memfs: "npm:^3.4.7"
micromatch: "npm:^4.0.5"
minimatch: "npm:^5.1.0"
node-fetch: "npm:^3.2.10"
npx-import: "npm:^1.1.3"
recast: "npm:^0.23.1"
vite-plugin-watch-and-run: "npm:^1.7.0"
bin:
houdini: build/cmd-esm/index.js
checksum: 10c0/8d49dc53d81f54bf7c23cf32fefc61029fdddb00c76ba92d7a26c35ffc273edf9c27160455ac9277bfbf3a72f55fdf96996fea06ed7d2c0281d63fdb3482787b
languageName: node
linkType: hard

"@faker-js/faker@npm:^9.0.3":
version: 9.0.3
resolution: "@faker-js/faker@npm:9.0.3"
Expand Down Expand Up @@ -3010,7 +3045,7 @@ __metadata:
languageName: node
linkType: hard

"@kitql/helpers@npm:0.8.9, @kitql/helpers@npm:^0.8.2":
"@kitql/helpers@npm:^0.8.2":
version: 0.8.9
resolution: "@kitql/helpers@npm:0.8.9"
dependencies:
Expand Down Expand Up @@ -7615,7 +7650,7 @@ __metadata:
languageName: node
linkType: hard

"braces@npm:^3.0.2, braces@npm:^3.0.3, braces@npm:~3.0.2":
"braces@npm:^3.0.3, braces@npm:~3.0.2":
version: 3.0.3
resolution: "braces@npm:3.0.3"
dependencies:
Expand Down Expand Up @@ -12860,9 +12895,9 @@ __metadata:
languageName: node
linkType: hard

"houdini@npm:^1.2.62, houdini@npm:^1.2.64":
version: 1.2.64
resolution: "houdini@npm:1.2.64"
"houdini@npm:^1.2.64":
version: 1.3.0
resolution: "houdini@npm:1.3.0"
dependencies:
"@babel/parser": "npm:^7.23.9"
"@clack/prompts": "npm:^0.6.3"
Expand All @@ -12888,10 +12923,10 @@ __metadata:
node-fetch: "npm:^3.2.10"
npx-import: "npm:^1.1.3"
recast: "npm:^0.23.1"
vite-plugin-watch-and-run: "npm:^1.3.2"
vite-plugin-watch-and-run: "npm:^1.7.0"
bin:
houdini: build/cmd-esm/index.js
checksum: 10c0/b4aac9e606f566419f1e3463a0c53339d16b1cd9f825303e00e0e7a612718266dd883fcfa76f6d7fad8acff3bae7f13243f4a8f2d7ad9f1cb30ae7331ccaf05d
checksum: 10c0/18a216be5c39ef06039c5b61261298cf3445c4acd5f6d10871b29f81499913fae1be2b46dc922bb1a5e73a93bae6ad6aa707cd740dfd6d2462086962f2460de3
languageName: node
linkType: hard

Expand Down Expand Up @@ -15896,16 +15931,6 @@ __metadata:
languageName: node
linkType: hard

"micromatch@npm:4.0.5":
version: 4.0.5
resolution: "micromatch@npm:4.0.5"
dependencies:
braces: "npm:^3.0.2"
picomatch: "npm:^2.3.1"
checksum: 10c0/3d6505b20f9fa804af5d8c596cb1c5e475b9b0cd05f652c5b56141cf941bd72adaeb7a436fda344235cef93a7f29b7472efc779fcdb83b478eab0867b95cdeff
languageName: node
linkType: hard

"micromatch@npm:4.0.8, micromatch@npm:^4.0.2, micromatch@npm:^4.0.8, micromatch@npm:~4.0.8":
version: 4.0.8
resolution: "micromatch@npm:4.0.8"
Expand Down Expand Up @@ -18119,6 +18144,13 @@ __metadata:
languageName: node
linkType: hard

"picocolors@npm:^1.1.1":
version: 1.1.1
resolution: "picocolors@npm:1.1.1"
checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58
languageName: node
linkType: hard

"picomatch-browser@npm:^2.2.6":
version: 2.2.6
resolution: "picomatch-browser@npm:2.2.6"
Expand Down Expand Up @@ -18339,7 +18371,7 @@ __metadata:
languageName: node
linkType: hard

"postcss@npm:^8.4.0, postcss@npm:^8.4.27, postcss@npm:^8.4.32, postcss@npm:^8.4.38, postcss@npm:^8.4.39":
"postcss@npm:^8.4.0, postcss@npm:^8.4.32, postcss@npm:^8.4.38, postcss@npm:^8.4.39":
version: 8.4.40
resolution: "postcss@npm:8.4.40"
dependencies:
Expand All @@ -18350,6 +18382,17 @@ __metadata:
languageName: node
linkType: hard

"postcss@npm:^8.4.27":
version: 8.4.48
resolution: "postcss@npm:8.4.48"
dependencies:
nanoid: "npm:^3.3.7"
picocolors: "npm:^1.1.1"
source-map-js: "npm:^1.2.1"
checksum: 10c0/d586361fda12fc7ab5650ce9b5763fc61d6ea2cecac9da98fceea6a3f27e42ed34db830582411bc06743492d9bb414c52b0c81da65440682d244d692da2f928a
languageName: node
linkType: hard

"postcss@npm:^8.4.41":
version: 8.4.41
resolution: "postcss@npm:8.4.41"
Expand Down Expand Up @@ -19634,16 +19677,16 @@ __metadata:
linkType: hard

"rollup@npm:^3.27.1, rollup@npm:^3.7.4":
version: 3.29.4
resolution: "rollup@npm:3.29.4"
version: 3.29.5
resolution: "rollup@npm:3.29.5"
dependencies:
fsevents: "npm:~2.3.2"
dependenciesMeta:
fsevents:
optional: true
bin:
rollup: dist/bin/rollup
checksum: 10c0/65eddf84bf389ea8e4d4c1614b1c6a298d08f8ae785c0c087e723a879190c8aaddbab4aa3b8a0524551b9036750c9f8bfea27b377798accfd2ba5084ceff5aaa
checksum: 10c0/a1fa26f21f0d6cf93b6d05ea284ad5854905b585f28a14c27d439b0f9b859cba13ea25f376303d86770e59b4686bedc52b4706e57442514f0414c6fd3c5b8e71
languageName: node
linkType: hard

Expand Down Expand Up @@ -22761,7 +22804,7 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-watch-and-run@npm:1.7.1":
"vite-plugin-watch-and-run@npm:1.7.1, vite-plugin-watch-and-run@npm:^1.7.0":
version: 1.7.1
resolution: "vite-plugin-watch-and-run@npm:1.7.1"
dependencies:
Expand All @@ -22771,16 +22814,6 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-watch-and-run@npm:^1.3.2":
version: 1.7.0
resolution: "vite-plugin-watch-and-run@npm:1.7.0"
dependencies:
"@kitql/helpers": "npm:0.8.9"
micromatch: "npm:4.0.5"
checksum: 10c0/781c44c1c1de10dd4a77576535e9a6ead952ceb32671aca8560b0403c3c0c3fdf2f5783cf58e78464e70e8733ba4aff6c7f14431430382aa21cf1bcca97cc573
languageName: node
linkType: hard

"vite@npm:5.4.8":
version: 5.4.8
resolution: "vite@npm:5.4.8"
Expand Down Expand Up @@ -22825,8 +22858,8 @@ __metadata:
linkType: hard

"vite@npm:^4.1.1":
version: 4.5.3
resolution: "vite@npm:4.5.3"
version: 4.5.5
resolution: "vite@npm:4.5.5"
dependencies:
esbuild: "npm:^0.18.10"
fsevents: "npm:~2.3.2"
Expand Down Expand Up @@ -22860,7 +22893,7 @@ __metadata:
optional: true
bin:
vite: bin/vite.js
checksum: 10c0/caeb1eecc0a8e0865782899e2f83d2993a9816562badc1c8291316d80d49b82f12038abd8cb8b8c627b6f369f58dfb25972ef4517d5e6e1b6e1bf7ee5b63a8a6
checksum: 10c0/cde5a1d80ae61b2c0b2e2a04938e10aa8821a4c2c625f1dcd6eff179f0c9ce98a5b3c8fd62b54a81299568f7747fff4d35ffecc0e7f7ff34d76124d94a24ce9b
languageName: node
linkType: hard

Expand Down

0 comments on commit a463c66

Please sign in to comment.