-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chrisolszewski/turbo-537-improve-changed-wor…
- Loading branch information
Showing
333 changed files
with
8,281 additions
and
1,230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package main | ||
|
||
const turboVersion = "1.7.1-canary.1" | ||
const turboVersion = "1.7.1-canary.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
Setup | ||
$ . ${TESTDIR}/../setup.sh | ||
$ . ${TESTDIR}/setup.sh $(pwd) | ||
|
||
Check my-app#build output | ||
$ ${TURBO} run build --dry | grep "Packages in Scope" -A 4 | ||
Packages in Scope | ||
Name Path | ||
my-app apps/my-app | ||
util packages/util | ||
|
||
$ ${TURBO} run build --dry | grep "my-app#build" -A 12 | ||
my-app#build | ||
Task = build | ||
Package = my-app | ||
Hash = 7438505b97329a3d | ||
Cached (Local) = false | ||
Cached (Remote) = false | ||
Directory = apps/my-app | ||
Command = echo 'building' | ||
Outputs = apple.json, banana.txt | ||
Log File = apps/my-app/.turbo/turbo-build.log | ||
Dependencies = | ||
Dependendents = | ||
ResolvedTaskDefinition = {"outputs":["apple.json","banana.txt"],"cache":true,"dependsOn":[],"inputs":[],"outputMode":0,"env":[],"persistent":false} | ||
$ ${TURBO} run build --dry | grep "util#build" -A 12 | ||
util#build | ||
Task = build | ||
Package = util | ||
Hash = 6dec18f9f767112f | ||
Cached (Local) = false | ||
Cached (Remote) = false | ||
Directory = packages/util | ||
Command = echo 'building' | ||
Outputs = | ||
Log File = packages/util/.turbo/turbo-build.log | ||
Dependencies = | ||
Dependendents = | ||
ResolvedTaskDefinition = {"outputs":[],"cache":true,"dependsOn":[],"inputs":[],"outputMode":0,"env":[],"persistent":false} | ||
|
||
# Validate output of my-app#build task | ||
$ ${TURBO} run build --dry=json | jq '.tasks | map(select(.taskId == "my-app#build")) | .[0]' | ||
{ | ||
"taskId": "my-app#build", | ||
"task": "build", | ||
"package": "my-app", | ||
"hash": "7438505b97329a3d", | ||
"cacheState": { | ||
"local": false, | ||
"remote": false | ||
}, | ||
"command": "echo 'building'", | ||
"outputs": [ | ||
"apple.json", | ||
"banana.txt" | ||
], | ||
"excludedOutputs": null, | ||
"logFile": "apps/my-app/.turbo/turbo-build.log", | ||
"directory": "apps/my-app", | ||
"dependencies": [], | ||
"dependents": [], | ||
"resolvedTaskDefinition": { | ||
"outputs": [ | ||
"apple.json", | ||
"banana.txt" | ||
], | ||
"cache": true, | ||
"dependsOn": [], | ||
"inputs": [], | ||
"outputMode": 0, | ||
"env": [], | ||
"persistent": false | ||
} | ||
} | ||
|
||
# Validate output of util#build task | ||
$ ${TURBO} run build --dry=json | jq '.tasks | map(select(.taskId == "util#build")) | .[0]' | ||
{ | ||
"taskId": "util#build", | ||
"task": "build", | ||
"package": "util", | ||
"hash": "6dec18f9f767112f", | ||
"cacheState": { | ||
"local": false, | ||
"remote": false | ||
}, | ||
"command": "echo 'building'", | ||
"outputs": null, | ||
"excludedOutputs": null, | ||
"logFile": "packages/util/.turbo/turbo-build.log", | ||
"directory": "packages/util", | ||
"dependencies": [], | ||
"dependents": [], | ||
"resolvedTaskDefinition": { | ||
"outputs": [], | ||
"cache": true, | ||
"dependsOn": [], | ||
"inputs": [], | ||
"outputMode": 0, | ||
"env": [], | ||
"persistent": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
"pipeline": { | ||
"build": { | ||
"outputs": [] | ||
}, | ||
|
||
"my-app#build": { | ||
"outputs": ["banana.txt", "apple.json"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.