Skip to content

Commit

Permalink
Generate anonymous AMD.
Browse files Browse the repository at this point in the history
Also update Rollup. Related d3/d3#2725.
  • Loading branch information
mbostock committed Jan 29, 2016
1 parent 75d2872 commit 7f024d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-time-format",
"version": "0.3.0",
"version": "0.3.1",
"description": "A JavaScript time formatter and parser inspired by strftime and strptime.",
"keywords": [
"d3",
Expand All @@ -22,16 +22,17 @@
"url": "https://github.com/d3/d3-time-format.git"
},
"scripts": {
"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 -g d3-time:d3_time -u d3-time-format -n d3_time_format -o build/d3-time-format.js -- build/bundle.js",
"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 -g d3-time:d3_time -n d3_time_format -o build/d3-time-format.js -- build/bundle.js",
"test": "TZ=America/Los_Angeles faucet `find test -name '*-test.js'` && eslint index.js src",
"prepublish": "npm run test && uglifyjs build/d3-time-format.js -c -m -o build/d3-time-format.min.js && rm -f build/d3-time-format.zip && zip -j build/d3-time-format.zip -- LICENSE README.md build/d3-time-format.js build/d3-time-format.min.js"
"prepublish": "npm run test && uglifyjs build/d3-time-format.js -c -m -o build/d3-time-format.min.js && rm -f build/d3-time-format.zip && zip -j build/d3-time-format.zip -- LICENSE README.md build/d3-time-format.js build/d3-time-format.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-time-format.js ../d3.github.com/d3-time-format.v0.3.js && cp build/d3-time-format.min.js ../d3.github.com/d3-time-format.v0.3.min.js && cd ../d3.github.com && git add d3-time-format.v0.3.js d3-time-format.v0.3.min.js && git commit -m \"d3-time-format ${VERSION}\" && git push"
},
"dependencies": {
"d3-time": "~0.2.0"
},
"devDependencies": {
"faucet": "0.0",
"rollup": "0.20.5",
"rollup": "0.25",
"tape": "4",
"uglify-js": "2"
}
Expand Down

0 comments on commit 7f024d3

Please sign in to comment.