forked from lorensr/roles-restricted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
60 lines (50 loc) · 1.67 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
Package.describe({
name: 'share911:roles-restricted',
version: '0.2.0',
summary: 'Adds restricted-access state and autologin links to alanning:roles',
git: 'https://github.com/Share911/roles-restricted.git'
});
Package.onUse(function(api) {
api.versionsFrom('2.3.6');
api.use(['ecmascript',
'underscore',
'accounts-base',
'tracker',
'check',
'reactive-var',
'random',
'ddp',
'pathable:unblock@1.1.0',
'share911:login-links@0.1.4',
'alanning:roles@1.2.15'])
api.export('Roles');
api.addFiles(['common/roles-restricted.js',
'common/goog.math.ExponentialBackoff.js',
'common/roles_overwrites.js']);
api.addFiles(['server/roles-restricted.js',
'server/connectionLogin.js',
'server/restrictedAccessToken.js',
'server/loginHooks.js'], 'server');
api.addFiles(['client/roles-restricted.js',
'client/templateHelpers.js',
'client/loginHooks.js'], 'client');
});
Package.onTest(function(api) {
api.use([
'jquery',
'ecmascript',
'meteor-base',
'accounts-password',
'share911:roles-restricted',
'meteortesting:mocha',
'practicalmeteor:chai',
])
api.addFiles(['tests/helpers.js'])
api.addFiles(['tests/server/helpers.js',
'tests/server/determineRoles.js'], 'server');
api.addFiles(['tests/client/helpers.js',
'tests/client/restrictedLogin.js',
'tests/client/userIsInRole.js',
'tests/client/loginHooks.js',
'tests/client/onResume.js'], 'client');
});