-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.js
More file actions
80 lines (71 loc) · 2.09 KB
/
package.js
File metadata and controls
80 lines (71 loc) · 2.09 KB
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
Package.describe({
name: 'nachocodoner:reactive-publish',
version: '1.1.1',
summary: 'Reactive publish for Meteor with async support',
git: 'https://github.com/nachocodoner/meteor-reactive-publish',
documentation: 'README.md',
});
Package.onUse(function (api) {
api.versionsFrom(['3.0.1']);
api.use([
'ecmascript',
'mongo',
'minimongo',
'tracker',
'reactive-var',
'zodern:types@1.0.13',
]);
// Export the AsyncTracker and ReactiveVarAsync
api.export('AsyncTracker');
api.export('ReactiveVarAsync');
// Add the files for client and server
api.addFiles(
[
'lib/ReactiveAsync/AsyncTracker.js',
'lib/ReactiveAsync/ReactiveVarAsync.js',
'lib/ReactiveAsync/ComputedField.js',
'lib/ReactiveAsync/DataLookup.js',
'lib/ReactiveData/ReactiveData.js',
],
['client', 'server']
);
// Add the files for client only
api.addFiles(['lib/ReactiveAsync/ClientAsyncContext.js'], 'client');
// Add the files for server
api.addFiles(
[
'lib/ReactiveMongo/ReactiveMongoServer.js',
'lib/ReactivePublishServer.js',
],
'server'
);
// Add the main module for the server
api.mainModule('main.js', ['client', 'server']);
});
Package.onTest(function (api) {
api.use([
'ecmascript',
'reactive-var',
'insecure',
'random',
'check',
'jquery',
]);
api.use(['accounts-base', 'accounts-password']);
api.use(['tinytest', 'test-helpers']);
api.use('nachocodoner:reactive-publish');
// Add the test files for server
api.addFiles(['lib/ReactiveMongo/ReactiveMongoServer.tests.js'], ['server']);
// Add the test files for server and client
api.addFiles([
'lib/ReactiveAsync/AsyncTracker.tests.js',
'lib/ReactiveAsync/ReactiveVarAsync.tests.js',
'lib/ReactiveAsync/ComputedField.tests.js',
'lib/ReactiveAsync/DataLookup.tests.js',
'lib/ReactiveAsync/ReactiveAsyncShowcase.tests.js',
'lib/ReactivePublish.tests.js',
'lib/ReactivePublishVsNonReactive.tests.js',
'lib/ReactiveData/ReactiveData.tests.js',
'lib/ReactiveData/ReactiveDataShowcase.tests.js',
]);
});