1 | {
|
2 | "name": "d3-interpolate",
|
3 | "version": "0.6.0",
|
4 | "description": "Interpolate numbers, colors, strings, arrays, objects, whatever!",
|
5 | "keywords": [
|
6 | "d3",
|
7 | "interpolate",
|
8 | "interpolation",
|
9 | "color"
|
10 | ],
|
11 | "homepage": "https://github.com/d3/d3-interpolate",
|
12 | "license": "BSD-3-Clause",
|
13 | "author": {
|
14 | "name": "Mike Bostock",
|
15 | "url": "http://bost.ocks.org/mike"
|
16 | },
|
17 | "main": "build/d3-interpolate.js",
|
18 | "jsnext:main": "index",
|
19 | "repository": {
|
20 | "type": "git",
|
21 | "url": "https://github.com/d3/d3-interpolate.git"
|
22 | },
|
23 | "scripts": {
|
24 | "pretest": "mkdir -p build && node -e 'process.stdout.write(\"var version = \\\"\" + require(\"./package.json\").version + \"\\\"; export * from \\\"../index\\\"; export {version};\");' > build/bundle.js && rollup -f umd -g d3-color:d3_color -n d3_interpolate -o build/d3-interpolate.js -- build/bundle.js",
|
25 | "test": "faucet `find test -name '*-test.js'` && eslint index.js src test",
|
26 | "prepublish": "npm run test && uglifyjs build/d3-interpolate.js -c -m -o build/d3-interpolate.min.js && rm -f build/d3-interpolate.zip && zip -j build/d3-interpolate.zip -- LICENSE README.md build/d3-interpolate.js build/d3-interpolate.min.js",
|
27 | "postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-interpolate.js ../d3.github.com/d3-interpolate.v0.6.js && cp build/d3-interpolate.min.js ../d3.github.com/d3-interpolate.v0.6.min.js && cd ../d3.github.com && git add d3-interpolate.v0.6.js d3-interpolate.v0.6.min.js && git commit -m \"d3-interpolate ${VERSION}\" && git push"
|
28 | },
|
29 | "dependencies": {
|
30 | "d3-color": "~0.4.0"
|
31 | },
|
32 | "devDependencies": {
|
33 | "faucet": "0.0",
|
34 | "rollup": "0.25",
|
35 | "tape": "4",
|
36 | "uglify-js": "2"
|
37 | }
|
38 | }
|