Skip to content

Commit 717c42a

Browse files
authored
update components (#2494)
1 parent 68481b8 commit 717c42a

File tree

8 files changed

+99
-258
lines changed

8 files changed

+99
-258
lines changed

packages/graphql-modules/tests/testing.spec.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -424,16 +424,14 @@ describe('execute', () => {
424424
});
425425

426426
const app = createApplication({ modules: [mod] });
427-
const query: TypedDocumentNode<
428-
{ foo: { id: string } },
429-
{ id: string }
430-
> = gql`
431-
query getFoo($id: String!) {
432-
foo(id: $id) {
433-
id
427+
const query: TypedDocumentNode<{ foo: { id: string } }, { id: string }> =
428+
gql`
429+
query getFoo($id: String!) {
430+
foo(id: $id) {
431+
id
432+
}
434433
}
435-
}
436-
`;
434+
`;
437435

438436
const result = await testkit.execute(app, {
439437
document: query,

website/next-sitemap.config.cjs renamed to website/next-sitemap.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/** @type {import('next-sitemap').IConfig} */
2-
3-
module.exports = {
2+
export default {
43
siteUrl: process.env.SITE_URL || 'https://the-guild.dev/graphql/modules',
54
generateIndexSitemap: false,
65
exclude: ['*/_meta'],

website/next.config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { withGuildDocs } from '@theguild/components/next.config';
2+
3+
export default withGuildDocs({
4+
redirects: () =>
5+
Object.entries({
6+
'/di/introduction': '/docs/di/introduction',
7+
'/docs/di': '/docs/di/introduction',
8+
'/docs/legacy/recipes/type-graphql': '/docs/get-started',
9+
'/docs/introduction/getting-started': '/docs/get-started',
10+
'/docs/guides/development-environment': '/docs/get-started',
11+
'/docs/recipes/db-connection-pooling': '/docs/get-started',
12+
'/docs/legacy/recipes/development-environment': '/docs/get-started',
13+
'/docs/legacy/recipes/file-uploads': '/docs/get-started',
14+
'/docs/api.md': '/docs/api',
15+
'/docs/api/api.md': '/docs/api',
16+
'/docs/essentials': '/docs/essentials/type-definitions',
17+
'/docs/introduction/context': '/docs/essentials/context',
18+
'/docs/advanced': '/docs/advanced/subscriptions',
19+
'/docs/next/recipes/migration': '/docs/recipes/migration',
20+
'/docs/legacy/introduction/context': '/docs/get-started',
21+
'/docs/guides/data-sources': '/docs/get-started',
22+
'/docs/introduction/dependency-injection': '/docs/di/introduction',
23+
'/docs/introduction/resolvers-composition': '/docs/essentials/resolvers',
24+
}).map(([from, to]) => ({
25+
source: from,
26+
destination: to,
27+
permanent: true,
28+
})),
29+
output: 'export',
30+
});

website/next.config.mjs

Lines changed: 0 additions & 33 deletions
This file was deleted.

website/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"build": "next build && next-sitemap --config next-sitemap.config.cjs ",
8-
"dev": "next dev",
9-
"next": "next",
7+
"build": "next build && next-sitemap",
8+
"dev": "next",
109
"start": "next start",
1110
"analyze": "cross-env ANALYZE=true next build"
1211
},
1312
"dependencies": {
14-
"@theguild/components": "^6.4.0",
13+
"@theguild/components": "^6.5.3",
1514
"next": "14.1.4",
1615
"next-sitemap": "4.2.3",
1716
"react": "^18.2.0",
@@ -30,7 +29,7 @@
3029
]
3130
},
3231
"devDependencies": {
33-
"@theguild/tailwind-config": "0.3.2",
32+
"@theguild/tailwind-config": "0.4.0",
3433
"@types/node": "20.10.3",
3534
"@types/react": "18.2.42",
3635
"cross-env": "7.0.3",

website/tailwind.config.cjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@theguild/tailwind-config';

0 commit comments

Comments
 (0)