-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.js
80 lines (66 loc) · 1.93 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
Package.describe({
summary: 'React Material UI components for accounts.',
version: '0.13.4_1',
name: 'qnub:accounts-react-material-ui',
git: 'https://github.com/qnub/meteor-accounts-react-material-ui.git',
});
Npm.depends({
'externalify': '0.1.0',
'react-tap-event-plugin': '0.2.1',
'material-ui': '0.13.4'
});
DEFAULT_LANGUAGES = ['ar', 'zh_cn', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es',
'es_ES', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'kh', 'ko', 'pl', 'pt', 'pt_PT', 'ro',
'ru', 'sk', 'sl', 'sv', 'tr', 'uk', 'vi', 'no_NB', 'nl', 'zh_tw', 'zh_hk'];
LANGUAGES = DEFAULT_LANGUAGES;
if(process.env.T9N_LANGUAGES) {
LANGUAGES = process.env.T9N_LANGUAGES.split(',');
}
FILES = [];
for (var i = 0; i < LANGUAGES.length; i++) {
FILES.push('t9n/' + LANGUAGES[i] + '.js');
}
Package.onUse(function(api, where) {
api.versionsFrom('[email protected]');
api.use([
'underscore',
'accounts-base',
'ecmascript',
'templating', // required to auto inslude oauth services forms
'[email protected]_1',
'cosmos:[email protected]',
'qnub:[email protected]'
]);
api.imply('accounts-base');
api.use('accounts-oauth', {weak: true});
api.use('accounts-password', {weak: true});
api.addFiles([
'style/style.css',
'lib/window.react.js'
], 'client');
api.addFiles(FILES);
// api.addAssets([
// 'lib/react-material-ui.browserify.options.json'
// ], [
// 'client',
// 'server'
// ]);
api.addFiles([
'server/user-services.js'
], ['server']);
api.addFiles([
'lib/react-material-ui.browserify.options.json',
'lib/react-material-ui.browserify.js',
'lib/helpers.js',
'lib/index.js',
'lib/login_session.js',
'components/display_name.jsx',
'components/service_config.jsx',
'components/login_service.jsx',
'components/login_services.jsx',
'components/login_form.jsx',
'components/login_formset.jsx',
'components/login_dialogs.jsx'
]);
});