-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
175 additions
and
44 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
1 change: 1 addition & 0 deletions
1
crates/migrate-turborepo/tests/__fixtures__/monorepo/.moon/toolchain.yml
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 @@ | ||
node: {} |
3 changes: 3 additions & 0 deletions
3
crates/migrate-turborepo/tests/__fixtures__/monorepo/.moon/workspace.yml
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 @@ | ||
projects: | ||
- "client" | ||
- "server" |
3 changes: 3 additions & 0 deletions
3
crates/migrate-turborepo/tests/__fixtures__/monorepo/client/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,3 @@ | ||
{ | ||
"name": "client" | ||
} |
8 changes: 8 additions & 0 deletions
8
crates/migrate-turborepo/tests/__fixtures__/monorepo/client/turbo.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,8 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"pipeline": { | ||
"typecheck": { | ||
"dependsOn": ["build"] | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
crates/migrate-turborepo/tests/__fixtures__/monorepo/server/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,3 @@ | ||
{ | ||
"name": "server" | ||
} |
1 change: 1 addition & 0 deletions
1
crates/migrate-turborepo/tests/__fixtures__/monorepo/server/tsconfig.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 @@ | ||
{} |
8 changes: 8 additions & 0 deletions
8
crates/migrate-turborepo/tests/__fixtures__/monorepo/server/turbo.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,8 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"pipeline": { | ||
"lint": { | ||
"outputMode": "errors-only" | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
crates/migrate-turborepo/tests/__fixtures__/monorepo/turbo.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,17 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"pipeline": { | ||
"build": { | ||
"dependsOn": ["^build"], | ||
"outputs": ["dist/**"] | ||
}, | ||
"client#build": { | ||
"dependsOn": ["^build"], | ||
"outputs": ["client/**"] | ||
}, | ||
"server#build": { | ||
"dependsOn": ["^build"], | ||
"outputs": ["server/**"] | ||
} | ||
} | ||
} |
Empty file.
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
18 changes: 18 additions & 0 deletions
18
.../tests/snapshots/migrate_turborepo_test__migrate_turborepo__converts_project_files-2.snap
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,18 @@ | ||
--- | ||
source: crates/migrate-turborepo/tests/migrate_turborepo_test.rs | ||
expression: "fs::read_to_string(sandbox.path().join(\"client/moon.yml\")).unwrap()" | ||
--- | ||
language: javascript | ||
platform: node | ||
tasks: | ||
build: | ||
command: yarn run build | ||
deps: | ||
- ^:build | ||
outputs: | ||
- client/**/* | ||
typecheck: | ||
command: yarn run typecheck | ||
deps: | ||
- ~:build | ||
|
18 changes: 18 additions & 0 deletions
18
.../tests/snapshots/migrate_turborepo_test__migrate_turborepo__converts_project_files-3.snap
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,18 @@ | ||
--- | ||
source: crates/migrate-turborepo/tests/migrate_turborepo_test.rs | ||
expression: "fs::read_to_string(sandbox.path().join(\"server/moon.yml\")).unwrap()" | ||
--- | ||
language: typescript | ||
platform: node | ||
tasks: | ||
build: | ||
command: yarn run build | ||
deps: | ||
- ^:build | ||
outputs: | ||
- server/**/* | ||
lint: | ||
command: yarn run lint | ||
options: | ||
outputStyle: buffer-only-failure | ||
|
12 changes: 12 additions & 0 deletions
12
...po/tests/snapshots/migrate_turborepo_test__migrate_turborepo__converts_project_files.snap
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,12 @@ | ||
--- | ||
source: crates/migrate-turborepo/tests/migrate_turborepo_test.rs | ||
expression: "fs::read_to_string(sandbox.path().join(\".moon/tasks/node.yml\")).unwrap()" | ||
--- | ||
tasks: | ||
build: | ||
command: yarn run build | ||
deps: | ||
- ^:build | ||
outputs: | ||
- dist/**/* | ||
|