Commit e31c0fb2 authored by Mike Bostock's avatar Mike Bostock
Browse files

Add make rule for component.json.

parent 539a9da5
......@@ -5,7 +5,8 @@ GENERATED_FILES = \
d3.min.js \
src/format/format-localized.js \
src/time/format-localized.js \
bower.json
bower.json \
component.json
all: $(GENERATED_FILES)
......@@ -35,9 +36,9 @@ d3.min.js: d3.js
@rm -f $@
bin/uglify $< > $@
bower.json: bin/bower package.json
%.json: bin/% package.json
@rm -f $@
bin/bower > $@
bin/$* > $@
@chmod a-w $@
clean:
......
#!/usr/bin/env node
var fs = require("fs")
, package = require("../package.json")
var fs = require("fs"),
package = require("../package.json");
console.log(JSON.stringify({
"name": "d3",
......@@ -16,7 +16,5 @@ console.log(JSON.stringify({
],
"dependencies": {},
"development": {},
// component doesn't yet support multiple licenses
"license": package.licenses[0].type,
"license": package.licenses[0].type
}, null, 2));
......@@ -13,6 +13,7 @@
".travis.yml",
"Makefile",
"bin",
"component.json",
"d3.min.js",
"index-browserify.js",
"index.js",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment