forked from possibilities/meteor-moment
-
Notifications
You must be signed in to change notification settings - Fork 21
/
package.js
25 lines (23 loc) · 778 Bytes
/
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
Package.describe({
summary: "Moment.js, a JavaScript date library for dates, packaged for Meteor. See http://momentjs.com.",
version: "2.8.1",
git: "https://github.com/acreeger/meteor-moment.git"
});
Package.on_use(function (api, where) {
where = where || ['client', 'server'];
if(api.export) {
api.export('moment', where);
}
api.add_files('lib/moment/moment.js', where);
api.add_files('export-moment.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', 'tinytest', 'test-helpers'], ['client', 'server']);
}
api.add_files('test-mrt:moment.js', ['client', 'server']);
});
}