201 lines
7.2 KiB
JSON
201 lines
7.2 KiB
JSON
{
|
|
"name": "@tdrive/tdrive-backend",
|
|
"version": "1.0.0",
|
|
"description": "Tdrive backend",
|
|
"scripts": {
|
|
"build": "npm run build:clean && npm run build:ts && npm run build:copy-assets",
|
|
"build:ts": "tsc",
|
|
"build:clean": "rimraf ./dist",
|
|
"build:copy-assets": "npm run build:copy-config && npm run build:copy-templates",
|
|
"build:copy-config": "cp -R config dist",
|
|
"build:copy-templates": "cpy src/**/*.eta dist/",
|
|
"dev": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon ./dist/server.js\" | pino-pretty",
|
|
"dev:cli": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon ./dist/cli/index.js workspace user\" | pino-pretty",
|
|
"dev:cli-dry": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon ./dist/cli/index.js console merge --dry\" | pino-pretty",
|
|
"dev:debug": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon --inspect=0.0.0.0 ./dist/server.js\" | pino-pretty",
|
|
"lint": "eslint . --ext .ts --quiet --fix",
|
|
"lint:no-fix": "eslint . --ext .ts",
|
|
"lint:prettier": "prettier --check --config .prettierrc 'src/**/*.ts'",
|
|
"serve": "node --unhandled-rejections=warn --max-http-header-size=30000 dist/server.js",
|
|
"serve:watch": "nodemon dist/server.js | pino-pretty",
|
|
"serve:debug": "nodemon --inspect dist/server.js | pino-pretty",
|
|
"start": "npm run serve",
|
|
"test": "jest --forceExit --coverage --detectOpenHandles --runInBand --verbose false | pino-pretty",
|
|
"test:local": "jest --forceExit --detectOpenHandles --runInBand mock.spec.ts",
|
|
"test:watch": "npm run test -- --watchAll --verbose false | pino-pretty",
|
|
"test:e2e": "node ./test/e2e/run-all.js",
|
|
"test:unit": "jest test/unit --forceExit --coverage --detectOpenHandles --maxWorkers=1 --testTimeout=30000 --verbose false > coverage/coverage-report.txt",
|
|
"test:unit:watch": "npm run test:unit -- --watchAll --verbose false | pino-pretty",
|
|
"test:merge:json": "npx istanbul report --dir coverage/merged --include 'coverage/**/coverage-final.json' json-summary",
|
|
"test:merge:text": "npx istanbul report --dir coverage/merged --include 'coverage/**/coverage-final.json' text > coverage/merged/coverage-report.txt",
|
|
"test:all": "jest test --forceExit --coverage --detectOpenHandles --testTimeout=30000 --verbose false --runInBand",
|
|
"kill": "kill $(lsof -t -i:3000) | exit 0"
|
|
},
|
|
"jest": {
|
|
"collectCoverage": true,
|
|
"coverageReporters": [
|
|
"json",
|
|
"html",
|
|
"clover",
|
|
"json-summary",
|
|
"text"
|
|
],
|
|
"verbose": true,
|
|
"testEnvironment": "node"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/Tdrive/tdrive-backend.git"
|
|
},
|
|
"author": "Tdrive",
|
|
"license": "ISC",
|
|
"bugs": {
|
|
"url": "https://github.com/Tdrive/tdrive-backend/issues"
|
|
},
|
|
"homepage": "https://github.com/Tdrive/tdrive-backend#readme",
|
|
"bin": {
|
|
"tdrive-cli": "bin/tdrive-cli"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.11.6",
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
"@babel/plugin-proposal-decorators": "^7.10.5",
|
|
"@babel/preset-env": "^7.11.5",
|
|
"@babel/preset-typescript": "^7.10.4",
|
|
"@types/amqp-connection-manager": "^2.0.10",
|
|
"@types/analytics-node": "^3.1.5",
|
|
"@types/archiver": "^5.3.1",
|
|
"@types/bcrypt": "^5.0.0",
|
|
"@types/busboy": "^0.2.3",
|
|
"@types/chai": "^4.2.12",
|
|
"@types/cli-table": "^0.3.0",
|
|
"@types/config": "0.0.36",
|
|
"@types/eslint": "^7.2.3",
|
|
"@types/fastify-multipart": "^0.7.0",
|
|
"@types/fastify-static": "^2.2.1",
|
|
"@types/fluent-ffmpeg": "^2.1.20",
|
|
"@types/html-to-text": "^8.1.1",
|
|
"@types/jest": "^26.0.14",
|
|
"@types/lodash": "^4.14.165",
|
|
"@types/minio": "^7.0.7",
|
|
"@types/mongodb": "^4.0.7",
|
|
"@types/node": "20",
|
|
"@types/node-cron": "^3.0.0",
|
|
"@types/node-fetch": "^2.5.12",
|
|
"@types/node-uuid": "^0.0.28",
|
|
"@types/pdf-image": "^2.0.1",
|
|
"@types/pino": "^6.3.2",
|
|
"@types/probe-image-size": "^7.0.1",
|
|
"@types/pump": "^1.1.1",
|
|
"@types/random-useragent": "^0.3.1",
|
|
"@types/socket.io-client": "^1.4.34",
|
|
"@types/supertest": "2.0.4",
|
|
"@types/uuid": "^8.3.0",
|
|
"@types/ws": "^7.2.7",
|
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
"@typescript-eslint/parser": "^4.2.0",
|
|
"babel-jest": "^26.5.2",
|
|
"babel-plugin-parameter-decorator": "^1.0.16",
|
|
"chai": "^4.2.0",
|
|
"cpy-cli": "^4.2.0",
|
|
"eslint": "^7.10.0",
|
|
"eslint-config-prettier": "^6.15.0",
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
"form-auto-content": "^2.2.0",
|
|
"jest": "^26.6.3",
|
|
"nodemon": "2.0.4",
|
|
"pino-pretty": "^10.0.0",
|
|
"prettier": "^2.1.2",
|
|
"rimraf": "^3.0.2",
|
|
"supertest": "4.0.2",
|
|
"ts-jest": "^26.4.0",
|
|
"ts-node": "^9.0.0",
|
|
"ts-node-dev": "^1.1.8",
|
|
"tsc-watch": "^4.2.9",
|
|
"typescript": "^4.0.3"
|
|
},
|
|
"dependencies": {
|
|
"@elastic/elasticsearch": "7",
|
|
"@fastify/caching": "^7.0.0",
|
|
"@fastify/formbody": "^6.0.0",
|
|
"@fastify/http-proxy": "7.1.0",
|
|
"@fastify/static": "^5.0.1",
|
|
"@ffprobe-installer/ffprobe": "^1.4.1",
|
|
"@sentry/node": "^6.19.7",
|
|
"@sentry/tracing": "^6.19.7",
|
|
"@socket.io/redis-adapter": "^7.1.0",
|
|
"@types/pdf-parse": "^1.1.1",
|
|
"@types/redis": "^4.0.11",
|
|
"@types/sharp": "^0.29.5",
|
|
"@types/socket.io-parser": "^3.0.0",
|
|
"amqp-connection-manager": "^3.7.0",
|
|
"amqplib": "^0.8.0",
|
|
"analytics-node": "^5.0.0",
|
|
"archiver": "^5.3.1",
|
|
"axios": "^0.21.3",
|
|
"bcrypt": "^5.0.1",
|
|
"cassandra-driver": "^4.6.0",
|
|
"class-transformer": "^0.3.1",
|
|
"cli-table": "^0.3.6",
|
|
"config": "^3.3.2",
|
|
"deep-object-diff": "^1.1.0",
|
|
"emoji-name-map": "^1.2.9",
|
|
"eta": "^1.12.3",
|
|
"fastify": "^3.29.4",
|
|
"fastify-cors": "^4.1.0",
|
|
"fastify-formbody": "^5.0.0",
|
|
"fastify-jwt": "^2.2.0",
|
|
"fastify-multipart": "5.3.1",
|
|
"fastify-plugin": "^2.3.4",
|
|
"fastify-sensible": "=3.0.1",
|
|
"fastify-socket.io": "^3.0.0",
|
|
"fastify-static": "^4.7.0",
|
|
"fastify-swagger": "^4.12.6",
|
|
"fastify-websocket": "^2.0.11",
|
|
"find-my-way": "^5.2.0",
|
|
"fluent-ffmpeg": "^2.1.2",
|
|
"fold-to-ascii": "^5.0.0",
|
|
"free-email-domains": "1.0.26",
|
|
"generate-password": "^1.6.0",
|
|
"get-website-favicon": "^0.0.7",
|
|
"html-metadata-parser": "^2.0.4",
|
|
"html-to-text": "^8.2.1",
|
|
"idtoken-verifier": "^2.2.3",
|
|
"jsonwebtoken": "^8.5.1",
|
|
"jwks-rsa": "^3.0.1",
|
|
"keyv": "^4.5.0",
|
|
"lodash": "^4.17.21",
|
|
"match-all": "^1.2.6",
|
|
"minio": "^7.0.18",
|
|
"moment": "^2.29.4",
|
|
"mongodb": "^4.1.0",
|
|
"multistream": "^4.1.0",
|
|
"njwt": "^2.0.0",
|
|
"node-abort-controller": "^3.1.1",
|
|
"node-cache": "^5.1.2",
|
|
"node-cron": "^3.0.0",
|
|
"node-fetch": "^2.6.7",
|
|
"node-uuid": "^1.4.8",
|
|
"openid-client": "^5.4.0",
|
|
"ora": "^5.4.0",
|
|
"pdf-parse": "^1.1.1",
|
|
"pdf2pic": "^2.1.4",
|
|
"pino": "^6.8.0",
|
|
"pino-std-serializers": "^6.1.0",
|
|
"probe-image-size": "^7.2.3",
|
|
"pump": "^3.0.0",
|
|
"random-useragent": "^0.5.0",
|
|
"redis": "3",
|
|
"reflect-metadata": "^0.1.13",
|
|
"rxjs": "^6.6.3",
|
|
"sharp": "^0.30.5",
|
|
"socket.io": "4",
|
|
"socket.io-client": "^3.0.0",
|
|
"unoconv-promise": "^1.0.8",
|
|
"uuid": "^8.3.2",
|
|
"uuid-time": "^1.0.0",
|
|
"yargs": "^16.2.0"
|
|
}
|
|
}
|