summaryrefslogtreecommitdiff
path: root/www/lib/moment/templates
diff options
context:
space:
mode:
Diffstat (limited to 'www/lib/moment/templates')
-rw-r--r--www/lib/moment/templates/amd-named.js7
-rw-r--r--www/lib/moment/templates/amd.js7
-rw-r--r--www/lib/moment/templates/globals.js5
-rw-r--r--www/lib/moment/templates/locale-header.js5
-rw-r--r--www/lib/moment/templates/test-header.js5
5 files changed, 29 insertions, 0 deletions
diff --git a/www/lib/moment/templates/amd-named.js b/www/lib/moment/templates/amd-named.js
new file mode 100644
index 00000000..76104564
--- /dev/null
+++ b/www/lib/moment/templates/amd-named.js
@@ -0,0 +1,7 @@
+/*global define:false*/
+
+import moment from "./moment";
+
+define("moment", [], function () {
+ return moment;
+});
diff --git a/www/lib/moment/templates/amd.js b/www/lib/moment/templates/amd.js
new file mode 100644
index 00000000..847bcefa
--- /dev/null
+++ b/www/lib/moment/templates/amd.js
@@ -0,0 +1,7 @@
+/*global define:false*/
+
+import moment from "./moment";
+
+define([], function () {
+ return moment;
+});
diff --git a/www/lib/moment/templates/globals.js b/www/lib/moment/templates/globals.js
new file mode 100644
index 00000000..5ac160f1
--- /dev/null
+++ b/www/lib/moment/templates/globals.js
@@ -0,0 +1,5 @@
+/*global window:false*/
+
+import moment from "./moment";
+
+window.moment = moment;
diff --git a/www/lib/moment/templates/locale-header.js b/www/lib/moment/templates/locale-header.js
new file mode 100644
index 00000000..f304506e
--- /dev/null
+++ b/www/lib/moment/templates/locale-header.js
@@ -0,0 +1,5 @@
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
+ factory(global.moment)
+}(this, function (moment) { 'use strict';
diff --git a/www/lib/moment/templates/test-header.js b/www/lib/moment/templates/test-header.js
new file mode 100644
index 00000000..38940c3e
--- /dev/null
+++ b/www/lib/moment/templates/test-header.js
@@ -0,0 +1,5 @@
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../../moment')) :
+ typeof define === 'function' && define.amd ? define(['../../moment'], factory) :
+ factory(global.moment)
+}(this, function (moment) { 'use strict';