Skip to content

Commit

Permalink
Replace Makefile with package.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 11, 2016
1 parent 18dd2b9 commit 0ac5903
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 48 deletions.
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
bower.json -diff merge=ours
component.json -diff merge=ours
d3.js -diff merge=ours
d3.min.js -diff merge=ours
package.js -diff merge=ours
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
_site
node_modules
.DS_Store
d3.zip
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ test/
lib/
.DS_Store
_site
d3.zip
44 changes: 0 additions & 44 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"bin",
"component.json",
"composer.json",
"d3.zip",
"index.js",
"lib",
"node_modules",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
"vows": "0.8"
},
"scripts": {
"test": "vows; echo"
"test": "vows && echo",
"prepublish": "npm test && rm -f component.json package.js src/start.js d3.js d3.min.js d3.zip && bin/start > src/start.js && bin/component > component.json && bin/meteor > package.js && smash src/d3.js | uglifyjs - -b indent-level=2 -o d3.js && bin/uglify d3.js > d3.min.js && chmod a-w d3.js d3.min.js component.json package.js && zip d3.zip LICENSE d3.js d3.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 -v d3.js ../d3.github.com/d3.v3.js && cp -v d3.min.js ../d3.github.com/d3.v3.min.js && cd ../d3.github.com && git add d3.v3.js d3.v3.min.js && git commit -m \"d3 ${VERSION}\" && git push"
},
"license": "BSD-3-Clause"
}

0 comments on commit 0ac5903

Please sign in to comment.