Skip to content

Commit

Permalink
feat: Add Turborepo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
codinsonn committed Apr 21, 2024
1 parent 7144629 commit 6129c89
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 10 deletions.
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
100 changes: 99 additions & 1 deletion 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 @@ -8,14 +8,20 @@
"packages/*"
],
"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
}
}
}

0 comments on commit 6129c89

Please sign in to comment.