Skip to content

Commit

Permalink
Stash: older all-tests dependency experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
spautz committed Jan 16, 2025
1 parent ce4ef71 commit 1732f5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test": "turbo run test",
"test:ci": "turbo run w:all-tests:ci --ui=stream",
"test:ui": "turbo run w:all-tests:ui",
"test:watch": "turbo run test:watch",
"test:watch": "turbo run w:all-tests:watch",
"typecheck": "turbo run w:typecheck typecheck",
"____ WORKSPACE-ONLY TASKS __________________________________________": "",
"changelog": "changeset",
Expand Down
13 changes: 12 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,40 @@

// Tests are a repo-wide task
"//#w:all-tests": {
"dependsOn": ["w:dependencies"],
"inputs": ["$TURBO_DEFAULT$", "**/__tests__/**", "**/tests/**", "**/*.test.*", "**/*.spec.*"],
"outputs": ["coverage/**"]
},
"//#w:all-tests:ci": {
"dependsOn": ["w:dependencies"],
"inputs": ["$TURBO_DEFAULT$", "**/__tests__/**", "**/tests/**", "**/*.test.*", "**/*.spec.*"],
"outputs": ["coverage/**"]
},
"//#w:all-tests:ui": {
"dependsOn": ["w:dependencies"],
"cache": false,
"persistent": true
},
"//#w:all-tests:watch": {
"dependsOn": ["w:dependencies"],
"cache": false,
"persistent": true
},

// An abstract "all packages" dependency for repo-wide workspace tasks.
// This should exactly match the package-level `dependencies` task below -- we just have to explicitly list
// the packages. See https://github.com/vercel/turborepo/discussions/7481
"//#w:dependencies": {
"dependsOn": ["@spautz/node-library-template#build", "@spautz/react-library-template#build"]
},

// Lint and typecheck only target the root's own files: not repo-wide
"//#w:lint": {},
"//#w:lint:fix": {},
"//#w:typecheck": {},

// -----------------------------------------------------------------------
// Batch tasks for packages
// Special tasks for packages

"pipeline-all": {
"dependsOn": ["typecheck", "lint:fix", "test", "build"]
Expand Down

0 comments on commit 1732f5e

Please sign in to comment.