build(website): prepare for turbopack

This commit is contained in:
iCrawl
2023-04-15 18:15:24 +02:00
parent 5e2f94c591
commit 412e4fffae
14 changed files with 702 additions and 324 deletions

View File

@@ -15,4 +15,4 @@ yarnPath: .yarn/releases/yarn-3.5.0.cjs
packageExtensions: packageExtensions:
'@storybook/core-common@*': '@storybook/core-common@*':
dependencies: dependencies:
'@storybook/react-vite': '7.0.4' '@storybook/react-vite': '7.0.5'

View File

@@ -12,16 +12,8 @@ const withBundleAnalyzer = bundleAnalyzer({
module.exports = withBundleAnalyzer( module.exports = withBundleAnalyzer(
withContentlayer({ withContentlayer({
reactStrictMode: true, reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
// Until Next.js fixes their type issues
typescript: {
ignoreBuildErrors: true,
},
experimental: { experimental: {
appDir: true, appDir: true,
fallbackNodePolyfills: false,
}, },
images: { images: {
dangerouslyAllowSVG: true, dangerouslyAllowSVG: true,

View File

@@ -85,11 +85,11 @@
"eslint": "^8.38.0", "eslint": "^8.38.0",
"eslint-config-neon": "^0.1.42", "eslint-config-neon": "^0.1.42",
"eslint-formatter-pretty": "^5.0.0", "eslint-formatter-pretty": "^5.0.0",
"happy-dom": "^9.6.1", "happy-dom": "^9.7.0",
"hast-util-to-string": "^2.0.0", "hast-util-to-string": "^2.0.0",
"hastscript": "^7.2.0", "hastscript": "^7.2.0",
"html-escaper": "^3.0.3", "html-escaper": "^3.0.3",
"lighthouse": "^10.1.0", "lighthouse": "^10.1.1",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"unocss": "^0.51.4", "unocss": "^0.51.4",

View File

@@ -15,9 +15,11 @@ export default function Page() {
<Image <Image
alt="Vercel" alt="Vercel"
blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg==" blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg=="
height={44}
placeholder="blur" placeholder="blur"
priority priority
src={vercelLogo} src={vercelLogo}
width={212}
/> />
</a> </a>
</div> </div>

View File

@@ -16,8 +16,10 @@ export default function Footer() {
<Image <Image
alt="Vercel" alt="Vercel"
blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg==" blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg=="
height={44}
placeholder="blur" placeholder="blur"
src={vercelLogo} src={vercelLogo}
width={212}
/> />
</a> </a>
<div className="flex flex-row gap-6 md:gap-12"> <div className="flex flex-row gap-6 md:gap-12">

View File

@@ -7,14 +7,8 @@ const withBundleAnalyzer = bundleAnalyzer({
export default withBundleAnalyzer({ export default withBundleAnalyzer({
reactStrictMode: true, reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
outputFileTracing: true,
experimental: { experimental: {
appDir: true, appDir: true,
outputFileTracingRoot: fileURLToPath(new URL('../../', import.meta.url)),
fallbackNodePolyfills: false,
serverComponentsExternalPackages: ['@microsoft/api-extractor-model', 'jju'], serverComponentsExternalPackages: ['@microsoft/api-extractor-model', 'jju'],
}, },
images: { images: {

View File

@@ -60,7 +60,7 @@
"bright": "^0.7.1", "bright": "^0.7.1",
"cmdk": "^0.2.0", "cmdk": "^0.2.0",
"meilisearch": "^0.32.3", "meilisearch": "^0.32.3",
"next": "^13.3.1-canary.7", "next": "^13.3.1-canary.8",
"next-mdx-remote": "^4.4.1", "next-mdx-remote": "^4.4.1",
"next-themes": "^0.2.1", "next-themes": "^0.2.1",
"react": "^18.2.0", "react": "^18.2.0",
@@ -93,8 +93,8 @@
"eslint": "^8.38.0", "eslint": "^8.38.0",
"eslint-config-neon": "^0.1.42", "eslint-config-neon": "^0.1.42",
"eslint-formatter-pretty": "^5.0.0", "eslint-formatter-pretty": "^5.0.0",
"happy-dom": "^9.6.1", "happy-dom": "^9.7.0",
"lighthouse": "^10.1.0", "lighthouse": "^10.1.1",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"unocss": "^0.51.4", "unocss": "^0.51.4",
@@ -103,10 +103,5 @@
}, },
"engines": { "engines": {
"node": ">=18.13.0" "node": ">=18.13.0"
},
"nextBundleAnalysis": {
"budget": 358400,
"budgetPercentIncreaseRed": 20,
"showDetails": true
} }
} }

View File

@@ -59,9 +59,11 @@ export default function Page() {
<Image <Image
alt="Vercel" alt="Vercel"
blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg==" blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg=="
height={44}
placeholder="blur" placeholder="blur"
priority priority
src={vercelLogo} src={vercelLogo}
width={212}
/> />
</a> </a>
</div> </div>

View File

@@ -16,8 +16,10 @@ export default function Footer() {
<Image <Image
alt="Vercel" alt="Vercel"
blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg==" blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABLCAQAAAA1k5H2AAAAi0lEQVR42u3SMQEAAAgDoC251a3gL2SgmfBYBRAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCAgwWEOSWBnYbKggAAAABJRU5ErkJggg=="
height={44}
placeholder="blur" placeholder="blur"
src={vercelLogo} src={vercelLogo}
width={212}
/> />
</a> </a>
<div className="flex flex-row gap-6 md:gap-12"> <div className="flex flex-row gap-6 md:gap-12">

View File

@@ -59,7 +59,7 @@
"dependencies": { "dependencies": {
"@msgpack/msgpack": "^3.0.0-beta2", "@msgpack/msgpack": "^3.0.0-beta2",
"@vladfrangu/async_event_emitter": "^2.2.1", "@vladfrangu/async_event_emitter": "^2.2.1",
"ioredis": "^5.3.1" "ioredis": "^5.3.2"
}, },
"devDependencies": { "devDependencies": {
"@favware/cliff-jumper": "^2.0.0", "@favware/cliff-jumper": "^2.0.0",

View File

@@ -40,7 +40,7 @@
}, },
"homepage": "https://discord.js.org", "homepage": "https://discord.js.org",
"dependencies": { "dependencies": {
"commander": "^10.0.0", "commander": "^10.0.1",
"jsdoc-to-markdown": "^8.0.0", "jsdoc-to-markdown": "^8.0.0",
"tslib": "^2.5.0", "tslib": "^2.5.0",
"typedoc": "^0.24.1" "typedoc": "^0.24.1"

View File

@@ -47,7 +47,7 @@
"@microsoft/api-extractor-model": "7.26.4", "@microsoft/api-extractor-model": "7.26.4",
"@microsoft/tsdoc": "0.14.2", "@microsoft/tsdoc": "0.14.2",
"@microsoft/tsdoc-config": "0.16.2", "@microsoft/tsdoc-config": "0.16.2",
"commander": "^10.0.0", "commander": "^10.0.1",
"fs-extra": "^11.1.1", "fs-extra": "^11.1.1",
"tslib": "^2.5.0", "tslib": "^2.5.0",
"undici": "^5.21.2", "undici": "^5.21.2",

View File

@@ -52,13 +52,13 @@
"devDependencies": { "devDependencies": {
"@favware/cliff-jumper": "^2.0.0", "@favware/cliff-jumper": "^2.0.0",
"@react-icons/all-files": "^4.1.0", "@react-icons/all-files": "^4.1.0",
"@storybook/addon-essentials": "^7.0.4", "@storybook/addon-essentials": "^7.0.5",
"@storybook/addon-interactions": "^7.0.4", "@storybook/addon-interactions": "^7.0.5",
"@storybook/addon-links": "^7.0.4", "@storybook/addon-links": "^7.0.5",
"@storybook/addon-styling": "^1.0.0", "@storybook/addon-styling": "^1.0.1",
"@storybook/blocks": "^7.0.4", "@storybook/blocks": "^7.0.5",
"@storybook/react": "^7.0.4", "@storybook/react": "^7.0.5",
"@storybook/react-vite": "^7.0.4", "@storybook/react-vite": "^7.0.5",
"@storybook/testing-library": "^0.1.0", "@storybook/testing-library": "^0.1.0",
"@types/node": "16.18.23", "@types/node": "16.18.23",
"@types/react": "^18.0.35", "@types/react": "^18.0.35",
@@ -75,7 +75,7 @@
"eslint-plugin-storybook": "^0.6.11", "eslint-plugin-storybook": "^0.6.11",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"storybook": "^7.0.4", "storybook": "^7.0.5",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"unocss": "^0.51.4", "unocss": "^0.51.4",
"vite": "^4.2.1", "vite": "^4.2.1",

965
yarn.lock

File diff suppressed because it is too large Load Diff