Skip to content

Commit

Permalink
Fix some turbo.json input filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheraff committed Feb 18, 2024
1 parent 18d9b77 commit 7effb32
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 34 deletions.
6 changes: 5 additions & 1 deletion assets/turbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {}
"pipeline": {
"spell": {
"inputs": ["$TURBO_DEFAULT$", "../repo.dict.txt"]
}
}
}
19 changes: 16 additions & 3 deletions client/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@
"src/**",
"vite.config.ts",
"public/**",
"!public/sw.js",
"src/**",
"index.html",
"main.tsx",
"tsconfig.app.json",
"../assets/src/**"
"../assets/src/**",
"!**/.DS_Store",
"!**/*.test.ts",
"!**/*.d.ts",
"!**/*.map",
"!../assets/src/**.d.ts",
"!../assets/src/**.map"
],
"outputs": ["../dist/client/**"],
"outputs": ["../dist/client/**", "!../dist/client/.DS_Store"],
"dependsOn": ["script#build"]
},
"tsc:tools": {
Expand Down Expand Up @@ -45,14 +52,17 @@
"types/*.d.ts",
"../types/*.d.ts",
"../shared/src/**/*.ts",
"!../shared/src/**/*.test.ts",
"../server/src/api/**/*.ts",
"!../server/src/api/**/*.test.ts",
"tsconfig.json",
"tsconfig.app.json"
],
"dependsOn": ["client#tsc:build:css"]
},
"tsc": {
"dependsOn": ["client#tsc:tools", "client#tsc:app"]
"dependsOn": ["client#tsc:tools", "client#tsc:app"],
"inputs": ["package.json"]
},
"test": {
"dependsOn": ["script#build"]
Expand All @@ -67,6 +77,9 @@
"cache": false,
"persistent": true,
"dependsOn": ["script#build"]
},
"spell": {
"inputs": ["$TURBO_DEFAULT$", "../repo.dict.txt"]
}
}
}
7 changes: 5 additions & 2 deletions script/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"extends": ["//"],
"pipeline": {
"build": {
"outputs": ["src/**/*.js"],
"outputs": ["src/**/*.js", "src/*.js"],
"inputs": ["src/**/*.ts"]
},
"tsc": {}
"tsc": {},
"spell": {
"inputs": ["$TURBO_DEFAULT$", "../repo.dict.txt"]
}
}
}
26 changes: 22 additions & 4 deletions server/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,29 @@
"extends": ["//"],
"pipeline": {
"build": {
"outputs": ["../dist/server/**"],
"inputs": ["../assets/src/**", "esbuild.ts", "tsconfig.app.json", "src/**"],
"outputs": ["../dist/server/**", "!../dist/server/.DS_Store"],
"inputs": [
"../assets/src/**",
"esbuild.ts",
"tsconfig.app.json",
"src/**",
"!**/.DS_Store",
"!**/*.test.ts",
"!**/*.d.ts",
"!**/*.map",
"!../assets/src/**.d.ts",
"!../assets/src/**.map"
],
"dependsOn": ["script#build"]
},
"tsc:tools": {
"inputs": [
"../types/*.d.ts",
"../script/src/**/*.ts",
"tsconfig.json",
"tsconfig.tools.json"
"tsconfig.tools.json",
"vitest.config.ts",
"vitest.setup.ts"
]
},
"tsc:app": {
Expand All @@ -22,13 +35,15 @@
"types/*.d.ts",
"../types/*.d.ts",
"../shared/src/**/*.ts",
"!../shared/src/**/*.test.ts",
"../script/src/**/*.ts",
"tsconfig.json",
"tsconfig.app.json"
]
},
"tsc": {
"dependsOn": ["server#tsc:tools", "server#tsc:app"]
"dependsOn": ["server#tsc:tools", "server#tsc:app"],
"inputs": ["package.json"]
},
"test": {
"dependsOn": ["script#build"]
Expand All @@ -37,6 +52,9 @@
"cache": false,
"persistent": true,
"dependsOn": ["script#build"]
},
"spell": {
"inputs": ["$TURBO_DEFAULT$", "../repo.dict.txt"]
}
}
}
6 changes: 5 additions & 1 deletion shared/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@
]
},
"tsc": {
"dependsOn": ["shared#tsc:tools", "shared#tsc:lib"]
"dependsOn": ["shared#tsc:tools", "shared#tsc:lib"],
"inputs": ["package.json"]
},
"test": {
"dependsOn": ["script#build"]
},
"spell": {
"inputs": ["$TURBO_DEFAULT$", "../repo.dict.txt"]
}
}
}
56 changes: 36 additions & 20 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,51 @@
"vitest.workspace.ts"
]
},
"lint": {
"inputs": ["$TURBO_DEFAULT$", "./.eslintrc.json"]
},
"lint": {},
"//#root:lint": {
"inputs": ["./.eslintrc.json", "pnpm-lock.yaml", "package.json", "*.ts", "types/*.ts"]
},
"lint:fix": {
"inputs": ["$TURBO_DEFAULT$", "./.eslintrc.json"]
},
"lint:fix": {},
"//#root:lint:fix": {
"inputs": ["./.eslintrc.json", "pnpm-lock.yaml", "package.json", "*.ts", "types/*.ts"]
},
"format": {
"inputs": ["$TURBO_DEFAULT$", "./.prettierrc.json"]
},
"format": {},
"//#root:format": {
"inputs": ["$TURBO_DEFAULT$", "./.prettierrc.json"]
},
"format:fix": {
"inputs": ["$TURBO_DEFAULT$", "./.prettierrc.json"]
"inputs": [
"$TURBO_DEFAULT$",
"!client/**",
"!assets/**",
"!script/**",
"!server/**",
"!shared/**",
"!worker/**"
]
},
"format:fix": {},
"//#root:format:fix": {
"inputs": ["$TURBO_DEFAULT$", "./.prettierrc.json"]
},
"spell": {
"inputs": ["$TURBO_DEFAULT$", "./.cspell.json", "./repo.dict.txt"]
"inputs": [
"$TURBO_DEFAULT$",
"!client/**",
"!assets/**",
"!script/**",
"!server/**",
"!shared/**",
"!worker/**"
]
},
"spell": {},
"//#root:spell": {
"inputs": ["$TURBO_DEFAULT$", "./.cspell.json", "./repo.dict.txt"]
"inputs": [
"$TURBO_DEFAULT$",
"./.cspell.json",
"./repo.dict.txt",
"!client/**",
"!assets/**",
"!script/**",
"!server/**",
"!shared/**",
"!worker/**"
]
},
"clear": {
"cache": false
Expand All @@ -65,8 +81,7 @@
},
"analyze": {
"cache": false
},
"tsc:watch:css": {}
}
},
"globalDotEnv": [".env"],
"globalDependencies": [
Expand All @@ -75,6 +90,7 @@
"types/*.d.ts",
".eslintrc.json",
".prettierrc.json",
".cspell.json",
"package.json"
]
}
20 changes: 17 additions & 3 deletions worker/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@
"extends": ["//"],
"pipeline": {
"build": {
"outputs": ["../dist/worker/**"],
"outputs": ["../dist/worker/**", "!../dist/worker/.DS_Store"],
"inputs": [
"esbuild.ts",
"tsconfig.app.json",
"src/**",
"../dist/client/**",
"../assets/src/**"
"../assets/src/**",
"!**/.DS_Store",
"!../dist/client/.DS_Store",
"!../dist/client/**/*.br",
"!../dist/client/**/*.map",
"!**/*.test.ts",
"!**/*.d.ts",
"!**/*.map",
"!../assets/src/**.d.ts",
"!../assets/src/**.map"
],
"dependsOn": ["client#build", "script#build"]
},
Expand All @@ -30,12 +39,14 @@
"types/*.d.ts",
"../types/*.d.ts",
"../shared/src/**/*.ts",
"!../shared/src/**/*.test.ts",
"tsconfig.json",
"tsconfig.app.json"
]
},
"tsc": {
"dependsOn": ["worker#tsc:tools", "worker#tsc:app"]
"dependsOn": ["worker#tsc:tools", "worker#tsc:app"],
"inputs": ["package.json"]
},
"dev": {
"cache": false,
Expand All @@ -45,6 +56,9 @@
},
"test": {
"dependsOn": ["script#build"]
},
"spell": {
"inputs": ["$TURBO_DEFAULT$", "../repo.dict.txt"]
}
}
}

0 comments on commit 7effb32

Please sign in to comment.