chore: add development configuration files
Add .env with default development settings and .vscode debug configurations for easier local development. - .env: Development environment variables (PORT, DEBUG, PULL_INTERVAL) - .vscode/launch.json: Debug configurations for server and Jest tests - .vscode/settings.json: Jest integration settings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
9
email-server-worker/.env
Normal file
9
email-server-worker/.env
Normal file
@@ -0,0 +1,9 @@
|
||||
DEBUG=server:server
|
||||
|
||||
ENV=dev
|
||||
|
||||
# podešen port koji se neće kršiti sa web5-main
|
||||
PORT="3001"
|
||||
|
||||
# run job every 60 seconds
|
||||
PULL_INTERVAL=60000
|
||||
58
email-server-worker/.vscode/launch.json
vendored
Normal file
58
email-server-worker/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug Server",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"runtimeExecutable": "npm",
|
||||
"runtimeArgs": [
|
||||
"run-script",
|
||||
"start"
|
||||
],
|
||||
"sourceMaps": true,
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"name": "vscode-jest-tests",
|
||||
"request": "launch",
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"console": "integratedTerminal",
|
||||
"internalConsoleOptions": "neverOpen",
|
||||
"cwd": "${workspaceFolder}",
|
||||
"runtimeExecutable": "npm",
|
||||
"args": [
|
||||
"run",
|
||||
"test",
|
||||
"--",
|
||||
"--runInBand",
|
||||
"--watchAll=false"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"name": "vscode-jest-tests-1634200842588",
|
||||
"request": "launch",
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"console": "integratedTerminal",
|
||||
"internalConsoleOptions": "neverOpen",
|
||||
"cwd": "${workspaceFolder}",
|
||||
"runtimeExecutable": "npm",
|
||||
"args": [
|
||||
"run",
|
||||
"test",
|
||||
"--",
|
||||
"--runInBand",
|
||||
"--watchAll=false"
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
}
|
||||
10
email-server-worker/.vscode/settings.json
vendored
Normal file
10
email-server-worker/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"jest.jestCommandLine": "npm run test --",
|
||||
"jest.autoRun": {
|
||||
"watch": false,
|
||||
"onSave": "test-file"
|
||||
},
|
||||
"jest.nodeEnv": {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user