package.json.template 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. %YAML 1.2
  2. --- |
  3. {
  4. "name": "grpc",
  5. "version": "${settings.node_version}",
  6. "author": "Google Inc.",
  7. "description": "gRPC Library for Node",
  8. "homepage": "http://www.grpc.io/",
  9. "repository": {
  10. "type": "git",
  11. "url": "https://github.com/grpc/grpc.git"
  12. },
  13. "bugs": "https://github.com/grpc/grpc/issues",
  14. "contributors": [
  15. {
  16. "name": "Michael Lumish",
  17. "email": "mlumish@google.com"
  18. }
  19. ],
  20. "directories": {
  21. "lib": "src/node/src"
  22. },
  23. "scripts": {
  24. "lint": "node ./node_modules/jshint/bin/jshint src/node/src src/node/test src/node/interop src/node/index.js",
  25. "test": "./node_modules/.bin/mocha src/node/test && npm run-script lint",
  26. "gen_docs": "./node_modules/.bin/jsdoc -c src/node/jsdoc_conf.json",
  27. "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha src/node/test",
  28. "install": "./node_modules/.bin/node-pre-gyp install --fallback-to-build"
  29. },
  30. "bundledDependencies": ["node-pre-gyp"],
  31. "dependencies": {
  32. "arguejs": "^0.2.3",
  33. "lodash": "^3.9.3",
  34. "nan": "^2.0.0",
  35. "protobufjs": "^4.0.0"
  36. },
  37. "devDependencies": {
  38. "async": "^1.5.0",
  39. "google-auth-library": "^0.9.2",
  40. "istanbul": "^0.3.21",
  41. "jsdoc": "^3.3.2",
  42. "jshint": "^2.5.0",
  43. "minimist": "^1.1.0",
  44. "mocha": "^2.3.4",
  45. "mocha-jenkins-reporter": "^0.1.9",
  46. "mustache": "^2.0.0",
  47. "poisson-process": "^0.2.1"
  48. },
  49. "engines": {
  50. "node": ">=0.12.0"
  51. },
  52. "binary": {
  53. "module_name": "grpc_node",
  54. "module_path": "./build/Release/",
  55. "host": "https://storage.googleapis.com/",
  56. "remote_path": "grpc-precompiled-binaries/node/{name}/v{version}",
  57. "package_name": "{node_abi}-{platform}-{arch}.tar.gz",
  58. "module_path": "src/node/extension_binary"
  59. },
  60. "files": [
  61. "LICENSE",
  62. "src/node/README.md",
  63. "src/node/health_check",
  64. "src/proto",
  65. "etc",
  66. % for module in node_modules:
  67. % for file in module.headers + module.src + module.js:
  68. "${file}",
  69. % endfor
  70. % for dep in module.transitive_deps:
  71. % for lib in libs:
  72. % if lib.name == dep:
  73. % for file in lib.get('public_headers', []) + lib.headers + lib.src:
  74. "${file}",
  75. % endfor
  76. % endif
  77. % endfor
  78. % endfor
  79. % endfor
  80. "binding.gyp"
  81. ],
  82. "main": "src/node/index.js",
  83. "license": "BSD-3-Clause"
  84. }