Initialize Next.js project with Ant Design and other dependencies

This commit is contained in:
CPTProgrammer 2026-07-06 07:47:01 +08:00
parent 36f809f676
commit 73ab46cff4
No known key found for this signature in database
6 changed files with 7602 additions and 1 deletions

43
.gitignore vendored
View File

@ -1,4 +1,45 @@
node_modules/
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# env files (can opt-in for committing if needed)
.env*
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
# project secrets and configs
secrets.json
configs/

7480
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

24
package.json Normal file
View File

@ -0,0 +1,24 @@
{
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint",
"lint:fix": "eslint --fix"
},
"dependencies": {
"@ant-design/icons": "^6.3.2",
"@uiw/react-md-editor": "^4.1.1",
"antd": "^6.5.0",
"next": "^16.2.10",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"use-debounce": "^10.1.1",
"zod": "^4.4.3"
},
"devDependencies": {
"@types/node": "26.1.0",
"eslint": "^10.6.0",
"typescript": "6.0.3"
}
}

11
src/app/layout.tsx Normal file
View File

@ -0,0 +1,11 @@
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
}

3
src/app/page.tsx Normal file
View File

@ -0,0 +1,3 @@
export default function Page() {
return <h1>Hello, Next.js!</h1>
}

42
tsconfig.json Normal file
View File

@ -0,0 +1,42 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"ignoreDeprecations": "6.0",
"baseUrl": "src/",
"paths": {
"@/*": ["./*"]
},
"noEmit": true,
"incremental": true,
"module": "esnext",
"esModuleInterop": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
]
},
"include": [
"next-env.d.ts",
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
"**/*.mts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}