Skip to content

Commit

Permalink
Generate anonymous AMD.
Browse files Browse the repository at this point in the history
Also update Rollup. Related d3/d3#2725.
  • Loading branch information
mbostock committed Jan 29, 2016
1 parent ee98705 commit 7150b84
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-interpolate",
"version": "0.4.0",
"version": "0.4.1",
"description": "Interpolate numbers, colors, strings, arrays, objects, whatever!",
"keywords": [
"d3",
Expand All @@ -21,16 +21,17 @@
"url": "https://github.com/d3/d3-interpolate.git"
},
"scripts": {
"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 -u d3-interpolate -n d3_interpolate -o build/d3-interpolate.js -- build/bundle.js",
"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",
"test": "faucet `find test -name '*-test.js'` && eslint index.js src",
"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"
"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",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git tag -am \"Release $VERSION.\" v${VERSION} && git push --tags && cp build/d3-interpolate.js ../d3.github.com/d3-interpolate.v0.4.js && cp build/d3-interpolate.min.js ../d3.github.com/d3-interpolate.v0.4.min.js && cd ../d3.github.com && git add d3-interpolate.v0.4.js d3-interpolate.v0.4.min.js && git commit -m \"d3-interpolate ${VERSION}\" && git push"
},
"dependencies": {
"d3-color": "~0.3.3"
"d3-color": "~0.3.4"
},
"devDependencies": {
"faucet": "0.0",
"rollup": "0.20.5",
"rollup": "0.25",
"tape": "4",
"uglify-js": "2"
}
Expand Down

0 comments on commit 7150b84

Please sign in to comment.