grapher/package.js

88 lines
2.6 KiB
JavaScript
Raw Normal View History

2016-09-14 16:04:08 +03:00
Package.describe({
name: 'cultofcoders:grapher',
2018-03-20 17:06:51 +02:00
version: '1.3.3',
2016-09-14 16:04:08 +03:00
// Brief, one-line summary of the package.
2017-12-01 12:30:17 +02:00
summary: 'Grapher is a data fetching layer on top of Meteor',
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.
2018-03-20 17:06:51 +02:00
documentation: 'README.md',
2016-09-14 16:04:08 +03:00
});
2016-09-22 13:55:16 +03:00
Npm.depends({
2018-03-20 17:06:51 +02:00
sift: '3.2.6',
2016-11-18 18:33:21 +02:00
'dot-object': '1.5.4',
'lodash.clonedeep': '4.5.0',
'deep-extend': '0.5.0',
2016-09-22 13:55:16 +03:00
});
2018-03-20 17:06:51 +02: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',
2017-03-02 11:35:27 +02:00
'promise',
'check',
2017-11-25 14:45:31 +02:00
'reactive-var',
'mongo',
'matb33:collection-hooks@0.8.4',
'reywood:publish-composite@1.5.2',
2016-09-16 19:22:12 +03:00
'dburles:mongo-collection-instances@0.3.5',
2017-11-26 17:03:43 +02:00
'herteby:denormalize@0.6.5',
2016-09-14 16:04:08 +03:00
];
api.use(packages);
api.mainModule('main.client.js', 'client');
api.mainModule('main.server.js', 'server');
});
2018-03-20 17:06:51 +02:00
Package.onTest(function(api) {
2016-09-14 16:04:08 +03:00
api.use('cultofcoders:grapher');
var packages = [
'ecmascript',
'underscore',
'matb33:collection-hooks@0.8.4',
2017-11-26 23:42:27 +02:00
'reywood:publish-composite@1.5.2',
'dburles:mongo-collection-instances@0.3.5',
2017-11-26 17:03:43 +02:00
'herteby:denormalize@0.6.5',
2018-03-20 17:06:51 +02:00
'mongo',
];
api.use(packages);
2016-09-14 16:04:08 +03:00
api.use('tracker');
2018-03-20 17:06:51 +02:00
api.use(['cultofcoders:mocha', 'practicalmeteor:chai']);
2016-09-14 16:04:08 +03:00
// 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.
2017-11-25 14:50:51 +02:00
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');
2017-11-25 14:45:31 +02:00
// REACTIVE COUNTS
api.addFiles('lib/query/counts/testing/server.test.js', 'server');
api.addFiles('lib/query/counts/testing/client.test.js', 'client');
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
});