aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/templates
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/templates')
-rw-r--r--library/moment/templates/amd-named.js7
-rw-r--r--library/moment/templates/amd.js7
-rw-r--r--library/moment/templates/globals.js5
-rw-r--r--library/moment/templates/locale-header.js5
-rw-r--r--library/moment/templates/test-header.js5
5 files changed, 29 insertions, 0 deletions
diff --git a/library/moment/templates/amd-named.js b/library/moment/templates/amd-named.js
new file mode 100644
index 000000000..761045644
--- /dev/null
+++ b/library/moment/templates/amd-named.js
@@ -0,0 +1,7 @@
+/*global define:false*/
+
+import moment from "./moment";
+
+define("moment", [], function () {
+ return moment;
+});
diff --git a/library/moment/templates/amd.js b/library/moment/templates/amd.js
new file mode 100644
index 000000000..847bcefa8
--- /dev/null
+++ b/library/moment/templates/amd.js
@@ -0,0 +1,7 @@
+/*global define:false*/
+
+import moment from "./moment";
+
+define([], function () {
+ return moment;
+});
diff --git a/library/moment/templates/globals.js b/library/moment/templates/globals.js
new file mode 100644
index 000000000..5ac160f12
--- /dev/null
+++ b/library/moment/templates/globals.js
@@ -0,0 +1,5 @@
+/*global window:false*/
+
+import moment from "./moment";
+
+window.moment = moment;
diff --git a/library/moment/templates/locale-header.js b/library/moment/templates/locale-header.js
new file mode 100644
index 000000000..f304506e6
--- /dev/null
+++ b/library/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/library/moment/templates/test-header.js b/library/moment/templates/test-header.js
new file mode 100644
index 000000000..38940c3ec
--- /dev/null
+++ b/library/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';