fix: add turbo config for build
Some checks failed
Deploy to Production / deploy (push) Has been cancelled
Some checks failed
Deploy to Production / deploy (push) Has been cancelled
This commit is contained in:
@@ -7,7 +7,7 @@ WORKDIR /app
|
||||
RUN npm install -g pnpm@9
|
||||
|
||||
# 复制package文件
|
||||
COPY package.json pnpm-workspace.yaml ./
|
||||
COPY package.json pnpm-workspace.yaml turbo.json ./
|
||||
COPY apps ./apps
|
||||
COPY packages ./packages
|
||||
COPY internal ./internal
|
||||
|
||||
50
turbo.json
Normal file
50
turbo.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"globalDependencies": [
|
||||
"pnpm-lock.yaml",
|
||||
"**/.env.*local",
|
||||
"**/tsconfig*.json",
|
||||
"internal/node-utils/*.json",
|
||||
"internal/node-utils/src/**/*.ts",
|
||||
"internal/tailwind-config/src/**/*.ts",
|
||||
"internal/vite-config/*.json",
|
||||
"internal/vite-config/src/**/*.ts",
|
||||
"scripts/*/src/**/*.ts",
|
||||
"scripts/*/src/**/*.json"
|
||||
],
|
||||
"globalEnv": ["NODE_ENV"],
|
||||
"tasks": {
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": [
|
||||
"dist/**",
|
||||
"dist.zip",
|
||||
".vitepress/dist.zip",
|
||||
".vitepress/dist/**",
|
||||
"apps/**/dist/**"
|
||||
]
|
||||
},
|
||||
"preview": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"build:analyze": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"@vben/backend#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": [".nitro/**", ".output/**"]
|
||||
},
|
||||
"test:e2e": {},
|
||||
"dev": {
|
||||
"dependsOn": [],
|
||||
"outputs": [],
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
},
|
||||
"typecheck": {
|
||||
"outputs": []
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user