conf cleanup

This commit is contained in:
Dobromir Popov
2024-02-27 15:57:48 +02:00
parent 6dbf73d57a
commit cf72644141
2 changed files with 6 additions and 34 deletions

37
.vscode/launch.json vendored
View File

@ -4,63 +4,38 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Chrome Debug",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3003",
"webRoot": "${workspaceFolder}/src",
"runtimeExecutable": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe",
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/*"
}
},
{
"name": "Run npm nodemon (DEV)",
"command": "npm run debug-env", // > _logs/debug.log
"command": "npm run debug-env",
"request": "launch",
"type": "node-terminal",
"preLaunchTask": "killInspector", // <-- Add this line
"preLaunchTask": "killInspector",
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Run npm node (PROD)",
"command": "npm run prod", // > _logs/debug.log
"command": "npm run prod",
"request": "launch",
"type": "node-terminal",
"preLaunchTask": "killInspector", // <-- Add this line
"preLaunchTask": "killInspector",
"env": {
"NODE_ENV": "production"
}
},
{
// "type": "pwa-node",
// "request": "launch",
// "name": "Next: Node",
// "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/next",
"name": "next dev",
"command": "npm run devNext",
"request": "launch",
"type": "node-terminal"
},
{
// "type": "pwa-node",
// "request": "launch",
// "name": "Next: Node",
// "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/next",
"name": "Run npm next start",
"command": "npm run start",
"request": "launch",
"type": "node-terminal"
},
{
"name": "Run conda npm debug",
"name": "Run conda nodemon (DEV)",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}",
"command": "conda activate node && npm run debug",
"command": "conda activate node && npm run debug-env",
},
{
"name": "Run conda npm TEST",

View File

@ -14,10 +14,7 @@
"build": "next build",
"buildWin": "npm run build",
"start": "next start",
"dev": "dotenv -e .env -- nodemon --inspect server.js",
"devNext": "next dev --port 3003 --experimental-https",
"devNextEnv": "dotenv -e .env.$NODE_ENV -- next dev --experimental-https",
"run-commented": "dotenv -e .env.$NODE_ENV -- next dev --port ${NEXT_PUBLIC_PORT:-3003}",
"test": "dotenv -e .env.$NODE_ENV -- nodemon --inspect server.js",
"nodeenv": "dotenv -e .env.$NODE_ENV -- node server.js",
"prod": "npx next build && dotenv -e .env.production -- node server.js"