feat(task2): add root turborepo and npm workspaces configuration

This commit is contained in:
2026-07-02 15:16:07 +08:00
parent 9bbcb20b51
commit ee2cad0941
4 changed files with 15130 additions and 6 deletions

8
.gitignore vendored
View File

@@ -38,3 +38,11 @@ logs/
# 系统文件
.DS_Store
Thumbs.db
# Turborepo
.turbo/
# Monorepo pattern matches
apps/server/node_modules/
apps/server/dist/
apps/admin/node_modules/
apps/admin/dist/

15100
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,15 @@
{
"name": "gongxue-base",
"private": true,
"workspaces": ["apps/*", "packages/*"],
"scripts": {
"build:backend": "cd backend && npx tsc --noEmit",
"typecheck:backend": "cd backend && npx tsc --noEmit",
"build:frontend": "cd frontend && npx vite build --logLevel error"
"dev": "turbo run dev",
"build": "turbo run build",
"lint": "turbo run lint",
"test": "turbo run test",
"format": "turbo run format",
"typecheck": "turbo run typecheck"
},
"dependencies": {
"@fission-ai/openspec": "^1.5.0"
}
"devDependencies": { "turbo": "^2.0.0" },
"dependencies": { "@fission-ai/openspec": "^1.5.0" }
}

11
turbo.json Normal file
View File

@@ -0,0 +1,11 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": { "dependsOn": ["^build"], "outputs": ["dist/**"] },
"dev": { "cache": false, "persistent": true },
"lint": {},
"test": {},
"format": { "cache": false },
"typecheck": { "dependsOn": ["^build"] }
}
}