Compare commits

...

4 Commits

Author SHA1 Message Date
92ad03fc65 0.0.18 2015-12-06 22:07:59 +01:00
50dd2b193a 0.0.17 2015-12-06 22:07:25 +01:00
fb3e693f2a updated dependencies 2015-12-06 22:07:18 +01:00
92841c1715 fix comment typo 2015-12-05 22:59:22 +01:00
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
node_modules/ node_modules/
.settings/ .settings/
.idea/ .idea/
npm-debug.log
ts/*.js ts/*.js
ts/*.js.map ts/*.js.map

View File

@ -1,6 +1,6 @@
{ {
"name": "gulp-browser", "name": "gulp-browser",
"version": "0.0.16", "version": "0.0.18",
"description": "browserify and other goodies for gulp", "description": "browserify and other goodies for gulp",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -28,7 +28,7 @@
"dependencies": { "dependencies": {
"browserify": "12.0.1", "browserify": "12.0.1",
"gulp-util": "3.0.7", "gulp-util": "3.0.7",
"pushrocks": "1.0.23", "pushrocks": "1.0.24",
"through2": "2.0.0" "through2": "2.0.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -2,7 +2,7 @@
module GulpBrowserBrowserify { module GulpBrowserBrowserify {
export function init() { export function init() {
return function() { return function() {
return through.obj((file, enc, cb) => { //this is the trough object that gets returned by gulpBrowser.browserify(); return through.obj((file, enc, cb) => { //this is the through object that gets returned by gulpBrowser.browserify();
var bundleCallback = function(err, bufferedContent) { var bundleCallback = function(err, bufferedContent) {
if (Buffer.isBuffer(bufferedContent)){ if (Buffer.isBuffer(bufferedContent)){
file.contents = bufferedContent; file.contents = bufferedContent;