Skip to content

Commit

Permalink
Turbo Repo v2 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook authored Jun 5, 2024
1 parent bca6647 commit 5efa217
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 40 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ The React example can be used to test the library locally.
```

2. `pnpm install`
3. From the root folder, run `pnpm build` to build the packages.
3. From the root folder, run `pnpm build` to build the packages OR optionally run `pnpm dev` in a separate terminal to develop in watch mode.
4. From the root folder, run `pnpm dev:react` or `pnpm dev:next` to run the examples.

## What to do next?
Expand Down
11 changes: 8 additions & 3 deletions examples/next/turbo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"extends": ["//"],
"pipeline": {
"extends": [
"//"
],
"tasks": {
"build": {
"outputs": [".next/**", "!.next/cache/**"]
"outputs": [
".next/**",
"!.next/cache/**"
]
}
}
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"build": "turbo run build --filter={packages/*}",
"build:clean": "turbo run build:clean",
"dev": "turbo run dev --filter={packages/*}",
"reinstall": "rimraf -g ./**/node_modules && pnpm install",
"test": "turbo run test",
"lint": "eslint -c .eslintrc.js 'packages/**/src/**/*.{ts,tsx}'",
Expand Down Expand Up @@ -45,9 +46,10 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "^5.0.7",
"turbo": "1.13.3",
"turbo": "2.0.1",
"typescript": "~5.4.5",
"wagmi": "^2.9.5"
},
"resolutions": {}
"resolutions": {},
"packageManager": "[email protected]"
}
1 change: 1 addition & 0 deletions packages/checkout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --declarationMap --emitDeclarationOnly --declarationDir dist/types/",
"build:clean": "rimraf -g ./dist",
"dev": "tsc --watch --module es2022 --declaration --declarationMap --outDir dist/esm/ --declarationDir dist/types/",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand Down
1 change: 1 addition & 0 deletions packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --declarationMap --emitDeclarationOnly --declarationDir dist/types/",
"build:clean": "rimraf -g ./dist",
"dev": "tsc --watch --module es2022 --declaration --declarationMap --outDir dist/esm/ --declarationDir dist/types/",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand Down
1 change: 1 addition & 0 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --declarationMap --emitDeclarationOnly --declarationDir dist/types/",
"build:clean": "rimraf -g ./dist",
"dev": "tsc --watch --module es2022 --declaration --declarationMap --outDir dist/esm/ --declarationDir dist/types/",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand Down
1 change: 1 addition & 0 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"build:esm": "tsc --module es2022 --outDir dist/esm/",
"build:types": "tsc --declaration --declarationMap --emitDeclarationOnly --declarationDir dist/types/",
"build:clean": "rimraf -g ./dist",
"dev": "tsc --watch --module es2022 --declaration --declarationMap --outDir dist/esm/ --declarationDir dist/types/",
"test": "echo",
"typecheck": "tsc --noEmit"
},
Expand Down
58 changes: 29 additions & 29 deletions pnpm-lock.yaml

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

15 changes: 10 additions & 5 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"$schema": "https://turbo.build/schema.json",
"experimentalUI": true,
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"build:clean": {},
"test": {
"dependsOn": ["build"]
"dependsOn": [
"build"
]
},
"lint": {},
"dev": {
Expand Down

0 comments on commit 5efa217

Please sign in to comment.