Skip to content

Commit c5a51fd

Browse files
committed
chore: proper turborepo configuration
1 parent 5690431 commit c5a51fd

3 files changed

Lines changed: 61 additions & 55 deletions

File tree

apps/RNApp/turbo.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build:android": {
6+
"dependsOn": ["build:brownfield"],
7+
"env": ["JAVA_HOME", "ANDROID_NDK", "ANDROID_SDK", "ANDROID_HOME"],
8+
"inputs": [
9+
"apps/RNApp/package.json",
10+
"apps/RNApp/android",
11+
"!apps/RNApp/android/.gradle",
12+
"!apps/RNApp/android/build",
13+
"!apps/RNApp/android/app/build"
14+
],
15+
"outputs": []
16+
},
17+
"build:ios": {
18+
"dependsOn": ["build:brownfield"],
19+
"env": ["RCT_NEW_ARCH_ENABLED"],
20+
"inputs": [
21+
"apps/RNApp/package.json",
22+
"apps/RNApp/ios",
23+
"!apps/RNApp/ios/build",
24+
"!apps/RNApp/ios/Pods"
25+
],
26+
"outputs": []
27+
}
28+
}
29+
}

apps/tester-from-source/turbo.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build:tester-from-source:android": {
6+
"dependsOn": ["build:brownfield"],
7+
"env": ["JAVA_HOME", "ANDROID_NDK", "ANDROID_SDK", "ANDROID_HOME"],
8+
"inputs": [
9+
"apps/tester-from-source/package.json",
10+
"apps/tester-from-source/kotlin",
11+
"!apps/tester-from-source/kotlin/.gradle",
12+
"!apps/tester-from-source/kotlin/build",
13+
"!apps/tester-from-source/kotlin/app/build"
14+
],
15+
"outputs": []
16+
},
17+
"build:tester-from-source:ios": {
18+
"dependsOn": ["build:brownfield"],
19+
"env": ["RCT_NEW_ARCH_ENABLED"],
20+
"inputs": [
21+
"apps/tester-from-source/package.json",
22+
"apps/tester-from-source/swift",
23+
"!apps/tester-from-source/swift/build",
24+
"!apps/tester-from-source/swift/Pods"
25+
],
26+
"outputs": []
27+
}
28+
}
29+
}

turbo.json

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"$schema": "https://turbo.build/schema.json",
33
"tasks": {
44
"lint": {
5-
"dependsOn": ["^build:brownfield"],
5+
"dependsOn": ["build:brownfield"],
66
"inputs": ["**/*.ts", "**/*.tsx", "**/*.js"]
77
},
88
"typecheck": {
9-
"dependsOn": ["^build:brownfield"],
9+
"dependsOn": ["build:brownfield"],
1010
"inputs": ["**/*.ts", "**/*.tsx"]
1111
},
1212
"test": {},
1313
"build": {
1414
"dependsOn": ["^build"],
15-
"outputs": ["lib/**"]
15+
"outputs": ["lib/**", "doc_build/**"]
1616
},
1717
"build:brownfield": {
1818
"inputs": [
@@ -26,58 +26,6 @@
2626
"packages/react-native-brownfield/src/*.tsx"
2727
],
2828
"outputs": ["lib/**"]
29-
},
30-
"build:tester-from-source:android": {
31-
"env": ["JAVA_HOME", "ANDROID_NDK", "ANDROID_SDK", "ANDROID_HOME"],
32-
"inputs": [
33-
"packages/react-native-brownfield/package.json",
34-
"packages/react-native-brownfield/android",
35-
"packages/react-native-brownfield/!android/build",
36-
"packages/react-native-brownfield/src/*.ts",
37-
"packages/react-native-brownfield/src/*.tsx",
38-
"apps/tester-from-source/package.json",
39-
"apps/tester-from-source/kotlin",
40-
"!apps/tester-from-source/kotlin/.gradle",
41-
"!apps/tester-from-source/kotlin/build",
42-
"!apps/tester-from-source/kotlin/app/build"
43-
],
44-
"outputs": []
45-
},
46-
"build:tester-from-source:ios": {
47-
"env": ["RCT_NEW_ARCH_ENABLED"],
48-
"inputs": [
49-
"packages/react-native-brownfield/package.json",
50-
"packages/react-native-brownfield/android",
51-
"packages/react-native-brownfield/!android/build",
52-
"packages/react-native-brownfield/src/*.ts",
53-
"packages/react-native-brownfield/src/*.tsx",
54-
"apps/tester-from-source/package.json",
55-
"apps/tester-from-source/swift",
56-
"!apps/tester-from-source/swift/build",
57-
"!apps/tester-from-source/swift/Pods"
58-
],
59-
"outputs": []
60-
},
61-
"build:RNApp:android": {
62-
"env": ["JAVA_HOME", "ANDROID_NDK", "ANDROID_SDK", "ANDROID_HOME"],
63-
"inputs": [
64-
"apps/tester-from-source/package.json",
65-
"apps/tester-from-source/kotlin",
66-
"!apps/tester-from-source/kotlin/.gradle",
67-
"!apps/tester-from-source/kotlin/build",
68-
"!apps/tester-from-source/kotlin/app/build"
69-
],
70-
"outputs": []
71-
},
72-
"build:RNApp:ios": {
73-
"env": ["RCT_NEW_ARCH_ENABLED"],
74-
"inputs": [
75-
"apps/tester-from-source/package.json",
76-
"apps/tester-from-source/swift",
77-
"!apps/tester-from-source/swift/build",
78-
"!apps/tester-from-source/swift/Pods"
79-
],
80-
"outputs": []
8129
}
8230
}
8331
}

0 commit comments

Comments
 (0)