forked from vazco/meteor-universe-i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
66 lines (54 loc) · 1.57 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
Package.describe({
name: 'universe:i18n',
version: '1.16.0',
summary: 'Lightweight i18n, YAML & JSON translation files, React component, incremental & remote loading',
git: 'https://github.com/vazco/meteor-universe-i18n'
});
var npmDependencies = {
'strip-json-comments': '2.0.1',
'js-yaml': '3.10.0'
};
Package.registerBuildPlugin({
name: 'UniverseI18n',
use: ['ecmascript', 'caching-compiler@1.1.9', 'underscore'],
sources: ['builder.js', 'lib/utilities.js'],
npmDependencies: npmDependencies
});
Npm.depends(npmDependencies);
Package.onUse(function (api) {
api.versionsFrom('1.5');
api.use([
'ddp',
'http',
'check',
'webapp',
'tracker',
'promise',
'ecmascript',
'underscore',
'isobuild:compiler-plugin@1.0.0'
]);
api.mainModule('lib/i18n.js');
api.addFiles([
'server/api.js',
'server/syncServerWithClient.js',
'server/handler.js'
], 'server');
api.addFiles([
'client/api.js'
], 'client');
api.export(['_i18n', 'i18n']);
});
Package.onTest(function(api) {
api.use([
'ecmascript',
'lmieulet:meteor-coverage@1.1.4',
'practicalmeteor:chai',
'practicalmeteor:mocha',
'practicalmeteor:sinon'
]);
api.use('universe:i18n');
api.addFiles(['tests/i18n.tests.js', 'tests/es-es.i18n.json', 'tests/fr-fr.i18n.yml', 'tests/it-it.i18n.yml']);
api.addFiles(['tests/i18n.tests.client.js'], 'client');
api.addFiles(['tests/i18n.tests.server.js'], 'server');
});