mirror of https://github.com/fantasticit/think.git
114 lines
3.4 KiB
JSON
114 lines
3.4 KiB
JSON
{
|
|
"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/schedule": "^2.0.1",
|
|
"@nestjs/typeorm": "^8.0.3",
|
|
"@think/config": "workspace:^1.0.0",
|
|
"@think/constants": "workspace:^1.0.0",
|
|
"@think/domains": "workspace:^1.0.0",
|
|
"@types/multer": "^1.4.7",
|
|
"ali-oss": "^6.16.0",
|
|
"bcryptjs": "^2.4.3",
|
|
"body-parser": "^1.20.0",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.13.2",
|
|
"compression": "^1.7.4",
|
|
"cookie-parser": "^1.4.6",
|
|
"cos-nodejs-sdk-v5": "^2.11.9",
|
|
"date-fns": "^2.28.0",
|
|
"express": "^4.17.2",
|
|
"express-rate-limit": "^6.2.0",
|
|
"fs-extra": "^10.0.0",
|
|
"helmet": "^5.0.2",
|
|
"html-to-docx": "^1.4.0",
|
|
"ioredis": "^5.0.1",
|
|
"lodash": "^4.17.21",
|
|
"mysql2": "^2.3.3",
|
|
"nestjs-pino": "^2.5.2",
|
|
"nodemailer": "^6.7.5",
|
|
"nuid": "^1.1.6",
|
|
"passport": "^0.5.2",
|
|
"passport-jwt": "^4.0.0",
|
|
"pino": "^7.11.0",
|
|
"pino-http": "^7.0.0",
|
|
"pino-pretty": "^7.6.1",
|
|
"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",
|
|
"validator": "^13.7.0",
|
|
"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/cookie-parser": "^1.4.3",
|
|
"@types/express": "^4.17.13",
|
|
"@types/jest": "27.0.2",
|
|
"@types/lodash": "^4.14.182",
|
|
"@types/node": "^16.0.0",
|
|
"@types/supertest": "^2.0.11",
|
|
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
"@typescript-eslint/parser": "^5.21.0",
|
|
"eslint": "^8.14.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"eslint-plugin-simple-import-sort": "^7.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.8.4"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": "src",
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
},
|
|
"collectCoverageFrom": [
|
|
"**/*.(t|j)s"
|
|
],
|
|
"coverageDirectory": "../coverage",
|
|
"testEnvironment": "node"
|
|
}
|
|
} |