forked from cult-of-coders/grapher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
executable file
·93 lines (75 loc) · 2.75 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Package.describe({
name: 'cultofcoders:grapher',
version: '1.3.16',
// 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',
});
Npm.depends({
sift: '3.2.6',
'dot-object': '1.5.4',
'lodash.clonedeep': '4.5.0',
'deep-extend': '0.5.0',
});
Package.onUse(function(api) {
api.versionsFrom('1.3');
var packages = [
'ecmascript',
'underscore',
'promise',
'check',
'reactive-var',
'mongo',
'matb33:[email protected]',
'reywood:[email protected]',
'dburles:[email protected]',
'peerlibrary:[email protected]',
'herteby:[email protected]',
];
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 = [
'random',
'ecmascript',
'underscore',
'matb33:[email protected]',
'reywood:[email protected]',
'dburles:[email protected]',
'herteby:[email protected]',
'mongo',
];
api.use(packages);
api.use('tracker');
api.use(['meteortesting:mocha']);
// 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');
// REACTIVE COUNTS
api.addFiles('lib/query/counts/testing/server.test.js', 'server');
api.addFiles('lib/query/counts/testing/client.test.js', 'client');
// NAMED QUERIES
api.addFiles('lib/namedQuery/testing/server.test.js', 'server');
api.addFiles('lib/namedQuery/testing/client.test.js', 'client');
// GRAPHQL
api.addFiles('lib/graphql/testing/index.js', 'server');
});