Skip to content

Commit f298a5c

Browse files
bitgopatmclericcrosson-bitgo
authored andcommitted
feat: add turbo
1 parent b1a809b commit f298a5c

File tree

4 files changed

+310
-5
lines changed

4 files changed

+310
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
dist/
44
node_modules/
55
coverage/
6+
.turbo/

package-lock.json

Lines changed: 285 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,21 @@
1717
"workspaces": [
1818
"packages/**"
1919
],
20+
"packageManager": "[email protected]",
2021
"scripts": {
21-
"build": "tsc --build --incremental --verbose .",
22-
"clean": "npm run --workspaces clean",
22+
"build": "turbo run build",
23+
"clean": "turbo run clean",
24+
"predistclean": "turbo run clean",
2325
"distclean": "rm -rf node_modules packages/*/node_modules",
2426
"lint-staged": "lint-staged",
25-
"test": "npm run --workspaces test"
27+
"test": "turbo run test"
2628
},
2729
"pre-commit": "lint-staged",
2830
"devDependencies": {
2931
"lint-staged": "12.3.7",
3032
"pre-commit": "1.2.2",
3133
"prettier": "2.5.1",
34+
"turbo": "1.1.10",
3235
"typescript": "4.5.5"
33-
},
34-
"dependencies": {
3536
}
3637
}

turbo.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://turborepo.org/schema.json",
3+
"baseBranch": "origin/master",
4+
"pipeline": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"outputs": ["dist/**"]
8+
},
9+
"test": {
10+
"dependsOn": ["build"],
11+
"outputs": [".nyc_output/**"]
12+
},
13+
"clean": {
14+
"outputs": [],
15+
"cache": false
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)