package.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "name": "d3-voronoi",
  3. "version": "1.1.2",
  4. "description": "Compute the Voronoi diagram of a set of two-dimensional points.",
  5. "keywords": [
  6. "d3",
  7. "d3-module",
  8. "voronoi",
  9. "delaunay"
  10. ],
  11. "homepage": "https://d3js.org/d3-voronoi/",
  12. "license": "BSD-3-Clause",
  13. "author": {
  14. "name": "Mike Bostock",
  15. "url": "http://bost.ocks.org/mike"
  16. },
  17. "main": "build/d3-voronoi.js",
  18. "module": "index",
  19. "jsnext:main": "index",
  20. "repository": {
  21. "type": "git",
  22. "url": "https://github.com/d3/d3-voronoi.git"
  23. },
  24. "scripts": {
  25. "pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-voronoi.js -- index.js",
  26. "test": "tape 'test/**/*-test.js' && eslint index.js src",
  27. "prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-voronoi.js -c -m -o build/d3-voronoi.min.js",
  28. "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-voronoi/build/d3-voronoi.js d3-voronoi.v1.js && cp ../d3-voronoi/build/d3-voronoi.min.js d3-voronoi.v1.min.js && git add d3-voronoi.v1.js d3-voronoi.v1.min.js && git commit -m \"d3-voronoi ${npm_package_version}\" && git push && cd - && zip -j build/d3-voronoi.zip -- LICENSE README.md build/d3-voronoi.js build/d3-voronoi.min.js"
  29. },
  30. "devDependencies": {
  31. "eslint": "3",
  32. "package-preamble": "0.0",
  33. "rollup": "0.41",
  34. "tape": "4",
  35. "uglify-js": "^2.8.11"
  36. }
  37. }