-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Expand file tree
/
Copy pathpackage.js
More file actions
51 lines (42 loc) · 1.24 KB
/
package.js
File metadata and controls
51 lines (42 loc) · 1.24 KB
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
Package.describe({
name: 'rocketchat:ldap',
version: '0.0.1',
summary: 'Accounts login handler for LDAP using ldapjs from npm',
git: 'https://github.com/rocketchat/rocketchat-ldap'
});
Npm.depends({
ldapjs: "0.7.1",
});
// Loads all i18n.json files into tapi18nFiles
var _ = Npm.require('underscore');
var fs = Npm.require('fs');
tapi18nFiles = _.compact(_.map(fs.readdirSync('packages/rocketchat-ldap/i18n'), function(filename) {
if (fs.statSync('packages/rocketchat-ldap/i18n/' + filename).size > 16) {
return 'i18n/' + filename;
}
}));
Package.onUse(function(api) {
api.versionsFrom('1.0.3.1');
// Commom
api.use('yasaricli:slugify');
api.use('coffeescript');
// Client
api.use('templating', 'client');
// Server
api.use('accounts-base', 'server');
api.use('accounts-password', 'server');
// Common
// TAP
api.addFiles('package-tap.i18n');
// Client
api.addFiles('ldap_client.js', 'client');
// Server
api.addFiles('ldap_server.js', 'server');
api.addFiles('config_server.coffee', 'server');
api.addFiles(tapi18nFiles);
api.export('LDAP', 'server');
api.export('LDAP_DEFAULTS', 'server');
api.export('MeteorWrapperLdapjs');
});