Commit d2ae7d1
authored
feat: auto-create app/graphql directory for Nuxt projects (#24)
* feat: auto-create app/graphql directory for Nuxt projects
- Automatically create app/graphql directory when framework is Nuxt
- Create app/graphql/default subdirectory for new folder structure
- Add sample queries.graphql file to help users get started
- Fix TypeScript error with optional chaining for external service patterns
Fixes the issue where users had to manually create the app/graphql directory
in Nuxt projects, now it's created automatically like server/graphql.
* fix: add optional chaining to prevent errors when extracting base directory from pattern1 parent be1db66 commit d2ae7d1
2 files changed
+33
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | | - | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
388 | 419 | | |
389 | 420 | | |
0 commit comments