642f4f08eb
1、为环境变量 process.env 增加 TypeScript 类型检测与感知 2、增加 dotenv & @types/node 处理支持 .env文件环境变量导入机制
55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"name": "survey-template",
|
|
"version": "1.0.0",
|
|
"description": "survey server template",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"copy": "mkdir -p ./build/ && cp -rf ./src/* ./build/",
|
|
"build": "tsc",
|
|
"start:stable": "SERVER_ENV=stable node ./build/index.js",
|
|
"start:preonline": "SERVER_ENV=preonline node ./build/index.js",
|
|
"start:online": "SERVER_ENV=online node ./build/index.js",
|
|
"start": "npm run start:online",
|
|
"local": "npx ts-node scripts/run-local.ts",
|
|
"dev": "npx ts-node-dev ./src/index.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/crypto-js": "^4.2.1",
|
|
"@types/koa": "^2.13.8",
|
|
"@types/koa-bodyparser": "^4.3.10",
|
|
"@types/koa-router": "^7.4.4",
|
|
"@types/koa-static": "^4.0.4",
|
|
"@types/node": "^20.10.8",
|
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
"@typescript-eslint/parser": "^6.15.0",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.56.0",
|
|
"mongodb-memory-server": "^9.0.1",
|
|
"nodemon": "^2.0.20",
|
|
"ts-node": "^10.9.2",
|
|
"ts-node-dev": "^2.0.0",
|
|
"typescript": "^4.8.4"
|
|
},
|
|
"dependencies": {
|
|
"cheerio": "^1.0.0-rc.12",
|
|
"crypto-js": "^4.2.0",
|
|
"dotenv": "^16.3.1",
|
|
"glob": "^10.3.10",
|
|
"joi": "^17.9.2",
|
|
"jsonwebtoken": "^9.0.1",
|
|
"koa": "^2.14.2",
|
|
"koa-bodyparser": "^4.4.1",
|
|
"koa-pino-logger": "^4.0.0",
|
|
"koa-router": "^12.0.0",
|
|
"koa-static": "^4.0.3",
|
|
"lodash": "^4.17.21",
|
|
"moment": "^2.29.4",
|
|
"mongodb": "^5.7.0",
|
|
"svg-captcha": "^1.4.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=14.21.0",
|
|
"npm": ">=6.14.17"
|
|
}
|
|
}
|