chore: initialize monorepo tooling

This commit is contained in:
2026-09-18 15:00:48 +08:00
parent e28140a0b3
commit 55b2b091c2
42 changed files with 1858 additions and 18 deletions

12
apps/admin/package.json Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "@personal-brand/admin",
"private": true,
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist"
}
}

1
apps/admin/src/main.ts Normal file
View File

@@ -0,0 +1 @@
export const adminAppName = "personal-brand-admin";

5
apps/admin/tsconfig.json Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "outDir": "dist", "rootDir": "src", "lib": ["ES2022", "DOM"] },
"include": ["src/**/*.ts"]
}

12
apps/api/package.json Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "@personal-brand/api",
"private": true,
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist"
}
}

3
apps/api/src/main.ts Normal file
View File

@@ -0,0 +1,3 @@
export function healthMessage(): string {
return "personal-brand-api";
}

5
apps/api/tsconfig.json Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
"include": ["src/**/*.ts"]
}

10
apps/miniapp/package.json Normal file
View File

@@ -0,0 +1,10 @@
{
"name": "@personal-brand/miniapp",
"private": true,
"type": "module",
"scripts": {
"lint": "eslint . --ext .ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist"
}
}

View File

@@ -0,0 +1 @@
export const miniappName = "personal-brand-miniapp";

View File

@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "noEmit": true, "lib": ["ES2022"] },
"include": ["src/**/*.ts"]
}