grapher/package.js

93 lines
2.7 KiB
JavaScript
Raw Permalink Normal View History

2016-09-14 16:04:08 +03:00
Package.describe({
2018-08-22 12:12:13 +03:00
name: 'cultofcoders:grapher',
2018-10-30 13:24:57 +02:00
version: '1.3.9_3',
2018-08-22 12:12:13 +03:00
// Brief, one-line summary of the package.
summary: 'Grapher is a data fetching layer on top of Meteor',
// 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',
2016-09-14 16:04:08 +03:00
});
2016-09-22 13:55:16 +03:00
Npm.depends({
2018-08-22 12:12:13 +03:00
sift: '3.2.6',
'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) {
2018-08-22 12:12:13 +03:00
api.versionsFrom('1.3');
var packages = [
'ecmascript',
'underscore',
'promise',
'check',
'reactive-var',
'mongo',
'matb33:collection-hooks@0.8.4',
'reywood:publish-composite@1.5.2',
'dburles:mongo-collection-instances@0.3.5',
'peerlibrary:subscription-scope@0.4.0',
2019-02-15 05:55:49 +02:00
'herteby:denormalize@0.6.5',
2018-08-22 12:12:13 +03:00
];
api.use(packages);
api.mainModule('main.client.js', 'client');
api.mainModule('main.server.js', 'server');
2016-09-14 16:04:08 +03:00
});
2018-03-20 17:06:51 +02:00
Package.onTest(function(api) {
2018-08-22 12:12:13 +03:00
api.use('cultofcoders:grapher');
2016-09-14 16:04:08 +03:00
2018-08-22 12:12:13 +03:00
var packages = [
'ecmascript',
'underscore',
'matb33:collection-hooks@0.8.4',
'reywood:publish-composite@1.5.2',
'dburles:mongo-collection-instances@0.3.5',
'herteby:denormalize@0.6.5',
'mongo',
];
2018-08-22 12:12:13 +03:00
api.use(packages);
api.use('tracker');
api.use(['meteortesting:mocha']);
2018-08-22 12:12:13 +03:00
// LINKS
api.addFiles('lib/links/tests/main.js', 'server');
2016-09-14 16:04:08 +03:00
2018-08-22 12:12:13 +03:00
// EXPOSURE
api.addFiles('lib/exposure/testing/server.js', 'server');
api.addFiles('lib/exposure/testing/client.js', 'client');
2018-08-22 12:12:13 +03:00
// QUERY
api.addFiles('lib/query/testing/bootstrap/index.js');
2018-08-22 12:12: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');
2018-08-22 12:12:13 +03:00
api.addFiles('lib/query/testing/server.test.js', 'server');
api.addFiles('lib/query/testing/client.test.js', 'client');
2018-08-22 12:12:13 +03:00
// 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');
2018-08-22 12:12:13 +03:00
// REACTIVE COUNTS
api.addFiles('lib/query/counts/testing/server.test.js', 'server');
api.addFiles('lib/query/counts/testing/client.test.js', 'client');
2017-11-25 14:45:31 +02:00
2018-08-22 12:12:13 +03:00
// NAMED QUERIES
api.addFiles('lib/namedQuery/testing/server.test.js', 'server');
api.addFiles('lib/namedQuery/testing/client.test.js', 'client');
2018-03-29 19:04:43 +03:00
2018-08-22 12:12:13 +03:00
// GRAPHQL
api.addFiles('lib/graphql/testing/index.js', 'server');
2016-09-14 16:04:08 +03:00
});