Skip to content

Commit

Permalink
chore: npx turbo/codemod update --force
Browse files Browse the repository at this point in the history
  • Loading branch information
dan2k3k4 committed Jan 24, 2024
1 parent b8504a7 commit 3a30e4b
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 56 deletions.
35 changes: 27 additions & 8 deletions apps/cms/turbo.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,44 @@
{
"extends": ["//"],
"extends": [
"//"
],
"pipeline": {
"dev": {
"persistent": true,
"dependsOn": ["build", "^build"]
"dependsOn": [
"build",
"^build"
]
},
"dev:light": {
"notes": "Same as dev, but does not build the CMS, just clears caches",
"persistent": true,
"dependsOn": ["^build"]
"dependsOn": [
"^build"
]
},
"build": {
"dependsOn": ["prep"],
"inputs": ["config/**", "web/modules/custom/**", "web/themes/custom/**"],
"outputs": ["web/sites/default/files/**"]
"dependsOn": [
"prep"
],
"inputs": [
"config/**",
"web/modules/custom/**",
"web/themes/custom/**"
],
"outputs": [
"web/sites/default/files/**"
]
},
"prep": {
"inputs": ["composer.json", "composer.lock", "scaffold/**"],
"inputs": [
"composer.json",
"composer.lock",
"scaffold/**"
],
"outputs": [
"vendor/**",
"!**/.git/**",
"!*/**/.git/**",
"web/**",
"!web/modules/custom/**",
"!web/themes/custom/**",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"prettier": "^2.8.8",
"turbo": "^1.10.7",
"turbo": "^1.11.3",
"typescript": "^5.1.6",
"vitest": "^0.32.2"
},
Expand Down
17 changes: 13 additions & 4 deletions packages/schema/turbo.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
{
"$schema": "https://turborepo.org/schema.json",
"extends": ["//"],
"extends": [
"//"
],
"pipeline": {
"prep": {
// Dedicated inputs for this package.
"inputs": ["src/**", "codegen.ts", ".graphqlconfig", "tsconfig.json"],
"outputs": ["build/**", "src/generated/index.ts"]
"inputs": [
"src/**",
"codegen.ts",
".graphqlconfig",
"tsconfig.json"
],
"outputs": [
"build/**",
"src/generated/index.ts"
]
}
}
}
68 changes: 34 additions & 34 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,12 @@
"dependsOn": ["test:static"]
},
"test:static": {
// Static tests don't require a build of the package, but they
// require dependencies to be built, since these might contain
// type definitions.
"dependsOn": ["^prep"]
},
"test:unit": {
// Unit tests also don't require the package to be built since test
// tools build packages on the fly. Dependencies need to be built though.
// Also unit tests should not even run without static tests passing or
// dependencies unit tests failing.
"dependsOn": ["^prep", "test:static", "^test:unit"]
},
"test:integration": {
// Integration tests run the full system and require the package to be
// built and unit tested.
"dependsOn": ["build", "test:unit"]
}
}
Expand Down

0 comments on commit 3a30e4b

Please sign in to comment.