Skip to content

Commit 6125426

Browse files
committed
turbo
1 parent 8dde651 commit 6125426

File tree

7 files changed

+124
-1044
lines changed

7 files changed

+124
-1044
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ local.properties
3131

3232
#workspaces
3333
/packages/*/lib
34+
.turbo

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@
55
"packages/*"
66
],
77
"packageManager": "[email protected]",
8+
"engines": {
9+
"node": "v20.10.0"
10+
},
811
"scripts": {
912
"format": "concurrently 'yarn:format:*'",
1013
"format:c": "clang-format -i $(git ls-files '*.cpp' '*.h' '*.m' '*.mm') --style file:.config/.clang-format",
11-
"format:js": "prettier --write --loglevel error $(git ls-files '*.js' '*.json' '*.ts' '*.tsx' '*.yml' 'README.md')"
14+
"format:js": "prettier --write --loglevel error $(git ls-files '*.js' '*.json' '*.ts' '*.tsx' '*.yml' 'README.md')",
15+
"test:lint": "turbo run test:lint",
16+
"test:ts": "turbo run test:ts",
17+
"test:unit": "turbo run test:unit"
1218
},
1319
"devDependencies": {
1420
"concurrently": "^8.2.2",
1521
"eslint": "^8.54.0",
1622
"prettier": "^2.8.8",
23+
"turbo": "^1.12.5",
1724
"typescript": "^5.3.0"
1825
},
1926
"resolutions": {

packages/api/jest.config.js

-5
This file was deleted.

packages/api/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"prepack": "yarn build",
1818
"build": "bob build",
1919
"test:lint": "eslint $(git ls-files '*.js' '*.ts' '*.tsx')",
20-
"test:ts": "tsc --noEmit",
21-
"test:jest": "jest"
20+
"test:ts": "tsc --noEmit"
2221
},
2322
"keywords": [
2423
"react-native",
@@ -31,12 +30,9 @@
3130
"author": "Krzysztof Borowy <[email protected]>",
3231
"license": "MIT",
3332
"devDependencies": {
34-
"@types/jest": "29.5.4",
3533
"eslint": "^8.54.0",
36-
"jest": "29.5.0",
3734
"prettier": "^2.8.8",
3835
"react-native-builder-bob": "0.20.0",
39-
"ts-jest": "29.1.1",
4036
"typescript": "^5.3.0"
4137
},
4238
"react-native-builder-bob": {

packages/api/tsconfig.json

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"extends": "../../.config/tsconfig.base.json",
3-
"compilerOptions": {
4-
"types": ["jest"]
5-
},
63
"include": ["example", "src"]
74
}

turbo.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"pipeline": {
4+
"test:lint": {},
5+
"test:ts": {}
6+
}
7+
}

0 commit comments

Comments
 (0)