-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update with-react-native-web with App Router. (#4847)
- Loading branch information
1 parent
9cb5abc
commit 915523c
Showing
10 changed files
with
1,048 additions
and
1,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
</html> | ||
); | ||
} |
2 changes: 2 additions & 0 deletions
2
...react-native-web/apps/web/pages/index.tsx → ...th-react-native-web/apps/web/app/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"use client"; | ||
|
||
import { Button } from "ui"; | ||
|
||
import styles from "../styles/index.module.css"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"extends": "tsconfig/nextjs.json", | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"plugins": [{ "name": "next" }] | ||
}, | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ | |
"packages/*" | ||
], | ||
"scripts": { | ||
"dev": "turbo run dev", | ||
"build": "turbo run build", | ||
"clean": "turbo run clean && rm -rf node_modules", | ||
"dev": "turbo dev", | ||
"build": "turbo build", | ||
"clean": "turbo clean && rm -rf node_modules", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\" --ignore-path .gitignore" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^2.7.1", | ||
"turbo": "latest" | ||
"turbo": "^1.9.3" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { defineConfig, Options } from "tsup"; | ||
|
||
export default defineConfig((options: Options) => ({ | ||
entry: { | ||
index: "src/index.tsx", | ||
}, | ||
banner: { | ||
js: "'use client'", | ||
}, | ||
clean: true, | ||
format: ["cjs", "esm"], | ||
external: ["react"], | ||
dts: true, | ||
...options, | ||
})); |
Oops, something went wrong.
915523c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
examples-native-web – ./examples/with-react-native-web/apps/web
examples-native-web.vercel.sh
examples-native-web-git-main.vercel.sh