Introduce a new logger (modules/logger.js) that prints colorized console output, writes timestamped logs to a file in a logs/ directory, strips ANSI colors for file output, and handles process exit/SIGINT cleanup. Add service stubs (services/security.js, services/storage.js, services/smtp/actions.js, services/smtp/authenticate.js) and a test.js. Add package.json and package-lock.json with runtime deps (colors, dotenv, zod) and dev tooling (eslint, nodemon) to support the new code.
32 lines
768 B
JSON
32 lines
768 B
JSON
{
|
|
"name": "jawab",
|
|
"version": "0.0.1-alpha",
|
|
"description": "My own mail-server",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.azures.fr/azures04/Jawab"
|
|
},
|
|
"license": "AGPL-3.0-only",
|
|
"author": {
|
|
"email": "gilleslazure04@gmail.com",
|
|
"name": "azures04",
|
|
"url": "https://jawab.azures.fr"
|
|
},
|
|
"type": "commonjs",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"dependencies": {
|
|
"colors": "^1.4.0",
|
|
"dotenv": "^17.3.1",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.3",
|
|
"eslint": "^9.39.3",
|
|
"globals": "^17.4.0",
|
|
"nodemon": "^3.1.14"
|
|
}
|
|
}
|