2023-06-20 20:05:15 +00:00
|
|
|
{
|
2024-01-25 00:06:36 +00:00
|
|
|
"name": "project-knedita",
|
2024-02-15 13:03:04 +00:00
|
|
|
"version": "0.1.0",
|
2024-01-25 00:06:36 +00:00
|
|
|
"description": "A open-source social media",
|
2024-02-15 13:03:04 +00:00
|
|
|
"author": "hknsh",
|
2024-01-25 00:06:36 +00:00
|
|
|
"license": "MIT",
|
2023-06-20 20:05:15 +00:00
|
|
|
"scripts": {
|
2024-01-25 00:06:36 +00:00
|
|
|
"build": "nest build",
|
|
|
|
"dev:start": "nest start --watch",
|
|
|
|
"dev:debug": "nest start --debug --watch",
|
2023-08-08 22:52:28 +00:00
|
|
|
"docker": "docker compose --env-file docker.env up -d",
|
2023-06-20 20:05:15 +00:00
|
|
|
"docker:build": "docker build -t api . && docker compose up -d",
|
|
|
|
"docker:db": "docker compose -f docker-compose.db.yml up -d",
|
2024-02-02 16:53:15 +00:00
|
|
|
"lint": "npx @biomejs/biome check --apply .",
|
2024-01-31 12:58:50 +00:00
|
|
|
"migrate:deploy": "prisma migrate deploy",
|
2023-06-20 20:05:15 +00:00
|
|
|
"migrate:dev": "prisma migrate dev",
|
|
|
|
"migrate:dev:create": "prisma migrate dev --create-only",
|
|
|
|
"migrate:reset": "prisma migrate reset",
|
|
|
|
"prisma:generate": "npx prisma generate",
|
|
|
|
"prisma:studio": "npx prisma studio",
|
2024-02-03 15:07:18 +00:00
|
|
|
"prepare": "husky",
|
2024-01-31 12:58:50 +00:00
|
|
|
"prod": "npm run migrate:deploy && node dist/main",
|
2024-01-25 00:06:36 +00:00
|
|
|
"start": "nest start",
|
|
|
|
"test": "jest",
|
|
|
|
"test:cov": "jest --coverage",
|
|
|
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
|
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
|
|
"test:watch": "jest --watch"
|
2023-06-20 20:05:15 +00:00
|
|
|
},
|
2024-01-25 00:06:36 +00:00
|
|
|
"dependencies": {
|
2024-01-30 20:22:17 +00:00
|
|
|
"@aws-sdk/client-s3": "^3.502.0",
|
2024-01-25 17:13:49 +00:00
|
|
|
"@fastify/helmet": "^11.1.1",
|
2024-01-30 20:22:17 +00:00
|
|
|
"@fastify/multipart": "^8.1.0",
|
2024-04-08 01:13:58 +00:00
|
|
|
"@fastify/static": "^7.0.3",
|
2024-01-30 20:22:17 +00:00
|
|
|
"@nest-lab/fastify-multer": "^1.2.0",
|
2024-01-25 00:06:36 +00:00
|
|
|
"@nestjs/common": "^10.0.0",
|
2024-01-25 16:17:13 +00:00
|
|
|
"@nestjs/config": "^3.1.1",
|
2024-01-25 00:06:36 +00:00
|
|
|
"@nestjs/core": "^10.0.0",
|
2024-01-25 16:17:13 +00:00
|
|
|
"@nestjs/jwt": "^10.2.0",
|
|
|
|
"@nestjs/passport": "^10.0.3",
|
2024-02-19 00:53:09 +00:00
|
|
|
"@nestjs/platform-express": "^10.3.3",
|
2024-01-25 16:17:13 +00:00
|
|
|
"@nestjs/platform-fastify": "^10.3.1",
|
2024-01-25 00:06:36 +00:00
|
|
|
"@nestjs/swagger": "^7.2.0",
|
2024-01-25 17:13:49 +00:00
|
|
|
"@nestjs/throttler": "^5.1.1",
|
2024-02-15 10:06:59 +00:00
|
|
|
"@prisma/client": "^5.9.1",
|
2024-01-25 16:17:13 +00:00
|
|
|
"bcrypt": "^5.1.1",
|
2024-01-30 20:22:17 +00:00
|
|
|
"file-type": "^19.0.0",
|
2024-01-25 17:13:49 +00:00
|
|
|
"ioredis": "^5.3.2",
|
2024-01-30 20:22:17 +00:00
|
|
|
"nestjs-s3": "^2.0.1",
|
2024-01-25 17:13:49 +00:00
|
|
|
"nestjs-throttler-storage-redis": "^0.4.1",
|
2024-01-25 00:06:36 +00:00
|
|
|
"nestjs-zod": "^3.0.0",
|
2024-01-25 16:17:13 +00:00
|
|
|
"passport": "^0.7.0",
|
|
|
|
"passport-jwt": "^4.0.1",
|
|
|
|
"passport-local": "^1.0.0",
|
2024-01-25 00:06:36 +00:00
|
|
|
"reflect-metadata": "^0.1.13",
|
2024-01-30 20:22:17 +00:00
|
|
|
"rxjs": "^7.8.1",
|
|
|
|
"sharp": "^0.33.2"
|
2023-06-20 20:05:15 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-01-24 14:35:08 +00:00
|
|
|
"@biomejs/biome": "1.5.3",
|
2024-02-03 14:41:32 +00:00
|
|
|
"@commitlint/cli": "^18.6.0",
|
|
|
|
"@commitlint/config-conventional": "^18.6.0",
|
2024-01-25 00:06:36 +00:00
|
|
|
"@nestjs/cli": "^10.0.0",
|
|
|
|
"@nestjs/schematics": "^10.0.0",
|
2024-02-19 00:53:39 +00:00
|
|
|
"@nestjs/testing": "^10.3.3",
|
2024-01-30 20:22:17 +00:00
|
|
|
"@swc/cli": "^0.1.65",
|
|
|
|
"@swc/core": "^1.3.107",
|
2024-02-19 00:54:01 +00:00
|
|
|
"@swc/jest": "^0.2.36",
|
2024-01-25 16:17:13 +00:00
|
|
|
"@types/bcrypt": "^5.0.2",
|
2024-01-25 00:06:36 +00:00
|
|
|
"@types/express": "^4.17.17",
|
|
|
|
"@types/jest": "^29.5.2",
|
2024-02-19 00:52:16 +00:00
|
|
|
"@types/node": "^20.11.19",
|
2024-01-25 16:17:13 +00:00
|
|
|
"@types/passport-jwt": "^4.0.0",
|
|
|
|
"@types/passport-local": "^1.0.38",
|
2024-01-25 00:06:36 +00:00
|
|
|
"@types/supertest": "^6.0.0",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
|
|
"@typescript-eslint/parser": "^6.0.0",
|
|
|
|
"eslint": "^8.42.0",
|
|
|
|
"eslint-config-prettier": "^9.0.0",
|
|
|
|
"eslint-plugin-prettier": "^5.0.0",
|
2024-01-31 12:58:50 +00:00
|
|
|
"husky": "^9.0.7",
|
2024-01-25 00:06:36 +00:00
|
|
|
"jest": "^29.5.0",
|
2024-02-03 14:41:32 +00:00
|
|
|
"lint-staged": "^15.2.1",
|
2024-02-19 00:52:38 +00:00
|
|
|
"prettier": "^3.2.5",
|
2024-02-15 10:06:59 +00:00
|
|
|
"prisma": "^5.9.1",
|
2024-01-25 00:06:36 +00:00
|
|
|
"source-map-support": "^0.5.21",
|
2023-06-23 18:15:11 +00:00
|
|
|
"supertest": "^6.3.3",
|
2024-01-25 00:06:36 +00:00
|
|
|
"ts-jest": "^29.1.0",
|
|
|
|
"ts-loader": "^9.4.3",
|
|
|
|
"ts-node": "^10.9.1",
|
2023-07-31 23:18:07 +00:00
|
|
|
"tsconfig-paths": "^4.2.0",
|
2024-01-25 00:06:36 +00:00
|
|
|
"typescript": "^5.1.3"
|
2023-06-20 20:05:15 +00:00
|
|
|
},
|
2024-01-25 00:06:36 +00:00
|
|
|
"jest": {
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"json",
|
|
|
|
"ts"
|
|
|
|
],
|
|
|
|
"rootDir": "src",
|
|
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
|
|
"transform": {
|
2024-01-30 20:22:17 +00:00
|
|
|
"^.+\\.(t|j)s$": [
|
|
|
|
"@swc/jest"
|
|
|
|
]
|
2024-01-25 00:06:36 +00:00
|
|
|
},
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"**/*.(t|j)s"
|
|
|
|
],
|
|
|
|
"coverageDirectory": "../coverage",
|
|
|
|
"testEnvironment": "node"
|
2024-02-03 14:41:32 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
2024-02-05 18:24:10 +00:00
|
|
|
"**/*.@(js|ts|json)": "biome check --apply --no-errors-on-unmatched"
|
2023-06-20 20:05:15 +00:00
|
|
|
}
|
2024-02-02 16:53:15 +00:00
|
|
|
}
|