Commit 2b0e668d authored by Mike Bostock's avatar Mike Bostock

Update rollup-plugin-node-resolve.

parent e03fcfbb
#!/usr/bin/env node
var rollup = require("rollup"),
ascii = require("rollup-plugin-ascii"),
nodeResolve = require("rollup-plugin-node-resolve");
rollup.rollup({
entry: "index.js",
plugins: [nodeResolve({jsnext: true}), ascii()]
}).then(function(bundle) {
return bundle.write({
banner: process.argv[2],
format: "umd",
moduleName: "d3",
dest: "build/d3.js"
});
}).then(function() {
console.warn("↳ build/d3.js");
}).catch(abort);
function abort(error) {
console.error(error.stack);
}
...@@ -20,8 +20,6 @@ rollup.rollup({ ...@@ -20,8 +20,6 @@ rollup.rollup({
else resolve(); else resolve();
}); });
}); });
}).then(function() {
console.warn("↳ build/d3.node.js");
}).catch(abort); }).catch(abort);
function abort(error) { function abort(error) {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"scripts": { "scripts": {
"pretest": "rm -rf build && mkdir build && json2module package.json > build/package.js && bin/rollup-node", "pretest": "rm -rf build && mkdir build && json2module package.json > build/package.js && bin/rollup-node",
"test": "tape 'test/**/*-test.js'", "test": "tape 'test/**/*-test.js'",
"prepublish": "npm run test && bin/rollup \"$(preamble)\" && uglifyjs --preamble \"$(preamble)\" build/d3.js -c -m -o build/d3.min.js", "prepublish": "npm run test && rollup -c --banner \"$(preamble)\" -f umd -n d3 -o build/d3.js -- index.js && uglifyjs --preamble \"$(preamble)\" build/d3.js -c -m -o build/d3.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/build/d3.js d3.v4.js && cp ../d3/build/d3.min.js d3.v4.min.js && git add d3.v4.js d3.v4.min.js && git commit -m \"d3 ${VERSION}\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/build/d3.js ../d3/build/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \"${VERSION}\" && git tag -am \"${VERSION}\" v${VERSION} && git push && git push --tags && cd - && zip -j build/d3.zip -- LICENSE README.md API.md CHANGES.md build/d3.js build/d3.min.js" "postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/build/d3.js d3.v4.js && cp ../d3/build/d3.min.js d3.v4.min.js && git add d3.v4.js d3.v4.min.js && git commit -m \"d3 ${VERSION}\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/build/d3.js ../d3/build/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \"${VERSION}\" && git tag -am \"${VERSION}\" v${VERSION} && git push && git push --tags && cd - && zip -j build/d3.zip -- LICENSE README.md API.md CHANGES.md build/d3.js build/d3.min.js"
}, },
"devDependencies": { "devDependencies": {
...@@ -33,40 +33,40 @@ ...@@ -33,40 +33,40 @@
"package-preamble": "0.0", "package-preamble": "0.0",
"rollup": "0.34", "rollup": "0.34",
"rollup-plugin-ascii": "0.0", "rollup-plugin-ascii": "0.0",
"rollup-plugin-node-resolve": "1", "rollup-plugin-node-resolve": "2",
"tape": "4", "tape": "4",
"uglify-js": "2" "uglify-js": "2"
}, },
"dependencies": { "dependencies": {
"d3-array": "1.0.0", "d3-array": "1.0.1",
"d3-axis": "1.0.1", "d3-axis": "1.0.3",
"d3-brush": "1.0.1", "d3-brush": "1.0.2",
"d3-collection": "1.0.0", "d3-chord": "1.0.2",
"d3-color": "1.0.0", "d3-collection": "1.0.1",
"d3-chord": "1.0.1", "d3-color": "1.0.1",
"d3-dispatch": "1.0.0", "d3-dispatch": "1.0.1",
"d3-drag": "1.0.0", "d3-drag": "1.0.1",
"d3-dsv": "1.0.0", "d3-dsv": "1.0.1",
"d3-ease": "1.0.0", "d3-ease": "1.0.1",
"d3-force": "1.0.1", "d3-force": "1.0.2",
"d3-format": "1.0.1", "d3-format": "1.0.2",
"d3-geo": "1.2.0", "d3-geo": "1.2.2",
"d3-hierarchy": "1.0.1", "d3-hierarchy": "1.0.2",
"d3-interpolate": "1.1.0", "d3-interpolate": "1.1.1",
"d3-path": "1.0.0", "d3-path": "1.0.1",
"d3-polygon": "1.0.0", "d3-polygon": "1.0.1",
"d3-quadtree": "1.0.0", "d3-quadtree": "1.0.1",
"d3-queue": "3.0.1", "d3-queue": "3.0.2",
"d3-random": "1.0.0", "d3-random": "1.0.1",
"d3-request": "1.0.1", "d3-request": "1.0.2",
"d3-scale": "1.0.2", "d3-scale": "1.0.3",
"d3-selection": "1.0.1", "d3-selection": "1.0.2",
"d3-shape": "1.0.1", "d3-shape": "1.0.2",
"d3-time": "1.0.1", "d3-time": "1.0.2",
"d3-time-format": "2.0.1", "d3-time-format": "2.0.2",
"d3-timer": "1.0.1", "d3-timer": "1.0.2",
"d3-transition": "1.0.0", "d3-transition": "1.0.1",
"d3-voronoi": "1.0.1", "d3-voronoi": "1.0.2",
"d3-zoom": "1.0.2" "d3-zoom": "1.0.3"
} }
} }
import ascii from "rollup-plugin-ascii";
import node from "rollup-plugin-node-resolve";
export default {
plugins: [node(), ascii()]
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment