Skip to content

Commit

Permalink
chore: update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 24, 2023
1 parent dabf155 commit 1f01dd2
Show file tree
Hide file tree
Showing 14 changed files with 79 additions and 355 deletions.
3 changes: 3 additions & 0 deletions example/nextjs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
1 change: 1 addition & 0 deletions example/nextjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage
Expand Down
2 changes: 2 additions & 0 deletions example/nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ npm run dev
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Expand Down
107 changes: 0 additions & 107 deletions example/nextjs/app/globals.css

This file was deleted.

229 changes: 0 additions & 229 deletions example/nextjs/app/page.module.css

This file was deleted.

6 changes: 1 addition & 5 deletions example/nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
esmExternals: 'loose',
},
};
const nextConfig = {};

module.exports = nextConfig;
21 changes: 14 additions & 7 deletions example/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@
"lint": "next lint"
},
"dependencies": {
"@types/node": "^20.4.5",
"@types/react": "~18.2.0",
"@types/react-dom": "~18.2.0",
"react": "^18",
"react-dom": "^18",
"next": "14.0.4"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@uiw/react-md-editor": "4.0.1",
"next": "~13.4.12",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"typescript": "^5.1.6"
"autoprefixer": "^10.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"eslint": "^8",
"eslint-config-next": "14.0.4"
}
}
Loading

1 comment on commit 1f01dd2

@vercel
Copy link

@vercel vercel bot commented on 1f01dd2 Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.