forked from cult-of-coders/grapher
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.js
86 lines (70 loc) · 2.63 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
Package.describe({
name: 'cultofcoders:grapher',
version: '1.2.7_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:[email protected]',
'aldeed:[email protected]',
'matb33:[email protected]',
'reywood:[email protected]',
'dburles:[email protected]',
'tmeasday:[email protected]',
'meteorhacks:[email protected]',
'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',
'aldeed:[email protected]',
'aldeed:[email protected]',
'matb33:[email protected]',
'reywood:[email protected]',
'dburles:[email protected]',
'tmeasday:[email protected]',
'meteorhacks:[email protected]',
'mongo'
];
api.use(packages);
api.use('tracker');
api.use('practicalmeteor:mocha');
api.use('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');
});