-
Notifications
You must be signed in to change notification settings - Fork 32
/
package.js
62 lines (56 loc) · 1.53 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
Package.describe({
name: 'universe:i18n',
version: '3.0.1',
summary:
'Lightweight i18n, YAML & JSON translation files, string interpolation, incremental & remote loading',
git: 'https://github.com/vazco/meteor-universe-i18n.git',
documentation: './ATMOSPHERE.md',
});
const npmDependencies = {
'js-yaml': '4.1.0',
'strip-json-comments': '3.1.1',
};
Npm.depends(npmDependencies);
Package.registerBuildPlugin({
name: 'universe:i18n',
use: ['[email protected]', 'tracker', 'typescript'],
sources: [
'source/common.ts',
'source/compiler.ts',
'source/utils.ts',
'source/code-generators.ts',
],
npmDependencies,
});
Package.onUse(function (api) {
api.versionsFrom(['3.0']);
api.use([
'check',
'ddp',
'fetch',
'isobuild:[email protected]',
'promise',
'tracker',
'typescript',
'webapp',
'zodern:[email protected]',
]);
api.mainModule('source/client.ts', 'client');
api.mainModule('source/server.ts', 'server');
api.export(['i18n', '_i18n']);
});
Package.onTest(function (api) {
api.use(['meteortesting:mocha', 'typescript', 'universe:i18n']);
api.addFiles([
'tests/data/de/ch.i18n.yml',
'tests/data/en_gb.i18n.json',
'tests/data/es-es.i18n.json',
'tests/data/fr.i18n.yml',
'tests/data/it-it.i18n.yml',
'tests/data/nest/el/y.i18n.yml',
'tests/data/pl-pl/x.i18n.yml',
'tests/data/z.i18n.yml',
]);
api.addFiles(['tests/client.ts', 'tests/common.ts'], 'client');
api.addFiles(['tests/server.ts', 'tests/common.ts'], 'server');
});