chore: configure project with src/ directory structure and tooling

- Move app files into src/ directory following Next.js convention
- Add baseUrl: src/ to tsconfig.json for path resolution
- Add .vscode/launch.json with debug configs for dev/build/start/lint
- Add lint:fix npm script to package.json
This commit is contained in:
2026-06-08 11:04:42 +08:00
parent 6e15715e67
commit 14d6e7c41e
8 changed files with 53 additions and 1 deletions
+50
View File
@@ -0,0 +1,50 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: dev",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "dev"],
"console": "integratedTerminal"
},
{
"name": "Next.js: build",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "build"],
"console": "integratedTerminal"
},
{
"name": "Next.js: start",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "start"],
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "openExternally"
}
},
{
"name": "Next.js: lint",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "lint"],
"console": "integratedTerminal"
},
{
"name": "Next.js: lint:fix",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "lint:fix"],
"console": "integratedTerminal"
}
]
}