-
Notifications
You must be signed in to change notification settings - Fork 86
/
package.js
81 lines (63 loc) · 2.44 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
Package.describe({
name: 'tap:i18n',
summary: 'A comprehensive internationalization solution for Meteor',
version: '2.0.1',
git: 'https://github.com/TAPevents/tap-i18n'
});
both = ['server', 'client'];
server = 'server';
client = 'client';
Package.onUse(function (api) {
api.versionsFrom("2.2.4");
api.use('[email protected]', both);
api.use('[email protected]', both);
api.use('isobuild:[email protected]', both);
api.use('raix:[email protected]', both);
api.use('meteorspark:[email protected]', both);
api.use('tracker', both);
api.use('session', client);
api.use('[email protected]', client);
api.use('[email protected]', client);
api.use("webapp", server);
// load TAPi18n
api.addFiles('lib/globals.js', both);
// load and init TAPi18next
api.addFiles('lib/tap_i18next/tap_i18next-1.7.3.js', both);
api.export('TAPi18next');
api.addFiles('lib/tap_i18next/tap_i18next_init.js', both);
api.addFiles('lib/tap_i18n/tap_i18n-helpers.coffee', both);
// We use the bare option since we need TAPi18n in the package level and
// coffee adds vars to all (so without bare all vars are in the file level)
api.addFiles('lib/tap_i18n/tap_i18n-common.coffee', server);
api.addFiles('lib/tap_i18n/tap_i18n-common.coffee', client, {bare: true});
api.addFiles('lib/tap_i18n/tap_i18n-server.coffee', server);
api.addFiles('lib/tap_i18n/tap_i18n-client.coffee', client, {bare: true});
api.addFiles('lib/tap_i18n/tap_i18n-init.coffee', server);
api.addFiles('lib/tap_i18n/tap_i18n-init.coffee', client, {bare: true});
api.export('TAPi18n');
});
Package.registerBuildPlugin({
name: 'tap-i18n-compiler',
npmDependencies: {
"node-json-minify": "0.1.3-a",
"yamljs": "0.2.4"
},
sources: [
'lib/globals.js',
'lib/plugin/etc/language_names.js',
'lib/plugin/compiler_configuration.coffee',
'lib/plugin/helpers/helpers.coffee',
'lib/plugin/helpers/load_json.coffee',
'lib/plugin/helpers/load_yml.coffee',
'lib/plugin/helpers/compile_step_helpers.coffee',
'lib/plugin/helpers/schema-cleaner.coffee',
'lib/plugin/compilers/share.coffee',
'lib/plugin/compilers/i18n.coffee',
'lib/plugin/compilers/project-tap.i18n.coffee',
'lib/plugin/compilers/package-tap.i18n.coffee',
'lib/plugin/compilers/i18n.generic_compiler.coffee',
'lib/plugin/compilers/i18n.json.coffee',
'lib/plugin/compilers/i18n.yml.coffee'
]
});