Skip to content

Commit

Permalink
Update next example
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed Dec 17, 2024
1 parent 48d6bf8 commit a1ccf19
Show file tree
Hide file tree
Showing 6 changed files with 482 additions and 128 deletions.
13 changes: 9 additions & 4 deletions examples/next/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage
Expand All @@ -24,9 +28,10 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel
Expand Down
8 changes: 0 additions & 8 deletions examples/next/next.config.js

This file was deleted.

9 changes: 9 additions & 0 deletions examples/next/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
experimental: {
optimizePackageImports: ['iconoir-react'],
},
};

export default nextConfig;
20 changes: 10 additions & 10 deletions examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"name": "example-next",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"start": "next start"
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "14.2.10",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"next": "15.1.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/node": "^20.10.4",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
"iconoir-react": "workspace:*",
"typescript": "^5.3.3"
"typescript": "^5"
}
}
2 changes: 1 addition & 1 deletion examples/next/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"incremental": true,
"target": "es5",
"target": "ES2017",
"jsx": "preserve",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
Expand Down
Loading

0 comments on commit a1ccf19

Please sign in to comment.