forked from TAPevents/tap-i18n
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.js
80 lines (62 loc) · 2.4 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({
name: 'tap:i18n',
summary: 'A comprehensive internationalization solution for Meteor',
version: '1.8.1',
git: 'https://github.com/TAPevents/tap-i18n'
});
both = ['server', 'client'];
server = 'server';
client = 'client';
Package.onUse(function (api) {
api.versionsFrom('0.9.4');
api.use('coffeescript', both);
api.use('underscore', both);
api.use('meteor', both);
api.use('raix:[email protected]', both);
api.use('meteorspark:[email protected]', both);
api.use('tracker', both);
api.use('session', client);
api.use('jquery', client);
api.use('templating', client);
api.use('cfs:[email protected]', server);
// load TAPi18n
api.add_files('lib/globals.js', both);
// load and init TAPi18next
api.add_files('lib/tap_i18next/tap_i18next-1.7.3.js', both);
api.export('TAPi18next');
api.add_files('lib/tap_i18next/tap_i18next_init.js', both);
api.add_files('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.add_files('lib/tap_i18n/tap_i18n-common.coffee', server);
api.add_files('lib/tap_i18n/tap_i18n-common.coffee', client, {bare: true});
api.add_files('lib/tap_i18n/tap_i18n-server.coffee', server);
api.add_files('lib/tap_i18n/tap_i18n-client.coffee', client, {bare: true});
api.add_files('lib/tap_i18n/tap_i18n-init.coffee', server);
api.add_files('lib/tap_i18n/tap_i18n-init.coffee', client, {bare: true});
api.export('TAPi18n');
});
Package.registerBuildPlugin({
name: 'tap-i18n-compiler',
use: ['coffeescript', 'underscore', 'aldeed:[email protected]', '[email protected]', 'templating'],
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/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'
]
});