centralize turbo config

This commit is contained in:
Elio Bischof
2023-06-20 11:55:15 +02:00
parent 77029b6eb8
commit 8094daf666
4 changed files with 61 additions and 69 deletions

View File

@@ -1,29 +0,0 @@
{
"extends": ["//"],
"pipeline": {
"build": {
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
"dependsOn": ["^build"]
},
"test": {
"dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
},
"test:integration": {
"dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
},
"test:unit": {
"dependsOn": ["@zitadel/server#build"]
},
"test:watch": {
"dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
},
"lint": {},
"dev": {
"cache": false,
"persistent": true
},
"clean": {
"cache": false
}
}
}

View File

@@ -1,18 +0,0 @@
{
"extends": [
"//"
],
"pipeline": {
"generate": {
"outputs": [
"src/proto/**"
],
"cache": true
},
"build": {
"dependsOn": [
"generate"
]
}
}
}

View File

@@ -1,18 +0,0 @@
{
"extends": [
"//"
],
"pipeline": {
"generate": {
"outputs": [
"src/proto/**"
],
"cache": true
},
"build": {
"dependsOn": [
"generate"
]
}
}
}

View File

@@ -1,16 +1,73 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"generate": {},
"build": {},
"generate": {
"outputs": [
"src/proto/**"
],
"cache": true
},
"build": {
"dependsOn": [
"generate"
]
},
"test": {},
"test:unit": {},
"test:integration": {},
"test:watch": {},
"lint": {},
"lint:fix": {},
"dev": {},
"clean": {}
"dev": {
"cache": false,
"persistent": true
},
"clean": {
"cache": false
},
"@zitadel/server#generate": {
"outputs": [
"src/proto/**"
]
},
"@zitadel/client#generate": {
"outputs": [
"src/proto/**"
]
},
"@zitadel/login#build": {
"outputs": [
"dist/**",
".next/**",
"!.next/cache/**"
],
"dependsOn": [
"^build"
]
},
"@zitadel/login#test": {
"dependsOn": [
"@zitadel/server#build",
"@zitadel/react#build"
]
},
"@zitadel/login#test:integration": {
"dependsOn": [
"@zitadel/server#build",
"@zitadel/react#build"
]
},
"@zitadel/login#test:unit": {
"dependsOn": [
"@zitadel/server#build"
]
},
"@zitadel/login#test:watch": {
"dependsOn": [
"@zitadel/server#build",
"@zitadel/react#build"
]
}
},
"globalDependencies": [
"**/.env.*local"