2023-11-02 12:12:37 +00:00
|
|
|
{
|
|
|
|
"name": "survey-template",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"description": "survey server template",
|
|
|
|
"main": "index.js",
|
|
|
|
"scripts": {
|
2023-11-16 13:42:27 +00:00
|
|
|
"copy": "mkdir -p ./build/ && cp -rf ./src/* ./build/",
|
2023-11-02 12:12:37 +00:00
|
|
|
"build": "tsc",
|
2023-11-13 20:21:18 +00:00
|
|
|
"launch:local": "npm run build && SERVER_ENV=local node ./build/index.js",
|
|
|
|
"launch:dev": "npm run build && SERVER_ENV=dev node ./build/index.js",
|
|
|
|
"start:stable": "npm run copy && npm run build && SERVER_ENV=stable node ./build/index.js",
|
|
|
|
"start:preonline": "npm run copy && npm run build && SERVER_ENV=preonline node ./build/index.js",
|
|
|
|
"start:online": "npm run copy && npm run build && SERVER_ENV=online node ./build/index.js",
|
|
|
|
"start": "npm run start:online",
|
|
|
|
"local": "npm run copy && nodemon -e js,mjs,json,ts --exec 'npm run launch:local' --watch ./src",
|
|
|
|
"dev": "npm run copy && nodemon -e js,mjs,json,ts --exec 'npm run launch:dev' --watch ./src"
|
2023-11-02 12:12:37 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"nodemon": "^2.0.20",
|
|
|
|
"typescript": "^4.8.4"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@types/koa": "^2.13.8",
|
|
|
|
"@types/koa-bodyparser": "^4.3.10",
|
|
|
|
"@types/koa-router": "^7.4.4",
|
2023-11-13 20:21:18 +00:00
|
|
|
"joi": "^17.9.2",
|
|
|
|
"jsonwebtoken": "^9.0.1",
|
2023-11-02 12:12:37 +00:00
|
|
|
"koa": "^2.14.2",
|
|
|
|
"koa-bodyparser": "^4.4.1",
|
|
|
|
"koa-pino-logger": "^4.0.0",
|
2023-11-13 20:21:18 +00:00
|
|
|
"koa-router": "^12.0.0",
|
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"moment": "^2.29.4",
|
|
|
|
"mongodb": "^5.7.0",
|
|
|
|
"mongodb-memory-server": "^9.0.1"
|
2023-11-02 12:12:37 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2023-11-13 20:21:18 +00:00
|
|
|
"node": ">=14.21.0",
|
|
|
|
"npm": ">=6.14.17"
|
2023-11-02 12:12:37 +00:00
|
|
|
}
|
|
|
|
}
|