Skip to content

Commit a8aa469

Browse files
committed
feat: Add turborepo setup
1 parent 9058273 commit a8aa469

File tree

7 files changed

+526
-16
lines changed

7 files changed

+526
-16
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
.next
3-
.pnpm-debug.log
3+
.pnpm-debug.log
4+
.turbo

examples/react/.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "next/core-web-vitals",
3+
"rules": {
4+
"@next/next/no-img-element": "off"
5+
}
6+
}

examples/react/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "@maggo/use-flow-react-example",
23
"private": true,
34
"scripts": {
45
"dev": "next dev",
@@ -17,6 +18,8 @@
1718
"@types/node": "18.11.18",
1819
"@types/react": "^18.0.26",
1920
"@types/react-dom": "^18.0.10",
21+
"encoding": "^0.1.13",
22+
"eslint-config-next": "13.1.1",
2023
"typescript": "4.9.4"
2124
}
2225
}

examples/react/pages/use-authentication.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Login() {
4343

4444
return (
4545
<>
46-
<p>You're not logged in.</p>
46+
<p>You&apos;re not logged in.</p>
4747
<button disabled={isLoggingIn} onClick={() => login()}>
4848
{isLoggingIn ? "Logging in…" : "Login"}
4949
</button>

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@
77
"examples/*"
88
],
99
"scripts": {
10-
"dev": "pnpm --parallel dev"
10+
"build": "turbo run build",
11+
"lint": "turbo run lint",
12+
"dev": "turbo run dev"
1113
},
1214
"engines": {
1315
"node": ">=16",
1416
"pnpm": ">=7"
1517
},
1618
"volta": {
1719
"node": "16.15.1"
20+
},
21+
"devDependencies": {
22+
"turbo": "^1.6.3"
1823
}
1924
}

0 commit comments

Comments
 (0)