Skip to content

Commit

Permalink
Merge branch 'meteor-integration' of https://github.com/MeteorPackagi…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 8, 2015
2 parents aa8605b + 31c6997 commit 7edaa2a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ GENERATED_FILES = \
d3.js \
d3.min.js \
bower.json \
component.json
component.json \
package.js

all: $(GENERATED_FILES)

Expand Down Expand Up @@ -31,5 +32,10 @@ d3.min.js: d3.js bin/uglify
bin/$* > $@
@chmod a-w $@

package.js: bin/meteor package.json
@rm -f $@
bin/meteor > package.js
@chmod a-w $@

clean:
rm -f -- $(GENERATED_FILES)
20 changes: 20 additions & 0 deletions bin/meteor
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

var fs = require("fs"),
package = require("../package.json");

console.log(
"// Package metadata for Meteor.js.\n" +
"\n" +
"Package.describe({\n" +
" name: \"d3js:d3\", // http://atmospherejs.com/d3js/d3\n" +
" summary: \"D3 (official): " + package.description + "\",\n" +
" version: \"" + package.version + "\",\n" +
" git: \"https://github.com/mbostock/d3.git\"\n" +
"});\n" +
"\n" +
"Package.onUse(function(api) {\n" +
" api.versionsFrom([\"METEOR@1.0\"]);\n" +
" api.addFiles(\"d3.js\", \"client\");\n" +
"});"
);
13 changes: 13 additions & 0 deletions package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Package metadata for Meteor.js.

Package.describe({
name: "d3js:d3", // http://atmospherejs.com/d3js/d3
summary: "D3 (official): A JavaScript visualization library for HTML and SVG.",
version: "3.5.4",
git: "https://github.com/mbostock/d3.git"
});

Package.onUse(function(api) {
api.versionsFrom(["METEOR@1.0"]);
api.addFiles("d3.js", "client");
});

0 comments on commit 7edaa2a

Please sign in to comment.