You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

76 lines
3.1 KiB

  1. {
  2. "name": "node-eventstore-client",
  3. "version": "0.2.17",
  4. "description": "A port of the EventStore .Net ClientAPI to Node.js",
  5. "main": "index.js",
  6. "types": "index.d.ts",
  7. "engines": {
  8. "node": ">=5.10"
  9. },
  10. "engineStrict": true,
  11. "scripts": {
  12. "clean": "rm -f lib/dist.js",
  13. "prebuild": "npm run clean",
  14. "build": "webpack -o ./lib/dist.js",
  15. "pretest": "npm run build",
  16. "test": "nodeunit",
  17. "test-debug": "TESTS_VERBOSE_LOGGING=1 nodeunit",
  18. "test:jest:watch": "jest --watch --coverage",
  19. "test:single": "npm run compose:single:start && npm run compose:wait && npm run compose:single:test ; npm run compose:single:stop",
  20. "test:gossip": "npm run compose:cluster:start && npm run compose:wait && npm run compose:gossip:test ; npm run compose:cluster:stop",
  21. "test:cluster": "npm run compose:cluster:start && npm run compose:wait && npm run compose:cluster:test ; npm run compose:cluster:stop",
  22. "compose:single:start": "docker-compose -f docker-compose-single.yaml up --build -d",
  23. "compose:cluster:start": "docker-compose -f docker-compose-cluster.yaml up --build -d",
  24. "compose:single:stop": "docker-compose -f docker-compose-single.yaml down -v --remove-orphans",
  25. "compose:cluster:stop": "docker-compose -f docker-compose-cluster.yaml down -v --remove-orphans",
  26. "compose:wait": "while [[ \"$(curl -s -o /dev/null -w ''%{http_code}'' localhost:2113/ping)\" != \"200\" ]]; do sleep 5; done",
  27. "compose:single:test": "docker-compose -f docker-compose-single.yaml exec nodejs bash -c \"npm i && npm run build && EVENTSTORE_CONNECTION_TYPE=tcp EVENTSTORE_HOST=192.168.33.10 npm run test-debug\"",
  28. "compose:cluster:test": "docker-compose -f docker-compose-cluster.yaml exec nodejs bash -c \"npm i && npm run build && EVENTSTORE_CONNECTION_TYPE=gossip EVENTSTORE_HOST=192.168.33.10 EVENTSTORE_HOST_1=192.168.33.10 EVENTSTORE_HOST_2=192.168.33.11 EVENTSTORE_HOST_3=192.168.33.12 npm run test-debug\"",
  29. "compose:gossip:test": "docker-compose -f docker-compose-cluster.yaml exec nodejs bash -c \"npm i && npm run build && EVENTSTORE_CONNECTION_TYPE=dns EVENTSTORE_HOST=192.168.33.10 npm run test-debug\"",
  30. "prepublishOnly": "npm run build && npm run gendocs",
  31. "gendocs": "rm -rf docs && jsdoc src -r -d docs"
  32. },
  33. "files": [
  34. "lib",
  35. "docs",
  36. "src",
  37. "index.js",
  38. "index.d.ts"
  39. ],
  40. "directories": {
  41. "lib": "lib",
  42. "doc": "docs",
  43. "example": "samples"
  44. },
  45. "repository": {
  46. "type": "git",
  47. "url": "git+https://github.com/nicdex/node-eventstore-client.git"
  48. },
  49. "keywords": [
  50. "eventstore",
  51. "geteventstore",
  52. "node"
  53. ],
  54. "author": "Nicolas Dextraze",
  55. "license": "MIT",
  56. "bugs": {
  57. "url": "https://github.com/nicdex/node-eventstore-client/issues"
  58. },
  59. "homepage": "https://github.com/nicdex/node-eventstore-client#readme",
  60. "dependencies": {
  61. "@types/long": "^3.0.32",
  62. "@types/node": ">=5.10",
  63. "long": "^3.2.0",
  64. "protobufjs": "^6.8.8",
  65. "strict-event-emitter-types": "^1.2.0",
  66. "uuid": "^3.0.1"
  67. },
  68. "devDependencies": {
  69. "jest": "^26.4.2",
  70. "jsdoc": "^3.6.3",
  71. "nodeunit": "^0.11.3",
  72. "webpack": "^4.41.2",
  73. "webpack-cli": "^3.3.10"
  74. }
  75. }