This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
141 lines (141 loc) · 4.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "content-publishing-service",
"version": "0.1.0",
"description": "Services to publish content on DSNP/Frequency",
"main": "dist/apps/api/main.js",
"scripts": {
"build": "nest build api && nest build worker",
"build:swagger": "npx ts-node -r tsconfig-paths/register apps/api/src/build-openapi.ts",
"build:metadata": "npx ts-node apps/api/src/generate-metadata.ts",
"generate-swagger-ui": "npx --yes @redocly/cli build-docs swagger.json --output=./docs/index.html",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"start:api": "nest start api",
"start:api:watch": "nest start api --watch",
"start:api:prod": "node dist/apps/api/main.js",
"start:worker": "nest start worker",
"start:worker:watch": "nest start worker --watch",
"start:worker:prod": "node dist/apps/worker/main.js",
"start:api:dev": "set -a ; . .env ; nest start api --watch",
"start:worker:dev": "set -a ; . .env ; nest start worker --watch",
"start:api:debug": "set -a ; . .env ; nest start api --debug --watch",
"start:worker:debug": "set -a ; . .env ; nest start worker --debug --watch",
"docker-build": "docker build -t content-publishing-service .",
"docker-build:dev": "docker-compose build",
"docker-run": "docker build -t content-publishing-service-deploy . ; docker run -p 6379:6379 --env-file .env content-publishing-service-deploy",
"docker-run:dev": "docker-compose up -d ; docker-compose logs -f content-publishing-service",
"docker-stop:dev": "docker-compose stop",
"clean": "rm -Rf dist",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"pretest": "cp env.template .env",
"test": "jest --coverage --verbose",
"test:k6:script": "k6 run k6-test/script.js",
"test:k6:script-sm": "k6 run k6-test/script_sm_files.js",
"test:k6:script-md": "k6 run k6-test/script_md_files.js",
"test:k6:script-lg": "k6 run k6-test/script_lg_files.js",
"test:e2e": "set -a ; . .env ; jest --config ./apps/api/test/jest-e2e.json --detectOpenHandles",
"local:init": "node scripts/local-init.cjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AmplicaLabs/content-publishing-service.git"
},
"keywords": [],
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/AmplicaLabs/content-publishing-service/issues"
},
"homepage": "https://github.com/AmplicaLabs/content-publishing-service#readme",
"dependencies": {
"@bull-board/api": "^5.17.1",
"@bull-board/express": "^5.17.1",
"@bull-board/nestjs": "^5.17.1",
"@bull-board/ui": "^5.17.1",
"@dsnp/activity-content": "^1.1.0",
"@dsnp/frequency-schemas": "^1.1.0",
"@dsnp/parquetjs": "^1.6.2",
"@frequency-chain/api-augment": "1.11.1",
"@multiformats/blake2": "^1.0.13",
"@nestjs/bullmq": "^10.1.1",
"@nestjs/cli": "^10.3.2",
"@nestjs/common": "^10.3.8",
"@nestjs/config": "^3.2.2",
"@nestjs/core": "^10.3.10",
"@nestjs/event-emitter": "^2.0.4",
"@nestjs/platform-express": "^10.3.10",
"@nestjs/schedule": "^4.0.2",
"@nestjs/swagger": "^7.3.1",
"@polkadot/api": "^10.12.4",
"@polkadot/api-base": "^10.12.4",
"@polkadot/types": "^10.12.4",
"@polkadot/util": "^12.6.2",
"@songkeys/nestjs-redis": "^10.0.0",
"@types/multer": "^1.4.7",
"axios": "^1.6.8",
"bullmq": "^5.7.8",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"form-data": "^4.0.0",
"ioredis": "^5.4.1",
"ipfs-only-hash": "^4.0.0",
"joi": "^17.13.3",
"mime-types": "^2.1.35",
"multiformats": "9.9.0",
"rxjs": "^7.8.1",
"time-constants": "^1.0.3"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@nestjs/testing": "^10.3.8",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.10",
"@types/supertest": "^6.0.2",
"@types/time-constants": "^1.0.2",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-plugin-jest": "^28.5.0",
"ioredis-mock": "^8.9.0",
"jest": "^29.7.0",
"license-report": "^6.5.0",
"prettier": "^3.2.5",
"supertest": "^7.0.0",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"setupFiles": [
"dotenv/config"
],
"testRegex": ".*\\.spec\\.ts$",
"testPathIgnorePatterns": [
".*\\.mock\\.spec\\.ts$"
],
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"roots": [
"<rootDir>/apps/",
"<rootDir>/libs/"
],
"moduleNameMapper": {
"^@content-publishing-common(|/.*)$": "<rootDir>/libs/common/src/$1"
}
}
}