aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webcals
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-06-27 22:23:23 +0200
committerJames Lal <james@lightsofapollo.com>2012-06-27 22:23:23 +0200
commit51c84cac962d09fedbfd9481f6dc66120e12c46b (patch)
tree0d16cfea7110797705f1165b237a5a3da462f07f /lib/webcals
parentc351e9975cee59131839bc6823e0a3e8c2a3d6cf (diff)
downloadjsCalDAV-51c84cac962d09fedbfd9481f6dc66120e12c46b.tar.gz
Browser packaging
Diffstat (limited to 'lib/webcals')
-rw-r--r--lib/webcals/index.js18
-rw-r--r--lib/webcals/request/index.js14
-rw-r--r--lib/webcals/resource_root.js14
-rw-r--r--lib/webcals/sax/index.js14
-rw-r--r--lib/webcals/templates/index.js13
5 files changed, 73 insertions, 0 deletions
diff --git a/lib/webcals/index.js b/lib/webcals/index.js
new file mode 100644
index 0000000..4f592cd
--- /dev/null
+++ b/lib/webcals/index.js
@@ -0,0 +1,18 @@
+(function(module, ns) {
+
+ var exports = module.exports;
+
+ exports.Ical = ns.require('ical');
+ exports.Responder = ns.require('responder');
+ exports.Sax = ns.require('sax');
+ exports.Template = ns.require('template');
+ exports.Xhr = ns.require('xhr');
+ exports.Request = ns.require('request');
+ exports.Templates = ns.require('templates');
+
+}.apply(
+ this,
+ (this.Webcals) ?
+ [Webcals, Webcals] :
+ [module, require('./webcals')]
+));
diff --git a/lib/webcals/request/index.js b/lib/webcals/request/index.js
new file mode 100644
index 0000000..595f50e
--- /dev/null
+++ b/lib/webcals/request/index.js
@@ -0,0 +1,14 @@
+(function(module, ns) {
+
+ module.exports = {
+ Abstract: ns.require('request/abstract'),
+ CalendarQuery: ns.require('request/calendar_query'),
+ Propfind: ns.require('request/propfind')
+ };
+
+}.apply(
+ this,
+ (this.Webcals) ?
+ [Webcals('request'), Webcals] :
+ [module, require('../webcals')]
+));
diff --git a/lib/webcals/resource_root.js b/lib/webcals/resource_root.js
new file mode 100644
index 0000000..5f09eff
--- /dev/null
+++ b/lib/webcals/resource_root.js
@@ -0,0 +1,14 @@
+(function(module, ns) {
+
+ function ResourceRoot() {
+
+ }
+
+ module.exports = ResourceRoot;
+
+}.apply(
+ this,
+ (this.Webcals) ?
+ [Webcals('resource_root'), Webcals] :
+ [module, require('./webcals')]
+));
diff --git a/lib/webcals/sax/index.js b/lib/webcals/sax/index.js
new file mode 100644
index 0000000..7efff20
--- /dev/null
+++ b/lib/webcals/sax/index.js
@@ -0,0 +1,14 @@
+(function(module, ns) {
+
+ module.exports = {
+ Abstract: ns.require('sax/abstract'),
+ CalendarQuery: ns.require('sax/dav_response')
+ };
+
+}.apply(
+ this,
+ (this.Webcals) ?
+ [Webcals('sax'), Webcals] :
+ [module, require('../webcals')]
+));
+
diff --git a/lib/webcals/templates/index.js b/lib/webcals/templates/index.js
new file mode 100644
index 0000000..f3804e4
--- /dev/null
+++ b/lib/webcals/templates/index.js
@@ -0,0 +1,13 @@
+(function(module, ns) {
+
+ module.exports = {
+ CalendarData: ns.require('templates/calendar_data'),
+ CalendarFilter: ns.require('templates/calendar_filter')
+ };
+
+}.apply(
+ this,
+ (this.Webcals) ?
+ [Webcals('templates'), Webcals] :
+ [module, require('../webcals')]
+));