-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
executable file
·83 lines (70 loc) · 2.35 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
Package.describe({
name: 'rgnevashev:memberships',
version: '1.0.0',
// Brief, one-line summary of the package.
summary: 'Memberships',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
});
Package.onUse(function(api) {
api.use('underscore', ['client', 'server']);
api.use('underscorestring:[email protected]');
api.use('coffeescript', ['client', 'server']);
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('raix:[email protected]');
api.use('aldeed:[email protected]');
api.use('aldeed:[email protected]');
api.use('[email protected]');
api.use('momentjs:[email protected]');
api.use('rgnevashev:[email protected]');
//api.imply('aldeed:simple-schema');
//api.imply('aldeed:collection2');
api.export('Memberships');
api.export('MembershipsClient', 'client');
api.export('MembershipsServer', 'server');
api.export('MembershipsSchema');
api.export([
'StripePaymentGateway',
], {testOnly: true});
api.addFiles([
'server/gateways/PaymentGateway.coffee',
'server/gateways/Stripe.coffee'
], 'server');
api.addFiles('both/MembershipsCommon.coffee', ['client', 'server']);
api.addFiles('server/MembershipsServer.coffee', 'server');
api.addFiles('client/MembershipsClient.coffee', 'client');
api.addFiles('both/init.coffee', ['client', 'server']);
api.addFiles([
'server/init.coffee',
'server/methods.coffee',
'server/publications.coffee'
], 'server');
api.addFiles([
'client/init.coffee',
'client/subscruptions.coffee',
'client/helpers.coffee'
], 'client');
api.addFiles('server/globals.js', 'server');
api.addFiles('client/globals.js', 'client');
});
Package.onTest(function(api) {
api.use('underscore');
api.use('check');
api.use('ecmascript');
api.use('tinytest');
api.use('test-helpers');
api.use('accounts-password');
api.use('rgnevashev:memberships');
api.addFiles('tests/define.js', 'server');
api.addFiles('tests/paymentGateways.js', 'server');
api.addFiles('tests/fixtures.js');
api.addFiles('tests/common.js');
api.addFiles('tests/subscribe.js', 'server');
});