-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.js
55 lines (48 loc) · 1.2 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
Package.describe({
name: "aldeed:plans",
summary: "Wrapper for managing subscription plans tracking with pluggable external services",
version: "0.0.2",
git: "https://github.com/aldeed/meteor-plans"
});
Package.onUse(function(api) {
api.export('AppPlans');
api.export('Utility', {testOnly: true});
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.addFiles([
'both/utility.js',
'both/plans.js',
'both/add.js',
'both/get.js',
'both/has.js',
'both/hasAny.js',
'both/hasAccess.js',
'both/list.js',
'both/remove.js',
'both/set.js',
'both/sync.js',
'both/endDate.js'
], ['client', 'server']);
api.addFiles('client/plans.js', 'client');
api.addFiles([
'server/utility.js',
'server/plans.js',
'server/methods.js'
], 'server');
});
Package.onTest(function(api) {
api.use('aldeed:plans');
api.use('accounts-password');
api.use('tracker');
api.use('tinytest');
api.addFiles([
'tests/plans.js',
'tests/emailPlans.js',
'tests/userPlans.js'
], ['client', 'server']);
});