Skip to content

Commit

Permalink
docs: upgrade the-guild-docs version
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed May 6, 2022
1 parent 6a503f3 commit a087bb0
Show file tree
Hide file tree
Showing 12 changed files with 4,283 additions and 2,686 deletions.
6 changes: 3 additions & 3 deletions examples/file-upload-nextjs-pothos/package.json
Expand Up @@ -14,11 +14,11 @@
"@pothos/core": "3.5.0",
"graphql": "16.3.0",
"next": "12.1.4",
"react": "18.0.0",
"react-dom": "18.0.0"
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"@types/react": "18.0.0",
"@types/react": "^17.0.0",
"eslint": "8.13.0",
"eslint-config-next": "12.1.4",
"typescript": "4.6.3"
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion examples/nextjs-auth/package.json
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@graphql-yoga/node": "2.5.0",
"@types/react": "17.0.38",
"@types/react": "17.0.39",
"graphql": "^16.1.0",
"next-auth": "4.3.1",
"next": "12.0.7",
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@graphql-yoga/node": "2.5.0",
"@types/react": "17.0.38",
"@types/react": "17.0.39",
"graphql": "^16.1.0",
"next": "12.0.7",
"react": "17.0.2",
Expand Down
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -74,8 +74,9 @@
"@changesets/apply-release-plan": "6.0.0",
"graphql": "16.4.0",
"cross-undici-fetch": "0.4.2",
"@types/react": "18.0.1",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"@types/react": "17.0.39",
"@types/react-dom": "17.0.11",
"react": "17.0.2",
"react-dom": "17.0.2"
}
}
6 changes: 3 additions & 3 deletions packages/graphiql/package.json
Expand Up @@ -24,7 +24,7 @@
"author": "Laurin Quast <laurinquast@googlemail.com>",
"license": "MIT",
"devDependencies": {
"@types/react": "18.0.4",
"@types/react": "17.0.39",
"@vitejs/plugin-react-refresh": "1.3.6",
"vite": "2.9.8"
},
Expand All @@ -34,8 +34,8 @@
"graphiql": "^1.8.4",
"graphiql-explorer": "^0.9.0",
"graphql": "^16.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"use-url-search-params": "^2.5.1",
"json-bigint-patch": "^0.0.8"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/node/package.json
Expand Up @@ -57,6 +57,8 @@
"@types/node-fetch": "^2.6.1",
"bob-the-bundler": "^1.5.1",
"eventsource": "^2.0.0",
"form-data": "^4.0.0",
"node-fetch": "^2.6.7",
"graphql": "^16.0.1",
"puppeteer": "13.7.0",
"graphql-scalars": "^1.16.1"
Expand Down
8 changes: 3 additions & 5 deletions website/next-i18next.config.js
@@ -1,6 +1,4 @@
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
exports.i18n = {
defaultLocale: 'en',
locales: ['en'],
}
15 changes: 9 additions & 6 deletions website/next.config.js → website/next.config.mjs
@@ -1,16 +1,19 @@
require('bob-tsm')
import { createRequire } from 'node:module'
import nextBundleAnalyzer from '@next/bundle-analyzer'
import { withGuildDocs } from '@guild-docs/server'
import { register } from 'esbuild-register/dist/node.js'
import { i18n } from './next-i18next.config.js'

const { i18n } = require('./next-i18next.config.js')
register({ extensions: ['.ts', '.tsx'] })

const { withGuildDocs } = require('@guild-docs/server')
const require = createRequire(import.meta.url)

const { getRoutes, getTutorialRoutes } = require('./routes.ts')

const withBundleAnalyzer = require('@next/bundle-analyzer')({
const withBundleAnalyzer = nextBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})

module.exports = withBundleAnalyzer(
export default withBundleAnalyzer(
withGuildDocs({
env: {
// This is a pre-serialized version of the tutorial routes that prevents calculating the routes on production
Expand Down
19 changes: 10 additions & 9 deletions website/package.json
@@ -1,5 +1,5 @@
{
"name": "@graphql-yoga/website",
"name": "website",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -16,12 +16,13 @@
"@types/concurrently": "^6.4.0",
"@types/mdx-js__react": "^1.5.5",
"@types/node": "^16.11.7",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"bob-tsm": "^0.4.6",
"concurrently": "^7.0.0",
"cross-env": "^7.0.3",
"esbuild": "^0.14.21",
"esbuild-register": "^3.3.2",
"next-remote-watch": "^1.0.0",
"open-cli": "^7.0.1",
"fast-xml-parser": "^4.0.7",
Expand All @@ -37,20 +38,20 @@
"@emotion/styled": "^11.6.0",
"@graphql-yoga/node": "2.5.0",
"@graphql-yoga/render-graphiql": "2.6.0",
"@guild-docs/client": "^1.4.0",
"@guild-docs/server": "^2.2.0",
"@guild-docs/client": "^2.1.1",
"@guild-docs/server": "^3.0.1",
"@mdx-js/react": "^2.1.1",
"@theguild/components": "1.11.2",
"framer-motion": "^6.2.6",
"graphql": "16.4.0",
"next": "^12.0.10",
"next-i18next": "^11.0.0",
"next-seo": "^5.1.0",
"next-seo": "^5.2.0",
"next-sitemap": "^2.5.17",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-icons": "^4.3.1",
"react-use": "^17.3.2",
"remark-admonitions": "^1.2.1",
"shiki": "^0.10.1"
}
}
1 change: 0 additions & 1 deletion website/src/pages/_app.tsx
@@ -1,4 +1,3 @@
import 'remark-admonitions/styles/infima.css'
import '../../public/style.css'

import { appWithTranslation } from 'next-i18next'
Expand Down

0 comments on commit a087bb0

Please sign in to comment.