Skip to content

Commit

Permalink
Improve cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Apr 16, 2024
1 parent d705499 commit 221b148
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
// Root
"//#bootstrap": {
"cache": false
},
Expand All @@ -19,15 +20,21 @@
"//#update-version-to": {
"cache": false
},

// Packages
"clean": {
"cache": false
},
"lint": {},
"lint": {
"cache": false
},
"codegen": {
"cache": false,
"dependsOn": ["^build"]
},
"build:caching": {
"dependsOn": ["^build", "codegen"],
"cache": true,
"inputs": ["src/**"],
"outputs": ["dist/**"]
},
Expand All @@ -36,24 +43,29 @@
"dependsOn": ["build:caching"]
},
"codegen-tests": {
"cache": false,
"dependsOn": ["build"]
},
"build-tests": {
"cache": true,
"dependsOn": ["^build-tests", "codegen-tests"],
"inputs": ["src-tests/**"],
"outputs": ["dist-tests/**"]
},
"test": {
"cache": true,
"dependsOn": ["build-tests"],
"inputs": ["tests/**"],
"outputs": ["dist-tests/**"]
},
"test-e2e": {
"cache": true,
"dependsOn": ["build"],
"inputs": ["tests/e2e/**"], // FIXME: I think this should be e2e-tests or tests-e2e
"outputs": ["dist-e2e-tests/**"] // FIXME: I think this should be dist-e2e-tests or dist-tests-e2e
},
"start": {
"cache": false,
"dependsOn": ["^build"],
"persistent": true
}
Expand Down

0 comments on commit 221b148

Please sign in to comment.