grapher/package.js

72 lines
2.2 KiB
JavaScript
Raw Normal View History

2016-09-14 16:04:08 +03:00
Package.describe({
name: 'cultofcoders:grapher',
version: '1.1.10',
2016-09-14 16:04:08 +03:00
// Brief, one-line summary of the package.
2016-09-23 13:41:13 +03:00
summary: 'Grapher makes linking collections easily. And fetching data as a graph.',
2016-09-14 16:04:08 +03:00
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/cult-of-coders/grapher',
2016-09-14 16:04:08 +03:00
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
});
2016-09-22 13:55:16 +03:00
Npm.depends({
'sift': '3.2.6'
});
2016-09-14 16:04:08 +03:00
Package.onUse(function (api) {
2016-09-15 09:14:15 +03:00
api.versionsFrom('1.3');
2016-09-14 16:04:08 +03:00
var packages = [
'ecmascript',
'underscore',
'aldeed:simple-schema@1.5.3',
2016-09-14 16:04:08 +03:00
'aldeed:collection2@2.10.0',
'matb33:collection-hooks@0.8.4',
'reywood:publish-composite@1.4.2',
2016-09-16 19:22:12 +03:00
'dburles:mongo-collection-instances@0.3.5',
2016-09-22 13:55:16 +03:00
'tmeasday:check-npm-versions@0.3.1',
2016-09-21 18:33:50 +03:00
'meteorhacks:aggregate@1.3.0',
2016-09-14 16:04:08 +03:00
'mongo'
];
api.use(packages);
api.imply(packages);
api.mainModule('main.client.js', 'client');
api.mainModule('main.server.js', 'server');
});
Package.onTest(function (api) {
api.use('cultofcoders:grapher');
api.use('ecmascript');
api.use('tracker');
2016-09-14 16:04:08 +03:00
api.use('practicalmeteor:mocha');
api.use('practicalmeteor:chai');
// LINKS
api.addFiles('lib/links/tests/main.js', 'server');
2016-09-14 16:04:08 +03:00
// EXPOSURE
api.addFiles('lib/exposure/testing/server.js', 'server');
api.addFiles('lib/exposure/testing/client.js', 'client');
// QUERY
api.addFiles('lib/query/testing/bootstrap/index.js');
2016-09-23 13:41:13 +03:00
// When you play with tests you should comment this to make tests go faster.
api.addFiles('lib/query/testing/bootstrap/fixtures.js', 'server');
api.addFiles('lib/query/testing/server.test.js', 'server');
api.addFiles('lib/query/testing/client.test.js', 'client');
// NAMED QUERY
api.addFiles('lib/namedQuery/testing/bootstrap/both.js');
api.addFiles('lib/namedQuery/testing/bootstrap/client.js', 'client');
api.addFiles('lib/namedQuery/testing/bootstrap/server.js', 'server');
api.addFiles('lib/namedQuery/testing/server.test.js', 'server');
api.addFiles('lib/namedQuery/testing/client.test.js', 'client');
2016-09-14 16:04:08 +03:00
});