Permalink
Browse files

Update rollup-plugin-node-resolve.

  • Loading branch information...
1 parent e03fcfb commit 2b0e668d9ba9be5ae44b0df446f09e5805c9ddd9 @mbostock mbostock committed Aug 3, 2016
Showing with 38 additions and 57 deletions.
  1. +0 −23 bin/rollup
  2. +0 −2 bin/rollup-node
  3. +32 −32 package.json
  4. +6 −0 rollup.config.js
View
@@ -1,23 +0,0 @@
-#!/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);
-}
View
@@ -20,8 +20,6 @@ rollup.rollup({
else resolve();
});
});
-}).then(function() {
- console.warn("↳ build/d3.node.js");
}).catch(abort);
function abort(error) {
View
@@ -25,48 +25,48 @@
"scripts": {
"pretest": "rm -rf build && mkdir build && json2module package.json > build/package.js && bin/rollup-node",
"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"
},
"devDependencies": {
"json2module": "0.0",
"package-preamble": "0.0",
"rollup": "0.34",
"rollup-plugin-ascii": "0.0",
- "rollup-plugin-node-resolve": "1",
+ "rollup-plugin-node-resolve": "2",
"tape": "4",
"uglify-js": "2"
},
"dependencies": {
- "d3-array": "1.0.0",
- "d3-axis": "1.0.1",
- "d3-brush": "1.0.1",
- "d3-collection": "1.0.0",
- "d3-color": "1.0.0",
- "d3-chord": "1.0.1",
- "d3-dispatch": "1.0.0",
- "d3-drag": "1.0.0",
- "d3-dsv": "1.0.0",
- "d3-ease": "1.0.0",
- "d3-force": "1.0.1",
- "d3-format": "1.0.1",
- "d3-geo": "1.2.0",
- "d3-hierarchy": "1.0.1",
- "d3-interpolate": "1.1.0",
- "d3-path": "1.0.0",
- "d3-polygon": "1.0.0",
- "d3-quadtree": "1.0.0",
- "d3-queue": "3.0.1",
- "d3-random": "1.0.0",
- "d3-request": "1.0.1",
- "d3-scale": "1.0.2",
- "d3-selection": "1.0.1",
- "d3-shape": "1.0.1",
- "d3-time": "1.0.1",
- "d3-time-format": "2.0.1",
- "d3-timer": "1.0.1",
- "d3-transition": "1.0.0",
- "d3-voronoi": "1.0.1",
- "d3-zoom": "1.0.2"
+ "d3-array": "1.0.1",
+ "d3-axis": "1.0.3",
+ "d3-brush": "1.0.2",
+ "d3-chord": "1.0.2",
+ "d3-collection": "1.0.1",
+ "d3-color": "1.0.1",
+ "d3-dispatch": "1.0.1",
+ "d3-drag": "1.0.1",
+ "d3-dsv": "1.0.1",
+ "d3-ease": "1.0.1",
+ "d3-force": "1.0.2",
+ "d3-format": "1.0.2",
+ "d3-geo": "1.2.2",
+ "d3-hierarchy": "1.0.2",
+ "d3-interpolate": "1.1.1",
+ "d3-path": "1.0.1",
+ "d3-polygon": "1.0.1",
+ "d3-quadtree": "1.0.1",
+ "d3-queue": "3.0.2",
+ "d3-random": "1.0.1",
+ "d3-request": "1.0.2",
+ "d3-scale": "1.0.3",
+ "d3-selection": "1.0.2",
+ "d3-shape": "1.0.2",
+ "d3-time": "1.0.2",
+ "d3-time-format": "2.0.2",
+ "d3-timer": "1.0.2",
+ "d3-transition": "1.0.1",
+ "d3-voronoi": "1.0.2",
+ "d3-zoom": "1.0.3"
}
}
View
@@ -0,0 +1,6 @@
+import ascii from "rollup-plugin-ascii";
+import node from "rollup-plugin-node-resolve";
+
+export default {
+ plugins: [node(), ascii()]
+};

0 comments on commit 2b0e668

Please sign in to comment.