Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
Update to fbgraph v0.3.0 and find package name for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stevezhu committed Mar 11, 2015
1 parent b921ce1 commit a8029bb
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 36 deletions.
14 changes: 7 additions & 7 deletions .npm/package/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
A meteor package for [fbgraph](http://criso.github.io/fbgraph/).

Only compatible with Meteor v0.9.0 or higher

fbgraph v0.3.0
19 changes: 13 additions & 6 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
Npm.depends({'fbgraph': '0.2.11'});
Npm.depends({'fbgraph': '0.3.0'});

var path = Npm.require('path');
var argv = process.argv.slice(2);
var packageDirname;
if (argv[0] === 'test-packages') {
packageDirname = path.basename(path.resolve(process.argv[process.argv.length - 1]));
} else {
packageDirname = path.basename(process.cwd());
}

Package.describe({
summary: "Node.js module to access the Facebook graph api.",
version: "1.1.0",
version: "1.2.0",
git: "https://github.com/stevezhu/meteor-fbgraph.git"
});

Package.onUse(function(api) {
api.versionsFrom('[email protected]');

api.use('meteorhacks:[email protected]');
api.use('meteorhacks:[email protected]');

api.addFiles('fbgraph.js', 'server');
api.export('FBGraph', 'server');
Expand All @@ -20,6 +27,6 @@ Package.onTest(function(api) {
api.use([
'service-configuration'
]);
api.use('stevezhu:fbgraph');
api.use(packageDirname);
api.addFiles('tests/fbgraph_test.js');
});
23 changes: 0 additions & 23 deletions versions.json

This file was deleted.

0 comments on commit a8029bb

Please sign in to comment.