feat: remove turbo

This commit is contained in:
2025-06-13 00:09:18 +08:00
parent 07955286f1
commit c60f6f511e
20 changed files with 1796 additions and 3577 deletions

View File

@@ -10,6 +10,7 @@ export interface SendOptions {
export const konosend = {
emails: {
// biome-ignore lint/suspicious/useAwait: <explanation>
send: async (_props: SendOptions) => {
throw new Error('unimplemented');
},

View File

@@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"clean": "git clean -xdf .cache dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {

View File

@@ -53,4 +53,4 @@ const ExampleContactEmail = () => (
/>
);
export default ExampleContactEmail;
export default ExampleContactEmail;

View File

@@ -2,8 +2,17 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"composite": true
"composite": true,
"jsx": "react-jsx",
"jsxImportSource": "react",
"module": "ESNext",
"moduleResolution": "bundler"
},
"include": ["./*.ts", "./*.tsx"],
"include": [
"./*.ts",
"./*.tsx",
"./templates/**/*.ts",
"./templates/**/*.tsx"
],
"exclude": ["node_modules"]
}

View File

@@ -1,15 +0,0 @@
import type { Thing, WithContext } from 'schema-dts';
type JsonLdProps = {
code: WithContext<Thing>;
};
export const JsonLd = ({ code }: JsonLdProps) => (
<script
type="application/ld+json"
// biome-ignore lint/security/noDangerouslySetInnerHtml: "This is a JSON-LD script, not user-generated content."
dangerouslySetInnerHTML={{ __html: JSON.stringify(code) }}
/>
);
export * from 'schema-dts';

View File

@@ -1,67 +0,0 @@
import merge from 'lodash.merge';
import type { Metadata } from 'next';
type MetadataGenerator = Omit<Metadata, 'description' | 'title'> & {
title: string;
description: string;
image?: string;
};
const applicationName = 'next-forge';
const author: Metadata['authors'] = {
name: 'Hayden Bleasel',
url: 'https://haydenbleasel.com/',
};
const publisher = 'Hayden Bleasel';
const twitterHandle = '@haydenbleasel';
export const createMetadata = ({
title,
description,
image,
...properties
}: MetadataGenerator): Metadata => {
const parsedTitle = `${title} | ${applicationName}`;
const defaultMetadata: Metadata = {
title: parsedTitle,
description,
applicationName,
authors: [author],
creator: author.name,
formatDetection: {
telephone: false,
},
appleWebApp: {
capable: true,
statusBarStyle: 'default',
title: parsedTitle,
},
openGraph: {
title: parsedTitle,
description,
type: 'website',
siteName: applicationName,
locale: 'en_US',
},
publisher,
twitter: {
card: 'summary_large_image',
creator: twitterHandle,
},
};
const metadata: Metadata = merge(defaultMetadata, properties);
if (image && metadata.openGraph) {
metadata.openGraph.images = [
{
url: image,
width: 1200,
height: 630,
alt: title,
},
];
}
return metadata;
};

View File

@@ -1,21 +0,0 @@
{
"name": "@konobangu/seo",
"version": "0.0.0",
"private": true,
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"dependencies": {
"lodash.merge": "^4.6.2",
"react": "^19.0.0",
"schema-dts": "^1.1.2"
},
"devDependencies": {
"@types/lodash.merge": "^4.6.9",
"@types/node": "22.10.1",
"@types/react": "19.0.1",
"@types/react-dom": "^19.0.3",
"next": "^15.1.4"
}
}

View File

@@ -1,9 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"composite": true
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

View File

@@ -8,11 +8,11 @@
"start": "tsx main.ts"
},
"dependencies": {
"@fastify/static": "^8.1.1",
"@fastify/static": "^8.2.0",
"bittorrent-tracker": "^11.2.1",
"fastify": "^5.2.2",
"tsx": "^4.19.2",
"webtorrent": "^2.5.19"
"fastify": "^5.4.0",
"tsx": "^4.20.2",
"webtorrent": "^2.6.8"
},
"devDependencies": {
"@types/create-torrent": "^5.0.2",

View File

@@ -5,11 +5,11 @@
"main": "./index.js",
"type": "commonjs",
"scripts": {
"clean": "git clean -xdf .cache .turbo dist node_modules",
"clean": "git clean -xdf .cache dist node_modules",
"typecheck": "tsc --noEmit --emitDeclarationOnly false"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"vitest": "^2.1.8"
"@vitejs/plugin-react": "^4.5.2",
"vitest": "^3.2.3"
}
}