Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jan 28, 2018
1 parent dba7750 commit f6d44d7
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,5 +1,5 @@
*.sublime-workspace
.DS_Store
build/
dist/

This comment has been minimized.

Copy link
@AlbaHoo

AlbaHoo Jan 29, 2018

This is affecting my v1.1.0 in my production after I re-deploy!!

This comment has been minimized.

Copy link
@AlbaHoo

AlbaHoo Jan 29, 2018

Sorry, I should use ~1.1.0 instead of ^1.1.0

node_modules
npm-debug.log
2 changes: 1 addition & 1 deletion .npmignore
@@ -1,3 +1,3 @@
*.sublime-*
build/*.zip
dist/*.zip
test/
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2010-2016, Michael Bostock
Copyright (c) 2010-2018, Michael Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion d3-selection.sublime-project
Expand Up @@ -6,7 +6,7 @@
"*.sublime-workspace"
],
"folder_exclude_patterns": [
"build"
"dist"
]
}
]
Expand Down
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -15,25 +15,25 @@
"name": "Mike Bostock",
"url": "https://bost.ocks.org/mike"
},
"main": "build/d3-selection.js",
"main": "dist/d3-selection.js",
"module": "index",
"jsnext:main": "index",
"repository": {
"type": "git",
"url": "https://github.com/d3/d3-selection.git"
},
"scripts": {
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-selection.js -- index.js",
"pretest": "rm -rf dist && mkdir dist && rollup -c --banner \"$(preamble)\"",
"test": "tape 'test/**/*-test.js' && eslint index.js src",
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-selection.js -c -m -o build/d3-selection.min.js",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-selection/build/d3-selection.js d3-selection.v1.js && cp ../d3-selection/build/d3-selection.min.js d3-selection.v1.min.js && git add d3-selection.v1.js d3-selection.v1.min.js && git commit -m \"d3-selection ${npm_package_version}\" && git push && cd - && zip -j build/d3-selection.zip -- LICENSE README.md build/d3-selection.js build/d3-selection.min.js"
"prepublishOnly": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" dist/d3-selection.js -c -m -o dist/d3-selection.min.js",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-selection/dist/d3-selection.js d3-selection.v1.js && cp ../d3-selection/dist/d3-selection.min.js d3-selection.v1.min.js && git add d3-selection.v1.js d3-selection.v1.min.js && git commit -m \"d3-selection ${npm_package_version}\" && git push && cd - && zip -j dist/d3-selection.zip -- LICENSE README.md dist/d3-selection.js dist/d3-selection.min.js"
},
"devDependencies": {
"eslint": "3",
"eslint": "4",
"jsdom": "11",
"package-preamble": "0.1",
"rollup": "0.41",
"rollup": "0.52",
"tape": "4",
"uglify-js": "^2.8.11"
"uglify-js": "3.2"
}
}
14 changes: 14 additions & 0 deletions rollup.config.js
@@ -0,0 +1,14 @@
const definition = require("./package.json");
const dependencies = Object.keys(definition.dependencies || {});

export default {
input: "index",
external: dependencies,
output: {
extend: true,
file: `dist/${definition.name}.js`,
format: "umd",
globals: dependencies.reduce((p, v) => (p[v] = "d3", p), {}),
name: "d3"
}
};

0 comments on commit f6d44d7

Please sign in to comment.