mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 10:21:38 -04:00
This adds moment to perfect date/time sorting with tabulator!
This commit is contained in:
@@ -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.
|
||||
@@ -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) {
|
||||
}
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../moment.js
|
||||
@@ -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');
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
Tinytest.add('Moment.is', function (test) {
|
||||
test.ok(moment.isMoment(moment()), {message: 'simple moment object'});
|
||||
});
|
||||
Reference in New Issue
Block a user