-
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.
feat(inputs): add doublestar to dir globs
- Loading branch information
1 parent
4b88f79
commit fdc0026
Showing
8 changed files
with
156 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
.turbo | ||
.npmrc |
10 changes: 10 additions & 0 deletions
10
turborepo-tests/integration/fixtures/dir_globs/apps/my-app/package.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "my-app", | ||
"scripts": { | ||
"build": "echo building", | ||
"maybefails": "exit 4" | ||
}, | ||
"dependencies": { | ||
"util": "*" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
turborepo-tests/integration/fixtures/dir_globs/package.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "monorepo", | ||
"scripts": { | ||
"something": "turbo run build" | ||
}, | ||
"workspaces": [ | ||
"apps/**", | ||
"packages/**" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
turborepo-tests/integration/fixtures/dir_globs/packages/util/package.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "util", | ||
"scripts": { | ||
"build": "echo building; mkdir dist; echo 'world' > dist/hello.txt " | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
turborepo-tests/integration/fixtures/dir_globs/packages/util/src/boo.txt
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 @@ | ||
one |
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,9 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"pipeline": { | ||
"build": { | ||
"inputs": ["src/"], | ||
"outputs": ["dist"] | ||
} | ||
} | ||
} |
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,39 @@ | ||
Setup | ||
$ . ${TESTDIR}/../../../helpers/setup_integration_test.sh dir_globs | ||
Verify that input directory change causes cache miss | ||
$ ${TURBO} build --filter=util --output-logs=hash-only | ||
\xe2\x80\xa2 Packages in scope: util (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
util:build: cache miss, executing 1b15024312fdecef | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 0 cached, 1 total | ||
Time:\s*[\.0-9]+m?s (re) | ||
|
||
$ touch packages/util/src/oops.txt | ||
$ ${TURBO} build --filter=util --output-logs=hash-only | ||
\xe2\x80\xa2 Packages in scope: util (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
util:build: cache miss, executing 31adf3c5481a64c7 | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 0 cached, 1 total | ||
Time:\s*[\.0-9]+m?s (re) | ||
|
||
$ cat packages/util/dist/hello.txt | ||
world | ||
$ rm packages/util/dist/hello.txt | ||
$ ${TURBO} build --filter=util --output-logs=hash-only | ||
\xe2\x80\xa2 Packages in scope: util (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
util:build: cache hit, suppressing logs 31adf3c5481a64c7 | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 1 cached, 1 total | ||
Time:\s*[\.0-9]+m?s >>> FULL TURBO (re) | ||
|
||
$ cat packages/util/dist/hello.txt | ||
world |