aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/meteor
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/meteor')
-rw-r--r--library/moment/meteor/README.md25
-rw-r--r--library/moment/meteor/export.js6
-rw-r--r--library/moment/meteor/package.js29
-rw-r--r--library/moment/meteor/test.js5
4 files changed, 0 insertions, 65 deletions
diff --git a/library/moment/meteor/README.md b/library/moment/meteor/README.md
deleted file mode 100644
index 9bcb50bfd..000000000
--- a/library/moment/meteor/README.md
+++ /dev/null
@@ -1,25 +0,0 @@
-Packaging [Moment](momentjs.org) for [Meteor.js](http://meteor.com).
-
-
-# Meteor
-
-If you're new to Meteor, here's what the excitement is all about -
-[watch the first two minutes](https://www.youtube.com/watch?v=fsi0aJ9yr2o); you'll be hooked by 1:28.
-
-That screencast is from 2012. In the meantime, Meteor has become a mature JavaScript-everywhere web
-development framework. Read more at [Why Meteor](http://www.meteorpedia.com/read/Why_Meteor).
-
-
-# Issues
-
-If you encounter an issue while using this package, please CC @dandv when you file it in this repo.
-
-
-# DONE
-
-* Simple test. Should be enough.
-
-
-# TODO
-
-* Add other tests; however, that is overkill, and the responsibiity of Moment, not of the Meteor integration.
diff --git a/library/moment/meteor/export.js b/library/moment/meteor/export.js
deleted file mode 100644
index 2600fce19..000000000
--- a/library/moment/meteor/export.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// 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) {
-}
diff --git a/library/moment/meteor/package.js b/library/moment/meteor/package.js
deleted file mode 100644
index 108191b24..000000000
--- a/library/moment/meteor/package.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// package metadata file for Meteor.js
-'use strict';
-
-var packageName = 'momentjs:moment'; // https://atmospherejs.com/momentjs/moment
-
-var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json'));
-
-Package.describe({
- name: packageName,
- summary: 'Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging',
- version: packageJson.version,
- git: 'https://github.com/moment/moment.git'
-});
-
-Package.onUse(function (api) {
- api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']);
- api.export('moment');
- api.addFiles([
- 'moment.js',
- 'meteor/export.js'
- ]);
-});
-
-Package.onTest(function (api) {
- api.use(packageName);
- api.use('tinytest');
-
- api.addFiles('meteor/test.js');
-});
diff --git a/library/moment/meteor/test.js b/library/moment/meteor/test.js
deleted file mode 100644
index 6bf706a60..000000000
--- a/library/moment/meteor/test.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-Tinytest.add('Moment.is', function (test) {
- test.ok(moment.isMoment(moment()), {message: 'simple moment object'});
-});