Skip to content

Commit 94bb04b

Browse files
committed
feat: Add Turborepo setup
1 parent 11980c6 commit 94bb04b

File tree

4 files changed

+148
-9
lines changed

4 files changed

+148
-9
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

+98
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
@@ -14,14 +14,20 @@
1414
"next": "~14.0.4"
1515
},
1616
"scripts": {
17-
"dev": "npm run dev:web & npm run dev:mobile",
18-
"dev:web": "npm -w @app/next run dev",
19-
"dev:mobile": "npm -w @app/expo run dev",
20-
"android": "npm -w @app/expo run android",
21-
"ios": "npm -w @app/expo run ios",
22-
"expo:web": "npm -w @app/expo run web",
23-
"build": "npm -w @app/next run build",
24-
"add-dependencies": "npm -w @app/expo run add-dependencies",
25-
"env:local": "npm -w @app/next run env:local & npm -w @app/expo run env:local"
17+
"dev": "npx turbo run dev",
18+
"dev:web": "npx turbo run @app/next#dev",
19+
"dev:mobile": "npx turbo run @app/expo#dev",
20+
"android": "npx turbo run android",
21+
"ios": "npx turbo run ios",
22+
"expo:web": "npx turbo run @app/expo#web",
23+
"build": "npx turbo run build",
24+
"add-dependencies": "npx turbo run @app-expo#add-dependencies",
25+
"env:local": "npx turbo run env:local",
26+
"turbo:login": "npx turbo login",
27+
"turbo:link": "npx turbo link",
28+
"turbo:unlink": "npx turbo unlink"
29+
},
30+
"devDependencies": {
31+
"turbo": "^1.13.2"
2632
}
2733
}

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)