Skip to content

Commit

Permalink
Prepare for major release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jun 24, 2016
1 parent 86f3841 commit edc3733
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ A good hierarchical visualization facilitates rapid multiscale inference: micro-

## Installing

If you use NPM, `npm install d3-hierarchy`. Otherwise, download the [latest release](https://github.com/d3/d3-hierarchy/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-hierarchy.v0.3.min.js) or as part of [D3 4.0](https://github.com/d3/d3). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported:
If you use NPM, `npm install d3-hierarchy`. Otherwise, download the [latest release](https://github.com/d3/d3-hierarchy/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-hierarchy.v1.min.js) or as part of [D3 4.0](https://github.com/d3/d3). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported:

```html
<script src="https://d3js.org/d3-hierarchy.v0.3.min.js"></script>
<script src="https://d3js.org/d3-hierarchy.v1.min.js"></script>
<script>
var treemap = d3.treemap();
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-hierarchy.js -- index.js",
"test": "tape 'test/**/*-test.js' && eslint index.js src",
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-hierarchy.js -c -m -o build/d3-hierarchy.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-hierarchy.js ../d3.github.com/d3-hierarchy.v0.3.js && cp build/d3-hierarchy.min.js ../d3.github.com/d3-hierarchy.v0.3.min.js && cd ../d3.github.com && git add d3-hierarchy.v0.3.js d3-hierarchy.v0.3.min.js && git commit -m \"d3-hierarchy ${VERSION}\" && git push && cd - && zip -j build/d3-hierarchy.zip -- LICENSE README.md build/d3-hierarchy.js build/d3-hierarchy.min.js"
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-hierarchy.js ../d3.github.com/d3-hierarchy.v1.js && cp build/d3-hierarchy.min.js ../d3.github.com/d3-hierarchy.v1.min.js && cd ../d3.github.com && git add d3-hierarchy.v1.js d3-hierarchy.v1.min.js && git commit -m \"d3-hierarchy ${VERSION}\" && git push && cd - && zip -j build/d3-hierarchy.zip -- LICENSE README.md build/d3-hierarchy.js build/d3-hierarchy.min.js"
},
"devDependencies": {
"d3-dsv": "~0.4.0",
"d3-dsv": "1",
"d3-queue": "3",
"eslint": "2",
"package-preamble": "0.0",
"rollup": "0.27",
"rollup": "0.33",
"tape": "4",
"uglify-js": "2"
}
Expand Down

0 comments on commit edc3733

Please sign in to comment.