Skip to content

Commit 5772bf1

Browse files
committed
feat: downgrade to next 14 and setup nextra
1 parent c5570d9 commit 5772bf1

File tree

13 files changed

+4017
-445
lines changed

13 files changed

+4017
-445
lines changed

.eslintrc.json

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

components.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/styles/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}

next.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('next').NextConfig} */
2+
import nextra from 'nextra'
3+
4+
const withNextra = nextra({
5+
theme: 'nextra-theme-docs',
6+
themeConfig: './theme.config.tsx'
7+
})
8+
9+
const nextConfig = {}
10+
11+
export default withNextra(nextConfig)

next.config.ts

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

package.json

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,60 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev --turbo",
6+
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"react": "19.0.0-rc-65a56d0e-20241020",
13-
"react-dom": "19.0.0-rc-65a56d0e-20241020",
14-
"next": "15.0.0"
12+
"@radix-ui/react-icons": "^1.3.0",
13+
"class-variance-authority": "^0.7.0",
14+
"clsx": "^2.1.1",
15+
"lucide-react": "^0.453.0",
16+
"next": "14.2.3",
17+
"nextra": "^3.1.0",
18+
"nextra-theme-docs": "^3.1.0",
19+
"react": "^18",
20+
"react-dom": "^18",
21+
"tailwind-merge": "^2.5.4",
22+
"tailwindcss-animate": "^1.0.7"
1523
},
1624
"devDependencies": {
17-
"typescript": "^5",
1825
"@types/node": "^20",
1926
"@types/react": "^18",
2027
"@types/react-dom": "^18",
28+
"eslint": "^8",
29+
"eslint-config-next": "15.0.0",
2130
"postcss": "^8",
2231
"tailwindcss": "^3.4.1",
23-
"eslint": "^8",
24-
"eslint-config-next": "15.0.0"
32+
"typescript": "^5"
33+
},
34+
"prettier": {
35+
"trailingComma": "none",
36+
"arrowParens": "always",
37+
"singleQuote": true,
38+
"jsxSingleQuote": true,
39+
"printWidth": 100,
40+
"useTabs": false,
41+
"semi": false,
42+
"quoteProps": "consistent",
43+
"bracketSpacing": true,
44+
"overrides": [
45+
{
46+
"files": [
47+
"**/*.css",
48+
"**/*.scss"
49+
],
50+
"options": {
51+
"singleQuote": false
52+
}
53+
}
54+
]
55+
},
56+
"eslintConfig": {
57+
"extends": [
58+
"next/core-web-vitals",
59+
"next/typescript"
60+
]
2561
}
2662
}

0 commit comments

Comments
 (0)