Prepare for major release.
This commit is contained in:
parent
c69a91aec5
commit
29ad3e14e6
|
|
@ -18,14 +18,14 @@ To use this module, create a [simulation](#simulation) for an array of [nodes](#
|
|||
|
||||
## Installing
|
||||
|
||||
If you use NPM, `npm install d3-force`. Otherwise, download the [latest release](https://github.com/d3/d3-force/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-force.v0.7.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_force` global is exported:
|
||||
If you use NPM, `npm install d3-force`. Otherwise, download the [latest release](https://github.com/d3/d3-force/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-force.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_force` global is exported:
|
||||
|
||||
```html
|
||||
<script src="https://d3js.org/d3-collection.v1.min.js"></script>
|
||||
<script src="https://d3js.org/d3-dispatch.v1.min.js"></script>
|
||||
<script src="https://d3js.org/d3-quadtree.v1.min.js"></script>
|
||||
<script src="https://d3js.org/d3-timer.v1.min.js"></script>
|
||||
<script src="https://d3js.org/d3-force.v0.7.min.js"></script>
|
||||
<script src="https://d3js.org/d3-force.v1.min.js"></script>
|
||||
<script>
|
||||
|
||||
var simulation = d3.forceSimulation(nodes);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -g d3-collection:d3,d3-dispatch:d3,d3-quadtree:d3,d3-timer:d3 -f umd -n d3 -o build/d3-force.js -- index.js",
|
||||
"test": "tape 'test/**/*-test.js' && eslint index.js src",
|
||||
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-force.js -c -m -o build/d3-force.min.js",
|
||||
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-force.js ../d3.github.com/d3-force.v0.7.js && cp build/d3-force.min.js ../d3.github.com/d3-force.v0.7.min.js && cd ../d3.github.com && git add d3-force.v0.7.js d3-force.v0.7.min.js && git commit -m \"d3-force ${VERSION}\" && git push && cd - && zip -j build/d3-force.zip -- LICENSE README.md build/d3-force.js build/d3-force.min.js"
|
||||
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-force.js ../d3.github.com/d3-force.v1.js && cp build/d3-force.min.js ../d3.github.com/d3-force.v1.min.js && cd ../d3.github.com && git add d3-force.v1.js d3-force.v1.min.js && git commit -m \"d3-force ${VERSION}\" && git push && cd - && zip -j build/d3-force.zip -- LICENSE README.md build/d3-force.js build/d3-force.min.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"d3-collection": "1",
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
"devDependencies": {
|
||||
"eslint": "2",
|
||||
"package-preamble": "0.0",
|
||||
"rollup": "0.31",
|
||||
"rollup": "0.33",
|
||||
"tape": "4",
|
||||
"uglify-js": "2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user