2022-02-20 11:51:55 +00: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",
|
|
|
|
"pm2": "pm2 start npm --name @think/server -- start",
|
|
|
|
"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 05:57:55 +00:00
|
|
|
"@think/constants": "workspace:^1.0.0",
|
|
|
|
"@think/domains": "workspace:^1.0.0",
|
2022-02-20 11:51:55 +00: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",
|
|
|
|
"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",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
|
|
"@typescript-eslint/parser": "^5.0.0",
|
|
|
|
"eslint": "^8.0.1",
|
|
|
|
"eslint-config-prettier": "^8.3.0",
|
|
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
|
|
"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": {
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"json",
|
|
|
|
"ts"
|
|
|
|
],
|
|
|
|
"rootDir": "src",
|
|
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
|
|
},
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"**/*.(t|j)s"
|
|
|
|
],
|
|
|
|
"coverageDirectory": "../coverage",
|
|
|
|
"testEnvironment": "node"
|
|
|
|
}
|
|
|
|
}
|