feat: 添加日志输出

This commit is contained in:
imsyy
2023-12-06 09:25:26 +08:00
parent aab54d2190
commit 68edae7e74
4 changed files with 645 additions and 1224 deletions

View File

@@ -8,8 +8,7 @@
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"start": "node index.js",
"dev": "npx nodemon index.js",
"prd": "pm2 start index.js",
"build": "node index.js"
"prd": "pm2 start index.js"
},
"author": "imsyy",
"license": "MIT",
@@ -17,6 +16,8 @@
"axios": "^1.3.4",
"cheerio": "1.0.0-rc.12",
"dotenv": "^16.0.3",
"eslint": "^8.48.0",
"eslint-plugin-vue": "^9.17.0",
"koa": "^2.14.1",
"koa-bodyparser": "^4.3.0",
"koa-router": "^12.0.0",
@@ -25,8 +26,7 @@
"koa2-cors": "^2.0.6",
"node-cache": "^5.1.2",
"nodemon": "^2.0.22",
"eslint": "^8.48.0",
"eslint-plugin-vue": "^9.17.0",
"prettier": "^3.0.2"
"prettier": "^3.0.2",
"winston": "^3.11.0"
}
}