forked from TAPevents/tap-i18n
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.js
executable file
·123 lines (77 loc) · 2.41 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
Package.describe( {
name: 'tap:i18n',
summary: 'A comprehensive internationalization solution for Meteor',
version: '2.0.0',
git: 'https://github.com/TAPevents/tap-i18n'
});
Package.onUse( function( api ){
api.versionsFrom( 'METEOR@1.3.5.1' );
Npm.depends({
'i18next': '3.4.1'
});
api.use( 'isobuild:compiler-plugin@1.0.0' );
api.use([
'ecmascript',
'modules',
'es5-shim',
'promise',
'meteor-base',
'http'
], [ 'server', 'client' ]);
api.use([
'webapp'
], [ 'server' ]);
api.use([
'tracker',
'session',
'jquery',
'blaze-html-templates'
], [ 'client' ]);
api.addFiles([
], [ 'server', 'client' ]);
api.addFiles([
], [ 'server' ]);
api.addFiles([
], [ 'client' ]);
api.export([
], [ 'server', 'client' ]);
api.mainModule( 'exports_server.js', 'server' );
api.mainModule( 'exports_client.js', 'client' );
});
Package.registerBuildPlugin({
name: 'tap-i18n-compiler',
use: [
'ecmascript',
'modules',
'es5-shim',
'promise',
'caching-compiler',
'babel-compiler',
'check@1.2.3',
'blaze-html-templates',
// NOTE: the unordered flag in simple-schema < v2 breaks the dependency here, so we
// need to add mdg:validation-error explicitly before simple-schema
'mdg:validation-error',
'aldeed:simple-schema@1.5.3',
],
npmDependencies: {
'node-json-minify': '1.0.0',
'yamljs': '0.2.8'
},
sources: [
'./shared/etc/config-defaults.js',
'./shared/etc/language-names.js',
'./plugin/schemas/project-tap.i18n.js',
'./plugin/schemas/package-tap.i18n.js',
'./plugin/code-templates/configuration.js',
'./plugin/code-templates/translation.js',
'./plugin/compilers/lib/translation-utils.js',
'./plugin/compilers/project-tap.i18n.js',
'./plugin/compilers/package-tap.i18n.js',
'./plugin/compilers/i18n.js',
'./plugin/compilers/i18n.json.js',
'./plugin/compilers/i18n.yml.js',
'./plugin/compilers/tapi18n.js',
'./plugin/extensions/tapi18n.js',
]
});