package.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "name": "@joystream/distributor-cli",
  3. "description": "Joystream distributor node CLI",
  4. "version": "0.1.0",
  5. "author": "Joystream contributors",
  6. "bin": {
  7. "joystream-distributor": "./bin/run"
  8. },
  9. "bugs": "https://github.com/Joystream/joystream/issues",
  10. "dependencies": {
  11. "@apollo/client": "^3.2.5",
  12. "@elastic/ecs-winston-format": "^1.1.0",
  13. "@joystream/metadata-protobuf": "^2.1.0",
  14. "@joystream/types": "^0.18.3",
  15. "@oclif/command": "^1",
  16. "@oclif/config": "^1",
  17. "@oclif/plugin-help": "^3",
  18. "ajv": "^7",
  19. "axios": "^0.21.1",
  20. "blake3-wasm": "^2.1.5",
  21. "cors": "^2.8.5",
  22. "cross-fetch": "^3.1.4",
  23. "express": "^4.17.1",
  24. "express-http-proxy": "^1.6.2",
  25. "express-openapi-validator": "^4.12.4",
  26. "express-winston": "^4.1.0",
  27. "fast-safe-stringify": "^2.1.1",
  28. "file-type": "^16.5.1",
  29. "graphql": "^14.7.0",
  30. "inquirer": "^8.1.2",
  31. "js-image-generator": "^1.0.3",
  32. "lodash": "^4.17.21",
  33. "lru-cache": "^6.0.0",
  34. "multihashes": "^4.0.3",
  35. "node-cache": "^5.1.2",
  36. "node-cleanup": "^2.1.2",
  37. "proper-lockfile": "^4.1.2",
  38. "queue": "^6.0.2",
  39. "read-chunk": "^3.2.0",
  40. "send": "^0.17.1",
  41. "tslib": "^1",
  42. "winston": "^3.3.3",
  43. "winston-elasticsearch": "^0.15.8",
  44. "url-join": "^4.0.1",
  45. "@types/url-join": "^4.0.1",
  46. "winston-daily-rotate-file": "^4.5.5",
  47. "jsonwebtoken": "^8.5.1",
  48. "yaml": "^1.10.2"
  49. },
  50. "devDependencies": {
  51. "@adobe/jsonschema2md": "https://github.com/adobe/jsonschema2md",
  52. "@graphql-codegen/cli": "^1.21.4",
  53. "@graphql-codegen/import-types-preset": "^1.18.1",
  54. "@graphql-codegen/typescript": "^1.22.0",
  55. "@graphql-codegen/typescript-document-nodes": "^1.17.11",
  56. "@graphql-codegen/typescript-operations": "^1.17.16",
  57. "@oclif/dev-cli": "^1",
  58. "@oclif/test": "^1",
  59. "@openapitools/openapi-generator-cli": "^2.3.6",
  60. "@types/chai": "^4",
  61. "@types/cors": "^2.8.12",
  62. "@types/express-http-proxy": "^1.6.2",
  63. "@types/inquirer": "^8.1.1",
  64. "@types/mocha": "^5",
  65. "@types/node": "^14",
  66. "@types/node-cache": "^4.2.5",
  67. "@types/node-cleanup": "^2.1.1",
  68. "@types/send": "^0.17.0",
  69. "chai": "^4",
  70. "globby": "^10",
  71. "json-schema-to-typescript": "^10.1.4",
  72. "markdown-magic": "^2.5.2",
  73. "mocha": "^5",
  74. "nyc": "^14",
  75. "openapi-typescript": "^4.0.2",
  76. "ts-node": "^8",
  77. "typescript": "^3.3",
  78. "widdershins": "^4.0.1"
  79. },
  80. "engines": {
  81. "node": ">=14.16.1"
  82. },
  83. "volta": {
  84. "node": "14.16.1",
  85. "yarn": "1.22.15"
  86. },
  87. "files": [
  88. "/bin",
  89. "/lib",
  90. "/npm-shrinkwrap.json",
  91. "/oclif.manifest.json"
  92. ],
  93. "homepage": "https://github.com/Joystream/joystream",
  94. "keywords": [
  95. "oclif"
  96. ],
  97. "license": "GPL-3.0-only",
  98. "main": "lib/index.js",
  99. "oclif": {
  100. "commands": "./lib/commands",
  101. "bin": "joystream-distributor",
  102. "plugins": [
  103. "@oclif/plugin-help"
  104. ],
  105. "topics": {
  106. "leader": {
  107. "description": "Commands for performing Distribution Working Group leader on-chain duties (like setting distribution module limits and parameters, assigning bags and buckets etc.)"
  108. },
  109. "operator": {
  110. "description": "Commands for performing node operator (Distribution Working Group worker) on-chain duties (like accepting bucket invitations, setting node metadata)"
  111. },
  112. "node": {
  113. "description": "Commands for interacting with a running distributor node through OperatorApi"
  114. },
  115. "dev": {
  116. "description": "Developer utility commands"
  117. }
  118. }
  119. },
  120. "repository": {
  121. "type": "git",
  122. "url": "https://github.com/Joystream/joystream",
  123. "directory": "distributor-node"
  124. },
  125. "scripts": {
  126. "postpack": "rm -f oclif.manifest.json",
  127. "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && generate:all",
  128. "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
  129. "version": "generate:docs:cli && git add docs/cli/*",
  130. "generate:types:json-schema": "yarn ts-node ./src/schemas/scripts/generateTypes.ts",
  131. "generate:types:graphql": "yarn graphql-codegen -c ./src/services/networking/query-node/codegen.yml",
  132. "generate:types:public-api": "yarn openapi-typescript ./src/api-spec/public.yml -o ./src/types/generated/PublicApi.ts -c ../prettierrc.js",
  133. "generate:types:operator-api": "yarn openapi-typescript ./src/api-spec/operator.yml -o ./src/types/generated/OperatorApi.ts -c ../prettierrc.js",
  134. "generate:types:api": "yarn generate:types:public-api && yarn generate:types:operator-api",
  135. "generate:types:all": "yarn generate:types:json-schema && yarn generate:types:graphql && yarn generate:types:api",
  136. "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",
  137. "generate:api:all": "yarn generate:api:storage-node",
  138. "generate:docs:cli": "yarn oclif-dev readme --multi --dir ./docs/commands",
  139. "generate:docs:config": "yarn ts-node --transpile-only ./src/schemas/scripts/generateConfigDoc.ts",
  140. "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",
  141. "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",
  142. "generate:docs:api": "yarn generate:docs:public-api && yarn generate:docs:operator-api",
  143. "generate:docs:toc": "yarn md-magic --path ./docs/**/*.md",
  144. "generate:docs:all": "yarn generate:docs:cli && yarn generate:docs:config && yarn generate:docs:api && yarn generate:docs:toc",
  145. "generate:all": "yarn generate:types:all && yarn generate:api:all && yarn generate:docs:all",
  146. "build": "rm -rf lib && tsc --build tsconfig.json && cp -r ./src/api-spec ./lib/api-spec",
  147. "lint": "eslint ./src --ext .ts",
  148. "format": "prettier ./ --write",
  149. "checks": "tsc --noEmit --pretty && prettier ./ --check && yarn lint",
  150. "cli": "./bin/run"
  151. },
  152. "types": "lib/index.d.ts"
  153. }