package.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "name": "query-node-root",
  3. "version": "0.1.0",
  4. "description": "GraphQL server and mappings. Generated with \u2665 by Hydra-CLI",
  5. "scripts": {
  6. "build": "./build.sh",
  7. "rebuild": "yarn db:drop && yarn clean:query-node && yarn codegen:query-node && yarn db:prepare && yarn db:migrate",
  8. "lint": "yarn workspace query-node-mappings lint",
  9. "clean": "rm -rf ./generated",
  10. "clean:query-node": "rm -rf ./generated/graphql-server",
  11. "processor:start": "DEBUG=${DEBUG} hydra-processor run -e generated/graphql-server/.env",
  12. "query-node:build": "yarn workspace query-node build",
  13. "query-node:start:dev": "yarn workspace query-node start:dev",
  14. "query-node:start:prod": "yarn workspace query-node start:prod",
  15. "query-node:configure": "yarn workspace query-node config:dev",
  16. "db:up": "yarn docker:db:up",
  17. "db:create": "yarn workspace query-node db:create",
  18. "db:drop": "yarn workspace query-node db:drop",
  19. "db:prepare": "yarn workspace query-node db:create && yarn workspace query-node db:sync",
  20. "db:schema:migrate": "yarn workspace query-node db:migrate",
  21. "db:processor:migrate": "hydra-processor migrate --env ../.env",
  22. "db:migrate": "yarn db:schema:migrate && yarn db:processor:migrate",
  23. "db:bootstrap": "yarn db:create && yarn db:prepare && yarn db:migrate",
  24. "db:reset": "yarn db:drop && yarn db:prepare && yarn db:migrate",
  25. "bootstrap": "yarn codegen && yarn db:drop && yarn db:bootstrap",
  26. "hydra-cli": "./codegen/node_modules/@joystream/hydra-cli/bin/run",
  27. "hydra-typegen": "./codegen/node_modules/@joystream/hydra-typegen/bin/run",
  28. "codegen": "yarn hydra-cli codegen --schema ../../schemas/",
  29. "codegen:noinstall": "yarn codegen --no-install",
  30. "typegen:configure": "NODE_URL=${NODE_URL:-ws://localhost:9000} envsub typegen.template.yml typegen.yml",
  31. "typegen": "rm -rf ./mappings/generated && yarn hydra-typegen typegen manifest.yml --debug",
  32. "mappings:build": "yarn workspace query-node-mappings build",
  33. "start:dev": "./start.sh",
  34. "kill:dev": "./kill.sh"
  35. },
  36. "author": "",
  37. "license": "ISC",
  38. "dependencies": {
  39. "tslib": "^2.0.0",
  40. "@types/bn.js": "^4.11.6",
  41. "bn.js": "^5.1.2",
  42. "@joystream/hydra-processor": "3.1.0-alpha.16"
  43. },
  44. "volta": {
  45. "extends": "../package.json"
  46. }
  47. }