gulp-browser/index.js
2015-10-24 18:26:41 +02:00

25 lines
916 B
JavaScript

var GulpBrowserBrowserify;
(function (GulpBrowserBrowserify) {
function init() {
return function () {
//this is the trough object that gets returned by gulpBrowser.browserify();
return through.obj(function (file, enc, cb) {
var content = file.content;
var basedir = file.base;
//run callback function to signal end of plugin process.
return cb(null, file);
});
};
}
GulpBrowserBrowserify.init = init;
})(GulpBrowserBrowserify || (GulpBrowserBrowserify = {}));
/// <reference path="./typings/tsd.d.ts" />
/// <reference path="./modulebrowserify.ts" />
var through = require("through2");
var path = require("path");
var browserify = require("browserify");
//create the return object
var gulpBrowser = {};
gulpBrowser.browserify = GulpBrowserBrowserify.init();
module.exports = gulpBrowser;