d3-timer
v0.3.1 d3 timer transition animation requestAnimationFrame setTimeout setInterval
pretest
mkdir -p build && node -e 'process.stdout.write("var version = \"" + require("./package.json").version + "\"; export * from \"../index\"; export {version};");' > build/bundle.js && rollup -f umd -n d3_timer -o build/d3-timer.js -- build/bundle.js
test
faucet `find test -name '*-test.js'` && eslint index.js src
prepublish
npm run test && uglifyjs build/d3-timer.js -c -m -o build/d3-timer.min.js && rm -f build/d3-timer.zip && zip -j build/d3-timer.zip -- LICENSE README.md build/d3-timer.js build/d3-timer.min.js
postpublish
VERSION=`node -e 'console.log(require("./package.json").version)'`; git push && git tag -am "Release $VERSION." v${VERSION} && git push --tags && cp build/d3-timer.js ../d3.github.com/d3-timer.v0.3.js && cp build/d3-timer.min.js ../d3.github.com/d3-timer.v0.3.min.js && cd ../d3.github.com && git add d3-timer.v0.3.js d3-timer.v0.3.min.js && git commit -m "d3-timer ${VERSION}" && git push
npm i [email protected]
Metadata
- BSD-3-Clause
- Whatever
- Mike Bostock
- released 2/10/2016