From 46f818c02720bb991ef4952464c5a9f22a6d8240 Mon Sep 17 00:00:00 2001 From: Ken Yasue Date: Tue, 1 Apr 2025 17:56:49 +0200 Subject: [PATCH] add nextjs to launch.json --- .vscode/launch.json | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 16e8f4e..5c2d66f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,24 @@ { "version": "0.2.0", "configurations": [ + { + "name": "Next.js: Start Development Server", + "type": "node", + "request": "launch", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run", + "dev" + ], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "skipFiles": [ + "/**" + ], + "env": { + "NODE_ENV": "development" + } + }, { "name": "Debug Send Emails (No Previous Emails)", "type": "node", @@ -110,6 +128,40 @@ "outFiles": [ "${workspaceFolder}/**/*.js" ] + }, + { + "name": "Import Customers from CSV", + "type": "node", + "request": "launch", + "runtimeExecutable": "node", + "runtimeArgs": [ + "--require", + "ts-node/register" + ], + "args": [ + "${workspaceFolder}/src/scripts/import-customers.ts", + "${input:csvFilePath}" + ], + "cwd": "${workspaceFolder}", + "internalConsoleOptions": "openOnSessionStart", + "skipFiles": [ + "/**" + ], + "env": { + "TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.scripts.json", + "NODE_ENV": "development" + }, + "outFiles": [ + "${workspaceFolder}/**/*.js" + ] + } + ], + "inputs": [ + { + "id": "csvFilePath", + "type": "promptString", + "description": "Path to the CSV file to import", + "default": "./data/customers.csv" } ] } \ No newline at end of file