Skip to content

Commit 6129c89

Browse files
committed
feat: Add Turborepo setup
1 parent 7144629 commit 6129c89

File tree

4 files changed

+149
-10
lines changed

4 files changed

+149
-10
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ yarn-error.log*
5757
.pnp.js
5858

5959
# -- @end @expo/next-adapter --
60+
61+
.turbo

package-lock.json

+99-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+15-9
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@
88
"packages/*"
99
],
1010
"scripts": {
11-
"dev": "npm run dev:web & npm run dev:mobile",
12-
"dev:web": "npm -w @app/next run dev",
13-
"dev:mobile": "npm -w @app/expo run dev",
14-
"android": "npm -w @app/expo run android",
15-
"ios": "npm -w @app/expo run ios",
16-
"expo:web": "npm -w @app/expo run web",
17-
"build": "npm -w @app/next run build",
18-
"add-dependencies": "npm -w @app/expo run add-dependencies",
19-
"env:local": "npm -w @app/next run env:local & npm -w @app/expo run env:local"
11+
"dev": "npx turbo run dev",
12+
"dev:web": "npx turbo run @app/next#dev",
13+
"dev:mobile": "npx turbo run @app/expo#dev",
14+
"android": "npx turbo run android",
15+
"ios": "npx turbo run ios",
16+
"expo:web": "npx turbo run @app/expo#web",
17+
"build": "npx turbo run build",
18+
"add-dependencies": "npx turbo run @app-expo#add-dependencies",
19+
"env:local": "npx turbo run env:local",
20+
"turbo:login": "npx turbo login",
21+
"turbo:link": "npx turbo link",
22+
"turbo:unlink": "npx turbo unlink"
23+
},
24+
"devDependencies": {
25+
"turbo": "^1.13.2"
2026
}
2127
}

turbo.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"pipeline": {
4+
"build": {
5+
"outputs": [".next/**", "!.next/cache/**"],
6+
"cache": true
7+
},
8+
"dev": {
9+
"cache": false
10+
},
11+
"@app/next#dev": {
12+
"cache": false
13+
},
14+
"@app/expo#dev": {
15+
"cache": false
16+
},
17+
"android": {
18+
"cache": false
19+
},
20+
"ios": {
21+
"cache": false
22+
},
23+
"@app/expo#web": {
24+
"cache": false
25+
},
26+
"@app-expo#add-dependencies": {
27+
"cache": false
28+
},
29+
"env:local": {
30+
"cache": false
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)