Skip to content

Commit bd3de5f

Browse files
authored
move all content of website folder to root (graphql#1641)
* move public * move website * rest * update node
1 parent e110015 commit bd3de5f

File tree

1,032 files changed

+185
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,032 files changed

+185
-257
lines changed

.eslintrc.cjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
root: true,
33
overrides: [
44
{
5-
files: ["website/**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
5+
files: ["**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
66
extends: ["plugin:tailwindcss/recommended"],
77
parser: "@typescript-eslint/parser",
88
parserOptions: {
@@ -14,11 +14,6 @@ module.exports = {
1414
},
1515
settings: {
1616
tailwindcss: {
17-
config: "website/tailwind.config.ts",
18-
cssFiles: [
19-
"website/node_modules/nextra-theme-docs/dist/style.css",
20-
"website/src/globals.css",
21-
],
2217
whitelist: ["roboto-mono"],
2318
},
2419
},

.github/workflows/prettier.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: the-guild-org/shared-config/setup@main
1212
name: setup env
1313
with:
14-
nodeVersion: 20.1.0
14+
nodeVersion: 20.9.0
1515
packageManager: pnpm
1616
workingDirectory: ./
1717
packageManagerVersion: 8.15.5

.gitignore

+2-19
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
77

8-
old
98
# Runtime data
109
pids
1110
*.pid
@@ -21,15 +20,6 @@ coverage
2120
# nyc test coverage
2221
.nyc_output
2322

24-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25-
.grunt
26-
27-
# Bower dependency directory (https://bower.io/)
28-
bower_components
29-
30-
# node-waf configuration
31-
.lock-wscript
32-
3323
# Compiled binary addons (http://nodejs.org/api/addons.html)
3424
build/Release
3525

@@ -61,12 +51,6 @@ static/img/__og-image/*
6151
# Mac files
6252
.DS_Store
6353

64-
# Yarn
65-
.pnp/
66-
.pnp.js
67-
# Yarn Integrity file
68-
.yarn-integrity
69-
7054
# Swap files
7155
*.swp
7256

@@ -75,6 +59,5 @@ src/__generated__/
7559

7660
.idea/
7761
.next/
78-
static/sitemap.xml
79-
website/out/
80-
/public/
62+
public/sitemap.xml
63+
out/

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.16.0
1+
20.9.0

website/.npmrc renamed to .npmrc

File renamed without changes.

.prettierignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
.cache
2-
package.json
3-
package-lock.json
41
public
File renamed without changes.
File renamed without changes.

website/next.config.js renamed to next.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import nextra from "nextra"
22
import path from "node:path"
33
import withLess from "next-with-less"
44
import { remarkGraphiQLComment } from "./src/remark-graphiql-comment.js"
5-
import vercelJSON from "../vercel.json" assert { type: "json" }
5+
import vercelJSON from "./vercel.json" assert { type: "json" }
66

77
const withNextra = nextra({
88
theme: "nextra-theme-docs",
@@ -39,7 +39,6 @@ export default withLess(
3939
images: {
4040
unoptimized: true,
4141
},
42-
distDir: process.env.NODE_ENV === "production" ? "../public" : undefined,
4342
trailingSlash: true,
4443
// `statusCode` is not undefined or valid statusCode for route {"source":"/conf/attendee/:path*","destination":"https://graphql-conf-attendee-nextjs.vercel.app/:path*","statusCode":200}
4544
// `statusCode` is not undefined or valid statusCode for route {"source":"/swapi-graphql/:path*","destination":"https://graphql.github.io/swapi-graphql/:path*","statusCode":200}

package.json

+46-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
"private": true,
44
"version": "0.0.0",
55
"scripts": {
6-
"build": "cd website && pnpm i && pnpm build",
6+
"dev": "next",
7+
"//prebuild": "tsx --env-file=.env src/get-github-info.ts",
8+
"build": "next build",
9+
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
10+
"start": "next start",
711
"format": "pnpm format:check --write",
812
"format:check": "prettier --cache --check \"**/*.{js,jsx,ts,tsx,json,md}\"",
913
"lint": "eslint --ignore-path .gitignore .",
1014
"test": "echo \"no tests\" && exit 1"
1115
},
16+
"type": "module",
1217
"resolutions": {
1318
"graphql": "16.6.0"
1419
},
@@ -21,14 +26,49 @@
2126
"numbro": "2.3.6",
2227
"parser-front-matter": "1.6.4",
2328
"string-similarity": "^4.0.4",
24-
"timeago.js": "4.0.2"
29+
"timeago.js": "4.0.2",
30+
"@radix-ui/react-radio-group": "^1.1.3",
31+
"leaflet": "^1.9.4",
32+
"iframe-resizer-react": "^1.1.0",
33+
"gray-matter": "^4.0.3",
34+
"@headlessui/react": "^1.7.17",
35+
"@heroicons/react": "^2.0.18",
36+
"@radix-ui/react-icons": "^1.3.0",
37+
"clsx": "^2.1.0",
38+
"fast-glob": "^3.3.2",
39+
"markdown-to-jsx": "^7.4.0",
40+
"next": "^14.1.4",
41+
"next-query-params": "^5.0.0",
42+
"next-sitemap": "^4.2.3",
43+
"next-with-less": "^3.0.1",
44+
"nextra": "3.0.0-alpha.22",
45+
"nextra-theme-docs": "3.0.0-alpha.22",
46+
"p-limit": "^4.0.0",
47+
"react": "^18.2.0",
48+
"react-dom": "^18.2.0",
49+
"server-only": "0.0.1",
50+
"server-only-context": "^0.1.0",
51+
"string-strip-html": "^13.4.5",
52+
"unist-util-visit": "^5.0.0",
53+
"use-query-params": "^2.2.1",
54+
"tailwindcss": "^3.4.1",
55+
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
56+
"@tailwindcss/typography": "^0.5.10",
57+
"postcss": "^8.4.33",
58+
"@svgr/webpack": "^8.0.1",
59+
"@types/node": "^20.11.30",
60+
"@types/react": "^18.2.73",
61+
"autoprefixer": "^10.4.17",
62+
"tsx": "^4.7.0",
63+
"react-medium-image-zoom": "5.1.8",
64+
"date-fns": "^2.30.0"
2565
},
2666
"devDependencies": {
2767
"@types/codemirror": "5.60.7",
28-
"@types/string-similarity": "^4.0.0",
29-
"@typescript-eslint/parser": "5.59.7",
30-
"eslint": "8.42.0",
31-
"eslint-plugin-tailwindcss": "3.14.0",
68+
"@types/string-similarity": "^4.0.2",
69+
"@typescript-eslint/parser": "7.4.0",
70+
"eslint": "8.57.0",
71+
"eslint-plugin-tailwindcss": "3.15.1",
3272
"prettier": "3.2.4",
3373
"typescript": "^5.3.3"
3474
}

0 commit comments

Comments
 (0)