Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin: Turborepo #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ yarn-error.log*
.pnp.js

# -- @end @expo/next-adapter --

.turbo
98 changes: 98 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 15 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@
"next": "~14.0.4"
},
"scripts": {
"dev": "npm run dev:web & npm run dev:mobile",
"dev:web": "npm -w @app/next run dev",
"dev:mobile": "npm -w @app/expo run dev",
"android": "npm -w @app/expo run android",
"ios": "npm -w @app/expo run ios",
"expo:web": "npm -w @app/expo run web",
"build": "npm -w @app/next run build",
"add-dependencies": "npm -w @app/expo run add-dependencies",
"env:local": "npm -w @app/next run env:local & npm -w @app/expo run env:local"
"dev": "npx turbo run dev",
"dev:web": "npx turbo run @app/next#dev",
"dev:mobile": "npx turbo run @app/expo#dev",
"android": "npx turbo run android",
"ios": "npx turbo run ios",
"expo:web": "npx turbo run @app/expo#web",
"build": "npx turbo run build",
"add-dependencies": "npx turbo run @app-expo#add-dependencies",
"env:local": "npx turbo run env:local",
"turbo:login": "npx turbo login",
"turbo:link": "npx turbo link",
"turbo:unlink": "npx turbo unlink"
},
"devDependencies": {
"turbo": "^1.13.2"
}
}
33 changes: 33 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"outputs": [".next/**", "!.next/cache/**"],
"cache": true
},
"dev": {
"cache": false
},
"@app/next#dev": {
"cache": false
},
"@app/expo#dev": {
"cache": false
},
"android": {
"cache": false
},
"ios": {
"cache": false
},
"@app/expo#web": {
"cache": false
},
"@app-expo#add-dependencies": {
"cache": false
},
"env:local": {
"cache": false
}
}
}