-
Notifications
You must be signed in to change notification settings - Fork 115
/
package.json
156 lines (156 loc) · 6.13 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "@joystream/distributor-cli",
"description": "Joystream distributor node CLI",
"version": "0.2.0",
"author": "Joystream contributors",
"bin": {
"joystream-distributor": "./bin/run"
},
"bugs": "https://github.com/Joystream/joystream/issues",
"dependencies": {
"@apollo/client": "^3.2.5",
"@elastic/ecs-winston-format": "^1.1.0",
"@joystream/metadata-protobuf": "^2.5.0",
"@joystream/types": "^0.20.3",
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/plugin-help": "^3",
"@types/url-join": "^4.0.1",
"ajv": "^7",
"axios": "^0.21.1",
"blake3-wasm": "^2.1.5",
"cors": "^2.8.5",
"cross-fetch": "^3.1.4",
"express": "^4.17.1",
"express-http-proxy": "^1.6.2",
"express-openapi-validator": "^4.12.4",
"express-winston": "^4.1.0",
"fast-safe-stringify": "^2.1.1",
"file-type": "^16.5.1",
"graphql": "^14.7.0",
"graphql-tag": "^2.12.6",
"inquirer": "^8.1.2",
"js-image-generator": "^1.0.3",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.21",
"lru-cache": "^6.0.0",
"mime": "^3.0.0",
"multihashes": "^4.0.3",
"node-cache": "^5.1.2",
"node-cleanup": "^2.1.2",
"proper-lockfile": "^4.1.2",
"queue": "^6.0.2",
"send": "^0.17.1",
"tslib": "^1",
"url-join": "^4.0.1",
"winston": "^3.3.3",
"winston-daily-rotate-file": "^4.5.5",
"winston-elasticsearch": "^0.15.8",
"yaml": "^1.10.2"
},
"devDependencies": {
"@adobe/jsonschema2md": "^6.1.4",
"@graphql-codegen/cli": "^1.21.4",
"@graphql-codegen/import-types-preset": "^1.18.1",
"@graphql-codegen/typescript": "^1.22.0",
"@graphql-codegen/typescript-document-nodes": "^1.17.11",
"@graphql-codegen/typescript-operations": "^1.17.16",
"@oclif/dev-cli": "^1",
"@oclif/test": "^1",
"@openapitools/openapi-generator-cli": "^2.3.6",
"@types/chai": "^4",
"@types/cors": "^2.8.12",
"@types/express-http-proxy": "^1.6.2",
"@types/inquirer": "^8.1.1",
"@types/mocha": "^5",
"@types/node": "^14",
"@types/node-cache": "^4.2.5",
"@types/node-cleanup": "^2.1.1",
"@types/send": "^0.17.0",
"@types/mime": "^3.0.1",
"chai": "^4",
"globby": "^10",
"json-schema-to-typescript": "^10.1.4",
"markdown-magic": "^2.5.2",
"mocha": "^5",
"nyc": "^14",
"openapi-typescript": "^4.0.2",
"ts-node": "^10.9.1",
"typescript": "^3.3",
"widdershins": "^4.0.1"
},
"engines": {
"node": ">=14.16.1"
},
"volta": {
"node": "14.16.1",
"yarn": "1.22.15"
},
"files": [
"/bin",
"/lib",
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"homepage": "https://github.com/Joystream/joystream",
"keywords": [
"oclif"
],
"license": "GPL-3.0-only",
"main": "lib/index.js",
"oclif": {
"commands": "./lib/commands",
"bin": "joystream-distributor",
"plugins": [
"@oclif/plugin-help"
],
"topics": {
"leader": {
"description": "Commands for performing Distribution Working Group leader on-chain duties (like setting distribution module limits and parameters, assigning bags and buckets etc.)"
},
"operator": {
"description": "Commands for performing node operator (Distribution Working Group worker) on-chain duties (like accepting bucket invitations, setting node metadata)"
},
"node": {
"description": "Commands for interacting with a running distributor node through OperatorApi"
},
"dev": {
"description": "Developer utility commands"
}
},
"repositoryPrefix": "<%- repo %>/blob/master/<%- commandPath %>"
},
"repository": {
"type": "git",
"url": "https://github.com/Joystream/joystream",
"directory": "distributor-node"
},
"scripts": {
"postpack": "rm -f oclif.manifest.json",
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && generate:all",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"version": "generate:docs:cli && git add docs/cli/*",
"generate:types:json-schema": "yarn ts-node ./src/schemas/scripts/generateTypes.ts",
"generate:types:graphql": "yarn graphql-codegen -c ./src/services/networking/query-node/codegen.yml",
"generate:types:public-api": "yarn openapi-typescript ./src/api-spec/public.yml -o ./src/types/generated/PublicApi.ts -c ../prettierrc.js",
"generate:types:operator-api": "yarn openapi-typescript ./src/api-spec/operator.yml -o ./src/types/generated/OperatorApi.ts -c ../prettierrc.js",
"generate:types:api": "yarn generate:types:public-api && yarn generate:types:operator-api",
"generate:types:all": "yarn generate:types:json-schema && yarn generate:types:graphql && yarn generate:types:api",
"generate:api:storage-node": "yarn openapi-generator-cli generate -i ../storage-node/src/api-spec/openapi.yaml -g typescript-axios -o ./src/services/networking/storage-node/generated",
"generate:api:all": "yarn generate:api:storage-node",
"generate:docs:cli": "yarn oclif-dev readme --multi --dir ./docs/commands",
"generate:docs:config": "yarn ts-node --transpile-only ./src/schemas/scripts/generateConfigDoc.ts",
"generate:docs:public-api": "yarn widdershins ./src/api-spec/public.yml --language_tabs javascript:JavaScript shell:Shell -o ./docs/api/public/index.md -u ./docs/api/templates",
"generate:docs:operator-api": "yarn widdershins ./src/api-spec/operator.yml --language_tabs javascript:JavaScript shell:Shell -o ./docs/api/operator/index.md -u ./docs/api/templates",
"generate:docs:api": "yarn generate:docs:public-api && yarn generate:docs:operator-api",
"generate:docs:toc": "yarn md-magic --path ./docs/**/*.md",
"generate:docs:all": "yarn generate:docs:cli && yarn generate:docs:config && yarn generate:docs:api && yarn generate:docs:toc",
"generate:all": "yarn generate:types:all && yarn generate:api:all && yarn generate:docs:all",
"build": "rm -rf lib && tsc --build tsconfig.json && cp -r ./src/api-spec ./lib/api-spec",
"lint": "eslint ./src --ext .ts",
"format": "prettier ./ --write",
"checks": "tsc --noEmit --pretty && prettier ./ --check && yarn lint",
"cli": "./bin/run"
},
"types": "lib/index.d.ts"
}