sauce_connect.log
.sauce-labs.creds
npm-debug.log
+.build*
[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url]
-A lightweight javascript date library for parsing, validating, manipulating, and formatting dates.
+A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.
## [Documentation](http://momentjs.com/docs/)
--- /dev/null
+Package.describe({
+ name: 'moment:moment',
+ summary: 'Moment.js: parse, validate, manipulate, and display dates - official Meteor packaging',
+ version: '2.8.4',
+ git: 'https://github.com/moment/moment.git'
+});
+
+Package.onUse(function (api) {
+ api.versionsFrom('0.9.0');
+ api.addFiles([
+ 'moment.js'
+ ], ['client', 'server']
+ );
+});
+
+Package.onTest(function (api) {
+ api.use('moment', ['client', 'server']);
+ api.use('tinytest', ['client', 'server']);
+
+ api.addFiles('meteor/test.js', ['client', 'server']);
+});
--- /dev/null
+# Publish package on Meteor's Atmosphere.js
+
+# Make sure Meteor is installed, per https://www.meteor.com/install
+type meteor >/dev/null 2>&1 || { curl https://install.meteor.com/ | sh; }
+
+# sanity check: make sure we're in the root directory of the checkout
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+cd DIR/..
+
+# move away the package.js for Dojo
+mv package.js package.dojo
+cp meteor/package.js ./
+
+# publish and restore the Dojo package.js
+meteor publish
+mv package.dojo package.js
--- /dev/null
+# Test Meteor package before publishing to Atmosphere.js
+
+# Make sure Meteor is installed, per https://www.meteor.com/install
+type meteor >/dev/null 2>&1 || { curl https://install.meteor.com/ | sh; }
+
+# sanity check: make sure we're in the root directory of the checkout
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+cd DIR/..
+
+# move away the package.js for Dojo
+mv package.js package.dojo
+cp meteor/package.js ./
+
+# test and restore the Dojo package.js
+meteor test-packages ./
+mv package.dojo package.js
--- /dev/null
+'use strict';
+
+Tinytest.add('Moment.is', function (test) {
+ test.ok(moment.isMoment(moment()), 'simple moment object');
+});