package.json 2.2 KB

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