2022-02-20 19:51:55 +08:00
|
|
|
{
|
|
|
|
"name": "@think/server",
|
|
|
|
"version": "0.0.1",
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
|
|
|
"prebuild": "rimraf dist",
|
|
|
|
"build": "nest build",
|
|
|
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
|
|
"dev": "nest start --watch",
|
|
|
|
"debug": "nest start --debug --watch",
|
|
|
|
"start": "cross-env NODE_ENV=production node dist/main",
|
2022-03-26 23:26:48 +08:00
|
|
|
"pm2": "pm2 start -i max npm --name @think/server -- start",
|
2022-02-20 19:51:55 +08:00
|
|
|
"lint": "tslint -p tsconfig.json -c tslint.json",
|
|
|
|
"test": "jest",
|
|
|
|
"test:watch": "jest --watch",
|
|
|
|
"test:cov": "jest --coverage",
|
|
|
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
|
|
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@hocuspocus/server": "^1.0.0-alpha.91",
|
|
|
|
"@hocuspocus/transformer": "^1.0.0-alpha.18",
|
|
|
|
"@nestjs/common": "^8.0.0",
|
|
|
|
"@nestjs/config": "^1.1.6",
|
|
|
|
"@nestjs/core": "^8.0.0",
|
|
|
|
"@nestjs/jwt": "^8.0.0",
|
|
|
|
"@nestjs/passport": "^8.1.0",
|
|
|
|
"@nestjs/platform-express": "^8.0.0",
|
|
|
|
"@nestjs/typeorm": "^8.0.3",
|
|
|
|
"@think/config": "workspace:^1.0.0",
|
2022-03-11 13:57:55 +08:00
|
|
|
"@think/constants": "workspace:^1.0.0",
|
|
|
|
"@think/domains": "workspace:^1.0.0",
|
2022-02-20 19:51:55 +08:00
|
|
|
"ali-oss": "^6.16.0",
|
|
|
|
"bcryptjs": "^2.4.3",
|
|
|
|
"class-transformer": "^0.5.1",
|
|
|
|
"class-validator": "^0.13.2",
|
|
|
|
"date-fns": "^2.28.0",
|
|
|
|
"express": "^4.17.2",
|
|
|
|
"express-rate-limit": "^6.2.0",
|
|
|
|
"helmet": "^5.0.2",
|
2022-03-29 22:23:41 +08:00
|
|
|
"ioredis": "^5.0.1",
|
2022-02-20 19:51:55 +08:00
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"mysql2": "^2.3.3",
|
|
|
|
"nuid": "^1.1.6",
|
|
|
|
"passport": "^0.5.2",
|
|
|
|
"passport-jwt": "^4.0.0",
|
|
|
|
"prosemirror-model": "^1.16.1",
|
|
|
|
"reflect-metadata": "^0.1.13",
|
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"rxjs": "^7.2.0",
|
|
|
|
"typeorm": "^0.2.41",
|
|
|
|
"ua-parser-js": "^1.0.2",
|
|
|
|
"y-prosemirror": "^1.0.14",
|
|
|
|
"yjs": "^13.5.24"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@nestjs/cli": "^8.0.0",
|
|
|
|
"@nestjs/schematics": "^8.0.0",
|
|
|
|
"@nestjs/testing": "^8.0.0",
|
|
|
|
"@types/express": "^4.17.13",
|
|
|
|
"@types/jest": "27.0.2",
|
|
|
|
"@types/node": "^16.0.0",
|
|
|
|
"@types/supertest": "^2.0.11",
|
|
|
|
"jest": "^27.2.5",
|
|
|
|
"prettier": "^2.3.2",
|
|
|
|
"source-map-support": "^0.5.20",
|
|
|
|
"supertest": "^6.1.3",
|
|
|
|
"ts-jest": "^27.0.3",
|
|
|
|
"ts-loader": "^9.2.3",
|
|
|
|
"ts-node": "^10.0.0",
|
|
|
|
"tsconfig-paths": "^3.10.1",
|
|
|
|
"typescript": "^4.3.5"
|
|
|
|
},
|
|
|
|
"jest": {
|
2022-03-12 11:27:56 +08:00
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"json",
|
|
|
|
"ts"
|
|
|
|
],
|
2022-02-20 19:51:55 +08:00
|
|
|
"rootDir": "src",
|
|
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
|
|
},
|
2022-03-12 11:27:56 +08:00
|
|
|
"collectCoverageFrom": [
|
|
|
|
"**/*.(t|j)s"
|
|
|
|
],
|
2022-02-20 19:51:55 +08:00
|
|
|
"coverageDirectory": "../coverage",
|
|
|
|
"testEnvironment": "node"
|
|
|
|
}
|
2022-03-12 11:27:56 +08:00
|
|
|
}
|