UNPKG

1.54 kBJSONView Raw
1{
2 "name": "d3-selection",
3 "version": "0.8.0",
4 "description": "Data-driven DOM manipulation: select elements and join them to data.",
5 "keywords": [
6 "d3",
7 "dom",
8 "selection",
9 "data-join"
10 ],
11 "homepage": "https://d3js.org/d3-selection/",
12 "license": "BSD-3-Clause",
13 "author": {
14 "name": "Mike Bostock",
15 "url": "http://bost.ocks.org/mike"
16 },
17 "main": "build/d3-selection.js",
18 "jsnext:main": "index",
19 "repository": {
20 "type": "git",
21 "url": "https://github.com/d3/d3-selection.git"
22 },
23 "scripts": {
24 "pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-selection.js -- index.js",
25 "test": "tape 'test/**/*-test.js' && eslint index.js src",
26 "prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-selection.js -c -m -o build/d3-selection.min.js",
27 "postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-selection.js ../d3.github.com/d3-selection.v0.8.js && cp build/d3-selection.min.js ../d3.github.com/d3-selection.v0.8.min.js && cd ../d3.github.com && git add d3-selection.v0.8.js d3-selection.v0.8.min.js && git commit -m \"d3-selection ${VERSION}\" && git push && cd - && zip -j build/d3-selection.zip -- LICENSE README.md build/d3-selection.js build/d3-selection.min.js"
28 },
29 "devDependencies": {
30 "eslint": "2",
31 "jsdom": "9",
32 "package-preamble": "0.0",
33 "rollup": "0.27",
34 "tape": "4",
35 "uglify-js": "2"
36 }
37}