From c0f9e87f7eafc3f1ffee4cff85f2da36b2198f1e Mon Sep 17 00:00:00 2001 From: "Bitdori (Admin)" Date: Tue, 28 Jul 2026 16:52:33 +0900 Subject: [PATCH] next start --port 7007 --- .editorconfig | 13 ++++++ .mcp.json | 33 +++++++++++++++ .node-version | 1 + .prettierignore | 3 ++ .prettierrc | 7 ++++ .vscode/launch.json | 65 +++++++++++++++++++++++++++++ mcpServers/chrome-devtools-mcp.yaml | 12 ++++++ mcpServers/playwright-mcp.yaml | 8 ++++ package.json | 8 ++-- pnpm-lock.yaml | 3 ++ tsconfig.json | 18 +++++--- 11 files changed, 163 insertions(+), 8 deletions(-) create mode 100755 .editorconfig create mode 100755 .mcp.json create mode 100644 .node-version create mode 100755 .prettierignore create mode 100755 .prettierrc create mode 100755 .vscode/launch.json create mode 100755 mcpServers/chrome-devtools-mcp.yaml create mode 100755 mcpServers/playwright-mcp.yaml diff --git a/.editorconfig b/.editorconfig new file mode 100755 index 0000000..b425a75 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# https://prettier.io/docs/configuration#editorconfig + +[*] +# Non-configurable Prettier behaviors +charset = utf-8 +insert_final_newline = true +# Caveat: Prettier won’t trim trailing whitespace inside template strings, but your editor might. +# trim_trailing_whitespace = true + +# Configurable Prettier behaviors +# (change these if your Prettier config differs) +indent_style = space +indent_size = 2 diff --git a/.mcp.json b/.mcp.json new file mode 100755 index 0000000..707a960 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,33 @@ +{ + "mcpServers": { + "next-devtools": { + "command": "pnpx", + "args": [ + "-y", + "next-devtools-mcp@latest" + ], + "env": { + "NEXT_TELEMETRY_DISABLED": "1" + } + }, + "chrome-devtools": { + "command": "pnpx", + "args": [ + "-y", + "chrome-devtools-mcp@latest", + "--no-usage-statistics" + ], + "env": { + "CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS": "1" + } + }, + "playwright": { + "command": "pnpx", + "args": [ + "-y", + "@playwright/mcp@latest" + ], + "url": "http://localhost:8931/mcp" + } + } +} \ No newline at end of file diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +24 diff --git a/.prettierignore b/.prettierignore new file mode 100755 index 0000000..d606dbc --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +# Ignore artifacts: +build +coverage diff --git a/.prettierrc b/.prettierrc new file mode 100755 index 0000000..45e46e0 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": true, + "singleQuote": true, + "printWidth": 96 +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100755 index 0000000..c1d30ca --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,65 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "attach", + "name": "Attach to chrome", + "port": 9222 + }, + { + "name": "node", + "type": "node", + "request": "attach", + "port": 9229, + "address": "localhost", + "localRoot": "${workspaceFolder}", + "remoteRoot": "/app", + "protocol": "inspector", + "restart": true, + "sourceMaps": true, + "skipFiles": ["/**"] + }, + + { + "name": "Next.js: debug server-side", + "type": "node-terminal", + "request": "launch", + "command": "npm run dev -- --inspect" + }, + { + "name": "Next.js: debug client-side", + "type": "chrome", + "request": "launch", + "url": "http://localhost:3000" + }, + { + "name": "Next.js: debug client-side (Firefox)", + "type": "firefox", + "request": "launch", + "url": "http://localhost:3000", + "reAttach": true, + "pathMappings": [ + { + "url": "webpack://_N_E", + "path": "${workspaceFolder}" + } + ] + }, + { + "name": "Next.js: debug full stack", + "type": "node", + "request": "launch", + "program": "${workspaceFolder}/node_modules/next/dist/bin/next", + "runtimeArgs": ["--inspect"], + "skipFiles": ["/**"], + "serverReadyAction": { + "action": "debugWithEdge", + "killOnServerStop": true, + "pattern": "- Local:.+(https?://.+)", + "uriFormat": "%s", + "webRoot": "${workspaceFolder}" + } + } + ] +} diff --git a/mcpServers/chrome-devtools-mcp.yaml b/mcpServers/chrome-devtools-mcp.yaml new file mode 100755 index 0000000..176fa20 --- /dev/null +++ b/mcpServers/chrome-devtools-mcp.yaml @@ -0,0 +1,12 @@ +name: Chrome DevTools MCP +version: 0.0.1 +schema: v1 +mcpServers: + - name: "Chrome DevTools (MCP) " + command: npx + args: + - -y + - chrome-devtools-mcp@latest + - --no-usage-statistics + env: + CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS: "1" diff --git a/mcpServers/playwright-mcp.yaml b/mcpServers/playwright-mcp.yaml new file mode 100755 index 0000000..2f2e35e --- /dev/null +++ b/mcpServers/playwright-mcp.yaml @@ -0,0 +1,8 @@ +name: Playwright mcpServer +version: 0.0.1 +schema: v1 +mcpServers: + - name: Browser search + command: npx + args: + - "@playwright/mcp@latest" \ No newline at end of file diff --git a/package.json b/package.json index 5afc730..2c57692 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,10 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "check": "pnpm i && pnpx next telemetry disable && pnpm i baseline-browser-mapping@latest -D && pnpx browserslist && git remote -v && git branch && node --version && pnpx npm-check-updates", + "dev": "pnpm run check && next dev", "build": "next build", - "start": "next start", + "start": "pnpm run check && next build && next start --port 7007", "lint": "eslint" }, "dependencies": { @@ -18,9 +19,10 @@ "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", + "baseline-browser-mapping": "^2.11.4", "eslint": "^9", "eslint-config-next": "16.2.12", "tailwindcss": "^4", "typescript": "^5" } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c24d5e5..93d303f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: '@types/react-dom': specifier: ^19 version: 19.2.3(@types/react@19.2.17) + baseline-browser-mapping: + specifier: ^2.11.4 + version: 2.11.4 eslint: specifier: ^9 version: 9.39.5(jiti@2.7.0)(supports-color@7.2.0) diff --git a/tsconfig.json b/tsconfig.json index 3a13f90..5c1a59b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { - "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], + "target": "esnext", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -19,7 +23,9 @@ } ], "paths": { - "@/*": ["./*"] + "@/*": [ + "./*" + ] } }, "include": [ @@ -30,5 +36,7 @@ ".next/dev/types/**/*.ts", "**/*.mts" ], - "exclude": ["node_modules"] -} + "exclude": [ + "node_modules" + ] +} \ No newline at end of file