-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.js
111 lines (85 loc) · 4.04 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Package.describe({
name: 'softbricks:user-management',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: '',
// 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.versionsFrom('1.0.3.1');
api.use(['templating', 'session'], 'client');
api.use(['accounts-password', 'underscore', 'check', 'tracker'], ['client', 'server']);
api.use(['useraccounts:core']);
api.use(['useraccounts:flow-routing']);
api.use(['aldeed:[email protected]']);
api.imply('aldeed:autoform');
api.use(['aldeed:[email protected]']);
api.imply('aldeed:simple-schema');
api.use(['aldeed:[email protected]']);
api.imply('aldeed:collection2');
api.use('ongoworks:[email protected]');
api.imply('ongoworks:security');
api.use('tap:[email protected]', ['client', 'server']);
api.use('softwarerero:[email protected]', ['client', 'server']);
api.use('email', ['server']);
api.use('matb33:[email protected]');
api.use('stevezhu:[email protected]');
api.use('jparker:[email protected]');
api.imply('jparker:gravatar');
api.use('simple:[email protected]');
api.imply('simple:reactive-method');
api.use('meteorhacks:[email protected]');
api.imply('meteorhacks:search-source');
api.use('alanning:[email protected]');
api.imply('alanning:roles');
// You must load your package's package-tap.i18n before you load any
// template
api.add_files('package-tap.i18n', ['client', 'server']);
// common
api.addFiles('lib/common/common.js', ['client', 'server']);
api.addFiles('lib/common/Users.js', ['client', 'server']);
api.addFiles('lib/common/AdditionalUserFields.js', ['client', 'server']);
api.addFiles(['lib/common/Roles.js'], ['client', 'server']);
api.addFiles(['lib/common/Groups.js'], ['server', 'client']);
api.addFiles(['lib/roles.js'], ['client', 'server']);
// server
api.addFiles('server/publications.js', 'server');
api.addFiles('server/methods.js', 'server');
api.addFiles('server/init.js', 'server');
api.addFiles('server/userSearch.js', 'server');
api.addFiles('server/rules.js', ['server']);
api.addFiles('server/security.js', ['server']);
// client
api.addFiles(['lib/core.js', 'lib/server.js'], 'server');
api.addFiles(['lib/userSearch.js'], 'client');
api.addFiles(['lib/core.js', 'lib/client.js'], 'client');
api.addFiles(['lib/templates/helpers.js'], 'client');
api.addFiles(['lib/templates/addUser.js', 'lib/router.js', 'lib/templates/editUser.js', 'lib/templates/userSearch.js'], 'client');
api.addFiles(['lib/templates/showUsers.js', 'lib/templates/showUser.js'], 'client');
api.addFiles(['lib/templates/userListItem.js']);
api.addFiles(['lib/templates/manageRoles.js', 'lib/templates/addRole.js', 'lib/templates/addGroupRole.js',
'lib/templates/addUserToGroupRole.js'], 'client');
// i18n files
api.addFiles(['i18n/user.de.i18n.json', 'i18n/user.en.i18n.json'], ['client', 'server']);
api.addFiles(['i18n/role.de.i18n.json', 'i18n/role.en.i18n.json'], ['client', 'server']);
api.addFiles(['i18n/group.de.i18n.json', 'i18n/group.en.i18n.json'], ['client', 'server']);
api.addFiles(['i18n/errors.de.i18n.json', 'i18n/errors.en.i18n.json'], ['client', 'server']);
api.addFiles(['i18n/actions.de.i18n.json', 'i18n/actions.en.i18n.json'], ['client', 'server']);
api.addFiles(['i18n/common.de.i18n.json', 'i18n/common.en.i18n.json'], ['client', 'server']);
api.export('UserManagementTemplates', ['client', 'server']);
api.export('UM', ['client', 'server']);
api.export('SchemaPlain', ['client', 'server']);
api.export('checkRights', ['server']);
api.export('__', ['client', 'server']);
api.export('UserSearch', ['client', 'server']);
api.export('AdditionalUserFields', ['client']);
});
// Package.onTest(function(api) {
// api.use('tinytest');
// api.use('softbricks:user-management');
// api.addFiles('softbricks:user-management-tests.js');
// });