Skip to content

Instantly share code, notes, and snippets.

@UnquietCode
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UnquietCode/9b72fd44f8ca7a0c7b66 to your computer and use it in GitHub Desktop.
Save UnquietCode/9b72fd44f8ca7a0c7b66 to your computer and use it in GitHub Desktop.
gulp-browatchify test

Tests gulp-browatchify hanging.

Environment

$ gulp --version
[17:49:03] CLI version 3.8.8
[17:49:03] Local version 3.8.8
$ node --version
v0.10.31

Output

$ gulp
[17:52:25] Using gulpfile gulpfile.js
[17:52:25] Starting 'browserify'...
[17:52:26] Finished 'browserify' after 565 ms
[17:52:26] Starting 'default'...
[17:52:26] Finished 'default' after 7.05 μs
[17:52:26] Browserify:  579 bytes written (0.03 seconds)
var B = require('./B');
console.log("hello");
module.exports = {}
var source = require('vinyl-source-stream');
var gulp = require('gulp');
gulp.task('browserify', function() {
var browserify = require('gulp-browatchify');
gulp.src('./A.js')
.pipe(browserify({}))
.pipe(source('main.js'))
.pipe(gulp.dest('./'))
;
});
gulp.task('default', ['browserify']);
{
"name": "test",
"version": "1.0.0",
"dependencies": {
"gulp": "^3.8.8",
"gulp-browatchify": "0.0.0",
"vinyl-source-stream": "^1.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment