Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .claude/hooks/docs/task-dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"lint:tsc": [
"@local/eslint#build"
],
"test:unit": [
"@local/eslint#build"
]
"test:unit": []
}
}
18 changes: 17 additions & 1 deletion apps/hash-ai-worker-ts/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@
"extends": ["//"],
"tasks": {
"build": {
"outputs": ["./dist/**"]
"outputs": ["./dist/**"],
"dependsOn": ["^build"]
},
"build:docker": {
"dependsOn": ["^manifest"]
},
"dev": {
"dependsOn": ["^build"]
},
"test:unit": {
"dependsOn": ["^build"]
},
"start": {
"dependsOn": ["build", "@apps/hash-graph#start:healthcheck"]
},
"start:test": {
"dependsOn": ["build", "@apps/hash-graph#start:test:healthcheck"]
}
}
}
89 changes: 80 additions & 9 deletions apps/hash-api/docs/task-dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,80 @@
"tasks": {
"build:docker": [],
"codegen": [
"@hashintel/petrinaut-core#build",
"@local/hash-isomorphic-utils#build",
"@local/petrinaut-optimizer-client#build"
],
"dev": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@blockprotocol/type-system#codegen",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/harpc-client#build",
"@local/hash-backend-utils#build",
"@local/hash-graph-authorization#build",
"@local/hash-graph-authorization#codegen",
"@local/hash-graph-client#build",
"@local/hash-graph-client#codegen",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-graph-store#codegen",
"@local/hash-isomorphic-utils#build",
"@local/hash-isomorphic-utils#codegen",
"@local/internal-api-client#build",
"@local/petrinaut-optimizer-client#build",
"@local/petrinaut-optimizer-client#codegen",
"@local/status#build"
],
"dev": [
"@local/status#build",
"codegen"
],
"fix:eslint": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/harpc-client#build",
"@local/hash-backend-utils#build",
"@local/hash-graph-authorization#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/internal-api-client#build",
"@local/petrinaut-optimizer-client#build",
"@local/status#build",
"codegen"
],
"lint:eslint": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/harpc-client#build",
"@local/hash-backend-utils#build",
"@local/hash-graph-authorization#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/internal-api-client#build",
"@local/petrinaut-optimizer-client#build",
"@local/status#build",
"codegen"
],
"lint:tsc": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/harpc-client#build",
"@local/hash-backend-utils#build",
"@local/hash-graph-authorization#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/internal-api-client#build",
"@local/petrinaut-optimizer-client#build",
"@local/status#build",
"codegen"
],
"start": [
Expand All @@ -63,6 +104,21 @@
"start:healthcheck": [],
"start:migrate": [
"@apps/hash-graph#start:healthcheck",
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/harpc-client#build",
"@local/hash-backend-utils#build",
"@local/hash-graph-authorization#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/internal-api-client#build",
"@local/petrinaut-optimizer-client#build",
"@local/status#build",
"codegen"
],
"start:test": [
Expand All @@ -71,6 +127,21 @@
"start:test:healthcheck": [],
"start:test:migrate": [
"@apps/hash-graph#start:test:healthcheck",
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/harpc-client#build",
"@local/hash-backend-utils#build",
"@local/hash-graph-authorization#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/internal-api-client#build",
"@local/petrinaut-optimizer-client#build",
"@local/status#build",
"codegen"
],
"test:unit": [
Expand Down
38 changes: 35 additions & 3 deletions apps/hash-api/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,45 @@
"codegen": {
// Outputs of GraphQL generation
"outputs": ["./src/**/*.gen.*"],
// The optimizer handler imports runtime modules whose workspace exports
// resolve from dist.
// graphql-codegen loads its config from the isomorphic utils' dist, and the optimizer
// handler imports runtime modules whose workspace exports resolve from dist.
"dependsOn": [
"^codegen",
"@local/hash-isomorphic-utils#build",
"@hashintel/petrinaut-core#build",
"@local/petrinaut-optimizer-client#build"
]
},
// The service starts from its sources, so this runs nothing of its own and gathers the
// generated code and the dependencies' builds a checkout needs to run it.
"build": {
"dependsOn": ["codegen", "^build"]
},
// The image copies the repository and generates and builds inside it, so the host
// only contributes sources.
"build:docker": {
"dependsOn": ["^manifest"]
},
"dev": {
"dependsOn": ["codegen", "^build"]
},
"test:unit": {
"dependsOn": ["codegen", "^build"]
},
"start:migrate": {
"dependsOn": ["codegen", "^build", "@apps/hash-graph#start:healthcheck"]
},
"start": {
"dependsOn": ["start:migrate"]
},
"start:test:migrate": {
"dependsOn": [
"codegen",
"^build",
"@apps/hash-graph#start:test:healthcheck"
]
},
"start:test": {
"dependsOn": ["start:test:migrate"]
}
}
}
45 changes: 42 additions & 3 deletions apps/hash-frontend/docs/task-dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
],
"build:docker": [],
"codegen": [
"@hashintel/ds-components#build",
"@hashintel/petrinaut#build",
"@local/hash-isomorphic-utils#build"
],
"dev": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/ds-components#build",
Expand All @@ -49,27 +54,61 @@
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/status#build"
],
"dev": [
"@local/status#build",
"codegen"
],
"fix:eslint": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/ds-components#build",
"@hashintel/petrinaut#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/status#build",
"codegen"
],
"lint:eslint": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/ds-components#build",
"@hashintel/petrinaut#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/status#build",
"codegen"
],
"lint:tsc": [
"@blockprotocol/graph#build",
"@blockprotocol/type-system#build",
"@hashintel/ds-components#build",
"@hashintel/petrinaut#build",
"@hashintel/petrinaut-core#build",
"@local/advanced-types#build",
"@local/eslint#build",
"@local/hash-graph-client#build",
"@local/hash-graph-sdk#build",
"@local/hash-graph-store#build",
"@local/hash-isomorphic-utils#build",
"@local/status#build",
"codegen"
],
"start": [
"@apps/hash-api#start:healthcheck",
"build"
],
"start:healthcheck": [],
"start:test": [
"@apps/hash-api#start:test:healthcheck",
"build"
],
"start:test:healthcheck": [],
Expand Down
27 changes: 25 additions & 2 deletions apps/hash-frontend/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,37 @@
"extends": ["//"],
"tasks": {
"codegen": {
// Outputs of GraphQL generation
// Outputs of GraphQL generation and of `panda cssgen`
"outputs": ["./src/**/*.gen.*"],
"dependsOn": ["^build"]
// graphql-codegen loads its config from the isomorphic utils' dist, and the Panda
// config loads both presets from their packages' dist.
"dependsOn": [
"@local/hash-isomorphic-utils#build",
"@hashintel/ds-components#build",
"@hashintel/petrinaut#build"
]
},
"build": {
// "outputs": ["./.next/**"],
"cache": false,
"dependsOn": ["^build", "codegen"]
},
// The image copies the repository and generates and builds inside it, so the host
// only contributes sources.
"build:docker": {
"dependsOn": ["^manifest"]
},
"dev": {
"dependsOn": ["codegen", "^build"]
},
"test:unit": {
"dependsOn": ["codegen", "^build"]
},
"start": {
"dependsOn": ["build", "@apps/hash-api#start:healthcheck"]
},
"start:test": {
"dependsOn": ["build", "@apps/hash-api#start:test:healthcheck"]
}
}
}
4 changes: 1 addition & 3 deletions apps/hash-graph/docs/task-dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
"start:test:migrate": [
"compile"
],
"test:unit": [
"@local/status#build"
]
"test:unit": []
}
}
12 changes: 12 additions & 0 deletions apps/hash-graph/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@
"cache": false,
"dependsOn": ["compile:release"]
},
"start:healthcheck": {
"dependsOn": ["compile:release"]
},
"start": {
"dependsOn": ["start:migrate"]
},
"start:test:migrate": {
"cache": false,
"dependsOn": ["compile"]
},
"start:test:healthcheck": {
"dependsOn": ["compile"]
},
"start:test": {
"dependsOn": ["start:test:migrate"]
}
}
}
2 changes: 2 additions & 0 deletions apps/hash-integration-worker/docs/task-dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@
"build"
],
"start": [
"@apps/hash-graph#start:healthcheck",
"build"
],
"start:healthcheck": [],
"start:test": [
"@apps/hash-graph#start:test:healthcheck",
"build"
],
"start:test:healthcheck": []
Expand Down
Loading
Loading