├── .gitignore ├── .gitmodules ├── export-moment.js ├── README.md ├── smart.json └── package.js /.gitignore: -------------------------------------------------------------------------------- 1 | .build* 2 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "lib/moment"] 2 | path = lib/moment 3 | url = https://github.com/timrwood/moment.git 4 | -------------------------------------------------------------------------------- /export-moment.js: -------------------------------------------------------------------------------- 1 | //This file exposes moment so that it works with Meteor 0.6.5's package system. 2 | if (typeof Package !== "undefined") { 3 | moment = this.moment; 4 | } 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Moment v2.5.1 for Meteor 2 | 3 | [Moment.js](http://momentjs.com/), a JavaScript date library for parsing, validating, manipulating, and formatting dates, packaged for Meteor. 4 | 5 | Installation 6 | ------------- 7 | 8 | `mrt add moment` 9 | 10 | Usage 11 | ------------- 12 | Just like the [moment docs](http://momentjs.com/docs/) tell you: 13 | 14 | `var oneMomentPlease = moment();` 15 | -------------------------------------------------------------------------------- /smart.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "moment", 3 | "description": "Moment.js, a JavaScript date library for parsing, validating, manipulating, and formatting dates, packaged for Meteor. See http://momentjs.com.", 4 | "homepage": "https://github.com/acreeger/meteor-moment", 5 | "author": "Adam Creeger (http://acree.gr)", 6 | "version": "2.5.1", 7 | "git": "https://github.com/acreeger/meteor-moment.git" 8 | } 9 | -------------------------------------------------------------------------------- /package.js: -------------------------------------------------------------------------------- 1 | Package.describe({ 2 | summary: "Moment.js, a JavaScript date library for parsing, validating, manipulating, and formatting dates, packaged for Meteor. See http://momentjs.com." 3 | }); 4 | 5 | Package.on_use(function (api, where) { 6 | if(api.export) { 7 | api.export('moment'); 8 | } 9 | where = where || ['client', 'server']; 10 | api.add_files('lib/moment/moment.js', where); 11 | api.add_files('export-moment.js', where); 12 | }); 13 | --------------------------------------------------------------------------------