35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
{
|
|
"name": "survey-template",
|
|
"version": "1.0.0",
|
|
"description": "survey server template",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"copy": "cp -rf ./src/ ./build/",
|
|
"build": "tsc",
|
|
"launch": "npm run build && SERVER_ENV=local node ./build/index.js",
|
|
"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 copy && npm run launch",
|
|
"dev": "npm run copy && nodemon -e js,mjs,json,ts --exec 'npm run launch' --watch ./src"
|
|
},
|
|
"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",
|
|
"koa": "^2.14.2",
|
|
"koa-bodyparser": "^4.4.1",
|
|
"koa-pino-logger": "^4.0.0",
|
|
"koa-router": "^12.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=14.15.4",
|
|
"npm": ">=6.14.10"
|
|
}
|
|
}
|