Skip to content

Commit

Permalink
update components (#2494)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Apr 11, 2024
1 parent 68481b8 commit 717c42a
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 258 deletions.
16 changes: 7 additions & 9 deletions packages/graphql-modules/tests/testing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,16 +424,14 @@ describe('execute', () => {
});

const app = createApplication({ modules: [mod] });
const query: TypedDocumentNode<
{ foo: { id: string } },
{ id: string }
> = gql`
query getFoo($id: String!) {
foo(id: $id) {
id
const query: TypedDocumentNode<{ foo: { id: string } }, { id: string }> =
gql`
query getFoo($id: String!) {
foo(id: $id) {
id
}
}
}
`;
`;

const result = await testkit.execute(app, {
document: query,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('next-sitemap').IConfig} */

module.exports = {
export default {
siteUrl: process.env.SITE_URL || 'https://the-guild.dev/graphql/modules',
generateIndexSitemap: false,
exclude: ['*/_meta'],
Expand Down
30 changes: 30 additions & 0 deletions website/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { withGuildDocs } from '@theguild/components/next.config';

export default withGuildDocs({
redirects: () =>
Object.entries({
'/di/introduction': '/docs/di/introduction',
'/docs/di': '/docs/di/introduction',
'/docs/legacy/recipes/type-graphql': '/docs/get-started',
'/docs/introduction/getting-started': '/docs/get-started',
'/docs/guides/development-environment': '/docs/get-started',
'/docs/recipes/db-connection-pooling': '/docs/get-started',
'/docs/legacy/recipes/development-environment': '/docs/get-started',
'/docs/legacy/recipes/file-uploads': '/docs/get-started',
'/docs/api.md': '/docs/api',
'/docs/api/api.md': '/docs/api',
'/docs/essentials': '/docs/essentials/type-definitions',
'/docs/introduction/context': '/docs/essentials/context',
'/docs/advanced': '/docs/advanced/subscriptions',
'/docs/next/recipes/migration': '/docs/recipes/migration',
'/docs/legacy/introduction/context': '/docs/get-started',
'/docs/guides/data-sources': '/docs/get-started',
'/docs/introduction/dependency-injection': '/docs/di/introduction',
'/docs/introduction/resolvers-composition': '/docs/essentials/resolvers',
}).map(([from, to]) => ({
source: from,
destination: to,
permanent: true,
})),
output: 'export',
});
33 changes: 0 additions & 33 deletions website/next.config.mjs

This file was deleted.

9 changes: 4 additions & 5 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "next build && next-sitemap --config next-sitemap.config.cjs ",
"dev": "next dev",
"next": "next",
"build": "next build && next-sitemap",
"dev": "next",
"start": "next start",
"analyze": "cross-env ANALYZE=true next build"
},
"dependencies": {
"@theguild/components": "^6.4.0",
"@theguild/components": "^6.5.3",
"next": "14.1.4",
"next-sitemap": "4.2.3",
"react": "^18.2.0",
Expand All @@ -30,7 +29,7 @@
]
},
"devDependencies": {
"@theguild/tailwind-config": "0.3.2",
"@theguild/tailwind-config": "0.4.0",
"@types/node": "20.10.3",
"@types/react": "18.2.42",
"cross-env": "7.0.3",
Expand Down
1 change: 0 additions & 1 deletion website/tailwind.config.cjs

This file was deleted.

1 change: 1 addition & 0 deletions website/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@theguild/tailwind-config';

0 comments on commit 717c42a

Please sign in to comment.