This adds moment to perfect date/time sorting with tabulator!

This commit is contained in:
Jonathan Rosenbaum
2017-10-30 03:01:55 +00:00
parent f15d312e5a
commit 4bb9b043ad
568 changed files with 166883 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
Packaging [Moment](momentjs.org) for [Meteor.js](http://meteor.com).
# Issues
If you encounter an issue while using this package, please CC @dandv when you file it in this repo.
+6
View File
@@ -0,0 +1,6 @@
// moment.js makes `moment` global on the window (or global) object, while Meteor expects a file-scoped global variable
moment = this.moment;
try {
delete this.moment;
} catch (e) {
}
+1
View File
@@ -0,0 +1 @@
../moment.js
+27
View File
@@ -0,0 +1,27 @@
// package metadata file for Meteor.js
'use strict';
var packageName = 'momentjs:moment'; // https://atmospherejs.com/momentjs/moment
Package.describe({
name: packageName,
summary: 'Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging',
version: '2.19.1',
git: 'https://github.com/moment/moment.git'
});
Package.onUse(function (api) {
api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0', 'METEOR@1.2']);
api.export('moment');
api.addFiles([
'moment.js',
'export.js'
]);
});
Package.onTest(function (api) {
api.use(packageName);
api.use('tinytest');
api.addFiles('test.js');
});
+5
View File
@@ -0,0 +1,5 @@
'use strict';
Tinytest.add('Moment.is', function (test) {
test.ok(moment.isMoment(moment()), {message: 'simple moment object'});
});