Skip to content

Commit

Permalink
Use Rollup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Nov 11, 2015
1 parent b5302dd commit cd7ef4d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-color",
"version": "0.2.7",
"version": "0.2.8",
"description": "Color spaces! RGB, HSL, Cubehelix, Lab and HCL (Lch).",
"keywords": [
"d3",
Expand All @@ -18,20 +18,20 @@
"name": "Mike Bostock",
"url": "http://bost.ocks.org/mike"
},
"main": "build/color.cjs",
"main": "build/d3-color.js",
"jsnext:main": "index",
"repository": {
"type": "git",
"url": "https://github.com/d3/d3-color.git"
},
"scripts": {
"pretest": "mkdir -p build && d3-bundler -x -f cjs -o build/color.cjs.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 -u d3-color -n d3_color -o build/d3-color.js -- build/bundle.js",
"test": "faucet `find test -name '*-test.js'`",
"prepublish": "npm run test && d3-bundler -n color -o build/color.js && uglifyjs build/color.js -c -m -o build/color.min.js && rm -f build/color.zip && zip -j build/color.zip -- LICENSE README.md build/color.js build/color.min.js"
"prepublish": "npm run test && uglifyjs build/d3-color.js -c -m -o build/d3-color.min.js && rm -f build/d3-color.zip && zip -j build/d3-color.zip -- LICENSE README.md build/d3-color.js build/d3-color.min.js"
},
"devDependencies": {
"d3-bundler": "~0.4.0",
"faucet": "0.0",
"rollup": "0.20.5",
"tape": "4",
"uglify-js": "2"
}
Expand Down

0 comments on commit cd7ef4d

Please sign in to comment.