-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.js
38 lines (29 loc) · 1.48 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
Package.describe({
summary : "Extensible User Admin UI for Meteor"
});
Package.on_use(function(api) {
// these two core packages have to be referenced as of Meteor 0.6.5
api.use('standard-app-packages', ['client', 'server']);
// other packages used
api.use('jquery', 'client');
api.use('bootstrap', 'client');
api.use('jqbootstrapvalidation', 'client');
api.use('roles', ['client', 'server']);
var path = Npm.require('path');
api.add_files(path.join('common', 'user-helpers.js'), ['client', 'server']);
api.add_files(path.join('common', 'useradmin-collections.js'), ['client', 'server']);
api.add_files(path.join('dialogs', 'deleteuser.html'), 'client');
api.add_files(path.join('dialogs', 'deleteuser.js'), 'client');
api.add_files(path.join('dialogs', 'edituser.html'), 'client');
api.add_files(path.join('dialogs', 'edituser.js'), 'client');
api.add_files(path.join('dialogs', 'infouser.html'), 'client');
api.add_files(path.join('dialogs', 'infouser.js'), 'client');
api.add_files(path.join('templates', 'adminusers.html'), 'client');
api.add_files(path.join('templates', 'adminusers.js'), 'client');
api.add_files(path.join('methods', 'adminusermethods.js'), 'server');
// these exports should really have been done as UserAdmin.* methods :-(
api.export && api.export('createUserAdminRoles', 'server');
api.export && api.export('bounceNonUserAdmin', 'client');
api.export && api.export('displayName');
api.export && api.export('contactEmail');
});