grapher/package.js
2017-11-24 16:32:42 +02:00

86 lines
2.6 KiB
JavaScript

Package.describe({
name: 'cultofcoders:grapher',
version: '1.2.8_1',
// Brief, one-line summary of the package.
summary: 'Grapher makes linking collections easily. And fetching data as a graph.',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/cult-of-coders/grapher',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
});
Npm.depends({
'sift': '3.2.6',
'dot-object': '1.5.4',
});
Package.onUse(function (api) {
api.versionsFrom('1.3');
var packages = [
'ecmascript',
'underscore',
'promise',
'aldeed:simple-schema@1.5.3',
'matb33:collection-hooks@0.8.4',
'reywood:publish-composite@1.4.2',
'dburles:mongo-collection-instances@0.3.5',
'tmeasday:check-npm-versions@0.3.1',
'meteorhacks:aggregate@1.3.0',
'mongo'
];
api.use(packages);
api.mainModule('main.client.js', 'client');
api.mainModule('main.server.js', 'server');
});
Package.onTest(function (api) {
api.use('cultofcoders:grapher');
var packages = [
'ecmascript',
'underscore',
'matb33:collection-hooks@0.8.4',
'reywood:publish-composite@1.4.2',
'dburles:mongo-collection-instances@0.3.5',
'tmeasday:check-npm-versions@0.3.1',
'meteorhacks:aggregate@1.3.0',
'mongo'
];
api.use(packages);
api.use('tracker');
api.use([
'coffeescript@1.12.7_3',
'practicalmeteor:mocha@2.4.5_6',
'practicalmeteor:chai'
]);
// LINKS
api.addFiles('lib/links/tests/main.js', 'server');
// 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');
// 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');
});