feat(task2): add root turborepo and npm workspaces configuration
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -38,3 +38,11 @@ logs/
|
|||||||
# 系统文件
|
# 系统文件
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
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
15100
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@@ -1,10 +1,15 @@
|
|||||||
{
|
{
|
||||||
|
"name": "gongxue-base",
|
||||||
|
"private": true,
|
||||||
|
"workspaces": ["apps/*", "packages/*"],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:backend": "cd backend && npx tsc --noEmit",
|
"dev": "turbo run dev",
|
||||||
"typecheck:backend": "cd backend && npx tsc --noEmit",
|
"build": "turbo run build",
|
||||||
"build:frontend": "cd frontend && npx vite build --logLevel error"
|
"lint": "turbo run lint",
|
||||||
|
"test": "turbo run test",
|
||||||
|
"format": "turbo run format",
|
||||||
|
"typecheck": "turbo run typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"devDependencies": { "turbo": "^2.0.0" },
|
||||||
"@fission-ai/openspec": "^1.5.0"
|
"dependencies": { "@fission-ai/openspec": "^1.5.0" }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
turbo.json
Normal file
11
turbo.json
Normal 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"] }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user