forked from okland/accounts-phone
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.js
50 lines (45 loc) · 1.86 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
Package.describe({
name : 'veeramarni:accounts-phone',
version : '0.0.22',
// Brief, one-line summary of the package.
summary : 'A login service based on mobile phone number, For Meteor.',
// URL to the Git repository containing the source code for this package.
git : 'https://github.com/veeramarni/accounts-phone',
// 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({
"phone" : "1.0.3",
"twilio" : "1.10.0",
"stream-buffers": "0.2.5"
});
Package.onUse(function (api) {
api.use('npm-bcrypt@=0.7.8_2', 'server');
api.use('[email protected]', ['client', 'server']);
// Export Accounts (etc) to packages using this one.
api.imply('[email protected]', ['client', 'server']);
api.use('[email protected]', ['client', 'server']);
api.use('[email protected]', ['client', 'server']);
api.use('[email protected]', ['server']);
api.use('[email protected]', ['server']);
api.use('[email protected]', 'server');
api.use('[email protected]', 'server');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]', ['client', 'server']);
api.addFiles('sms_server.js', 'server');
api.addFiles('phone_server.js', 'server');
api.addFiles('phone_client.js', 'client');
api.export('SMS', 'server');
api.export('SMSTest', 'server', {testOnly: true});
});
Package.onTest(function (api) {
api.use(['okland:accounts-phone', 'tinytest', 'test-helpers', 'tracker',
'accounts-base', 'random', 'underscore', 'check',
'ddp']);
api.addFiles('phone_tests_setup.js', 'server');
api.addFiles('phone_tests.js', ['client', 'server']);
api.addFiles('sms_tests_setup.js', 'server');
api.addFiles('sms_tests.js', 'client');
});