feat(chapter3): replicate styled Next.js app setup
Add the App Router page group, nested layouts, Tailwind and shadcn styling, shared header components, local fonts and backgrounds, Ant Design demo support, and compatible lint scripts and dependencies.
This commit is contained in:
+22
-7
@@ -3,20 +3,32 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"dev": "rimraf .next && next dev --turbopack",
|
||||
"build": "rimraf .next && next build",
|
||||
"start": "next start",
|
||||
"lint": "eslint"
|
||||
"lint": "pnpm lint:es && pnpm lint:style",
|
||||
"lint:es": "eslint . --fix",
|
||||
"lint:style": "stylelint \"**/*.css\" --fix --cache --cache-location node_modules/.cache/stylelint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/v5-patch-for-react-19": "^1.0.3",
|
||||
"@ant-design/cssinjs": "^2.1.2",
|
||||
"@ant-design/nextjs-registry": "^1.3.0",
|
||||
"antd": "^6.6.2",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"immer": "^11.1.18",
|
||||
"lucide-react": "^1.37.0",
|
||||
"lodash": "^4.18.1",
|
||||
"next": "16.3.3",
|
||||
"radix-ui": "^1.6.7",
|
||||
"react": "19.2.8",
|
||||
"react-dom": "19.2.8"
|
||||
"react-dom": "19.2.8",
|
||||
"shadcn": "^4.19.0",
|
||||
"tailwind-merge": "^3.6.0",
|
||||
"tw-animate-css": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^9.3.0",
|
||||
"@eslint-react/eslint-plugin": "^5.18.6",
|
||||
"@eslint/eslintrc": "^3.3.6",
|
||||
"@next/eslint-plugin-next": "^16.3.3",
|
||||
@@ -26,7 +38,7 @@
|
||||
"@types/react": "^19",
|
||||
"@types/react-dom": "^19",
|
||||
"babel-plugin-react-compiler": "1.0.0",
|
||||
"eslint": "^9",
|
||||
"eslint": "^9.39.5",
|
||||
"eslint-config-next": "16.3.3",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
@@ -46,5 +58,8 @@
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"packageManager": "pnpm@10.34.5"
|
||||
"packageManager": "pnpm@10.34.5",
|
||||
"imports": {
|
||||
"#tailwind.css": "./src/app/styles/tailwind.css"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user