This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

sync

  • Loading branch information...
barbalex committed Sep 10, 2014
1 parent 12ec420 commit e940165565a714538b2303089d887e5eae739af4
View
@@ -39,6 +39,7 @@
"watchify": "~1.0.2",
"vinyl-source-stream": "~1.0.0",
"gulp-util": "~3.0.1",
"pretty-hrtime": "~0.2.1"
"pretty-hrtime": "~0.2.1",
"jquery": "~2.1.1"
}
}
@@ -0,0 +1,17 @@
/**
* stellt Methoden zur Verfügung, um mit der Couch zu Kommunizieren
*
*/
'use strict';
var $ = require('jquery'),
couch = require('./util/jq.couch.js');
$.extend($, couch);
var $db = $.couch.db("evab");
module.exports = function() {
return $;
};
@@ -0,0 +1,14 @@
/**
* bereitet jquery.couch.js auf, damit es in node.js benutzt werden kann
*/
var fs = require('fs'),
$ = {};
// Read and eval library
filedata = fs.readFileSync('./jquery.couch.js','utf8');
eval(filedata);
/* The jquery.couch.js file defines a class '$.couch' which is all we want to export */
exports.couch = $.couch;

0 comments on commit e940165

Please sign in to comment.