Skip to content

Commit 1f01dd2

Browse files
committed
chore: update example.
1 parent dabf155 commit 1f01dd2

14 files changed

Lines changed: 79 additions & 355 deletions

example/nextjs/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

example/nextjs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
.yarn/install-state.gz
78

89
# testing
910
/coverage

example/nextjs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ npm run dev
1010
yarn dev
1111
# or
1212
pnpm dev
13+
# or
14+
bun dev
1315
```
1416

1517
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

example/nextjs/app/globals.css

Lines changed: 0 additions & 107 deletions
This file was deleted.

example/nextjs/app/page.module.css

Lines changed: 0 additions & 229 deletions
This file was deleted.

example/nextjs/next.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
3-
experimental: {
4-
esmExternals: 'loose',
5-
},
6-
};
2+
const nextConfig = {};
73

84
module.exports = nextConfig;

example/nextjs/package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@types/node": "^20.4.5",
13-
"@types/react": "~18.2.0",
14-
"@types/react-dom": "~18.2.0",
12+
"react": "^18",
13+
"react-dom": "^18",
14+
"next": "14.0.4"
15+
},
16+
"devDependencies": {
17+
"typescript": "^5",
18+
"@types/node": "^20",
19+
"@types/react": "^18",
20+
"@types/react-dom": "^18",
1521
"@uiw/react-md-editor": "4.0.1",
16-
"next": "~13.4.12",
17-
"react": "~18.2.0",
18-
"react-dom": "~18.2.0",
19-
"typescript": "^5.1.6"
22+
"autoprefixer": "^10.0.1",
23+
"postcss": "^8",
24+
"tailwindcss": "^3.3.0",
25+
"eslint": "^8",
26+
"eslint-config-next": "14.0.4"
2027
}
2128
}

0 commit comments

Comments
 (0)