30 lines
956 B
JSON
Raw Normal View History

2021-06-26 23:41:37 +08:00
{
"name": "code-backend",
"version": "0.1.0",
"main": "index.js",
"private": true,
"scripts": {
"watch:proto": "onchange \"src/shared/protocols/**/Ptl*.ts\" -- npm run protoAndSync",
"protoAndSync": "npm run proto && npm run sync",
"proto": "tsrpc proto -i src/shared/protocols -o src/shared/protocols/serviceProto.ts",
"sync": "tsrpc sync --from src/shared --to ../frontend/src/shared",
"api": "tsrpc api -i src/shared/protocols/serviceProto.ts -o src/api",
"dev": "onchange \"src/**/*.ts\" -i -k -- ts-node \"src/index.ts\"",
"test": "mocha test/**/*.test.ts",
"build": "tsrpc build"
},
"devDependencies": {
"@types/mocha": "^8.2.2",
"@types/mongodb": "^3.6.18",
"@types/node": "^15.12.4",
"mocha": "^9.0.1",
"onchange": "^7.1.0",
"ts-node": "^10.0.0",
"tsrpc-cli": "^2.0.3",
"typescript": "^4.3.4"
},
"dependencies": {
"mongodb": "^3.6.9",
"tsrpc": "^3.0.2"
}
}