aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/templates
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-18 23:50:42 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-18 23:50:42 +0100
commite4145deeb7a72ac321113fde672e1b499ecb0d2d (patch)
treece2fb59fd9d2ec1d13ea0960215967600098ca13 /library/moment/templates
parent68da4d90dcbda1240ae014768a66a164fd5d2b36 (diff)
downloadvolse-hubzilla-e4145deeb7a72ac321113fde672e1b499ecb0d2d.tar.gz
volse-hubzilla-e4145deeb7a72ac321113fde672e1b499ecb0d2d.tar.bz2
volse-hubzilla-e4145deeb7a72ac321113fde672e1b499ecb0d2d.zip
some events refacturing
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';