1 | {
|
2 | "name": "d3-path",
|
3 | "version": "1.0.0",
|
4 | "description": "Serialize Canvas path commands to SVG.",
|
5 | "keywords": [
|
6 | "d3",
|
7 | "d3-module",
|
8 | "canvas",
|
9 | "path",
|
10 | "svg",
|
11 | "graphics",
|
12 | "CanvasRenderingContext2D",
|
13 | "CanvasPathMethods",
|
14 | "Path2D"
|
15 | ],
|
16 | "homepage": "https://d3js.org/d3-path/",
|
17 | "license": "BSD-3-Clause",
|
18 | "author": {
|
19 | "name": "Mike Bostock",
|
20 | "url": "http://bost.ocks.org/mike"
|
21 | },
|
22 | "main": "build/d3-path.js",
|
23 | "jsnext:main": "index",
|
24 | "repository": {
|
25 | "type": "git",
|
26 | "url": "https://github.com/d3/d3-path.git"
|
27 | },
|
28 | "scripts": {
|
29 | "pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-path.js -- index.js",
|
30 | "test": "tape 'test/**/*-test.js' && eslint index.js src",
|
31 | "prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-path.js -c -m -o build/d3-path.min.js",
|
32 | "postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-path.js ../d3.github.com/d3-path.v1.js && cp build/d3-path.min.js ../d3.github.com/d3-path.v1.min.js && cd ../d3.github.com && git add d3-path.v1.js d3-path.v1.min.js && git commit -m \"d3-path ${VERSION}\" && git push && cd - && zip -j build/d3-path.zip -- LICENSE README.md build/d3-path.js build/d3-path.min.js"
|
33 | },
|
34 | "devDependencies": {
|
35 | "eslint": "2",
|
36 | "package-preamble": "0.0",
|
37 | "rollup": "0.31",
|
38 | "tape": "4",
|
39 | "uglify-js": "2"
|
40 | }
|
41 | }
|