-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.js
30 lines (27 loc) · 1.04 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
Package.describe({
summary: "Timezone support for moment.js, packaged for Meteor. See http://momentjs.com/timezone.",
version: "0.2.1",
git: "https://github.com/acreeger/meteor-moment-timezone.git"
});
Package.on_use(function (api, where) {
where = where || ['client', 'server']
var momentPackageName = !!Package.onUse ? "mrt:[email protected]" : "moment"
api.use(momentPackageName, where);
if (api.imply) {
api.imply(momentPackageName, where);
}
api.add_files('require-shim.js', where);
api.add_files('lib/moment-timezone/moment-timezone.js', where);
api.add_files('lib/moment-timezone-data/moment-timezone-data.js', where);
api.add_files('revert-require-shim.js', where);
});
if (Package.on_test) {
Package.on_test(function (api) {
if (Package.onTest) {
api.use(['mrt:[email protected]', 'tinytest', 'test-helpers'], ['client', 'server']);
} else {
api.use(['moment-timezone', 'tinytest', 'test-helpers'], ['client', 'server']);
}
api.add_files('test-mrt:moment-timezone.js', ['client', 'server']);
});
}