package.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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": "echo \"Skippinng\"",
  9. "clean": "rm -rf ./generated",
  10. "clean:query-node": "rm -rf ./generated/graphql-server",
  11. "processor:bootstrap": "./bootstrap.sh",
  12. "processor:start": "DEBUG=${DEBUG} yarn processor:bootstrap && hydra-processor run -e ../.env",
  13. "query-node:build": "yarn workspace query-node build",
  14. "query-node:start:dev": "yarn workspace query-node start:dev",
  15. "query-node:start:prod": "yarn workspace query-node start:prod",
  16. "query-node:configure": "yarn workspace query-node config:dev",
  17. "db:up": "yarn docker:db:up",
  18. "db:create": "yarn workspace query-node db:create",
  19. "db:drop": "yarn workspace query-node db:drop",
  20. "db:prepare": "yarn workspace query-node db:create && yarn workspace query-node db:sync",
  21. "db:schema:migrate": "yarn workspace query-node db:migrate",
  22. "db:processor:migrate": "hydra-processor migrate --env ../.env",
  23. "db:migrate": "yarn db:schema:migrate && yarn db:processor:migrate",
  24. "db:bootstrap": "yarn db:create && yarn db:prepare && yarn db:migrate",
  25. "db:reset": "yarn db:drop && yarn db:prepare && yarn db:migrate",
  26. "bootstrap": "yarn codegen && yarn db:drop && yarn db:bootstrap",
  27. "codegen": "hydra-cli codegen",
  28. "codegen:noinstall": "hydra-cli codegen --no-install",
  29. "typegen:configure": "NODE_URL=${NODE_URL:-ws://localhost:9000} envsub typegen.template.yml typegen.yml",
  30. "typegen": "rm -rf ./mappings/generated && hydra-typegen typegen manifest.yml --debug",
  31. "mappings:build": "yarn workspace query-node-mappings build",
  32. "docker:build": "docker build . -f docker/Dockerfile.hydra -t hydra-kit:latest",
  33. "docker:db:up": "(cd ../ && docker-compose up -d db)",
  34. "docker:db:migrate": "docker run --env-file .env --env DB_HOST=db --env TYPEORM_HOST=db --network container:${PWD##*/}_db_1 hydra-kit:latest yarn db:migrate",
  35. "docker:up": "docker-compose up -d"
  36. },
  37. "author": "",
  38. "license": "ISC",
  39. "dependencies": {
  40. "tslib": "^2.0.0",
  41. "@types/bn.js": "^4.11.6",
  42. "bn.js": "^5.1.2",
  43. "@polkadot/metadata": "^4.1.1",
  44. "@dzlzv/hydra-cli": "2.1.0-beta.7",
  45. "@dzlzv/hydra-processor": "2.1.0-beta.7"
  46. },
  47. "devDependencies": {
  48. "@dzlzv/hydra-typegen": "2.1.0-beta.7"
  49. },
  50. "volta": {
  51. "extends": "../package.json"
  52. }
  53. }