https://github.com/simbo/gulp-watchify-browserify
A gulp plugin for watching and bundling javascripts using watchify and browserify.
https://github.com/simbo/gulp-watchify-browserify
Last synced: 12 months ago
JSON representation
A gulp plugin for watching and bundling javascripts using watchify and browserify.
- Host: GitHub
- URL: https://github.com/simbo/gulp-watchify-browserify
- Owner: simbo
- License: mit
- Created: 2016-02-07T15:19:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-07-13T05:41:46.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T22:48:17.636Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gulp-watchify-browserify
========================
> A *gulp* plugin for watching and bundling javascripts using *watchify* and *browserify*.
[](https://www.npmjs.com/package/gulp-watchify-browserify)
[](http://simbo.mit-license.org)
[](https://travis-ci.org/simbo/gulp-watchify-browserify)
[](https://codecov.io/github/simbo/gulp-watchify-browserify)
[](https://david-dm.org/simbo/gulp-watchify-browserify)
[](https://david-dm.org/simbo/gulp-watchify-browserify#info=devDependencies)
---
- [About](#about)
- ["Why a plugin?"](#why-a-plugin)
- [License](#license)
---
**README IN PROGRESS**
See [`./demo`](https://github.com/simbo/gulp-watchify-browserify/tree/master/demo) for example usage.
[](https://www.npmjs.com/package/gulp-watchify-browserify)
## About
**gulp-watchify-browserify** is a [gulp](http://gulpjs.com/) plugin for watching
and bundling javascripts using [watchify](https://github.com/substack/watchify)
and [browserify](https://github.com/substack/node-browserify).
Watchify offers a much more efficient and faster way of watching an rebundling
with browserify, than you could achieve with `gulp.watch()` or similar methods.
To work as expected, watchify/browserify has to do the file reading jobs and not
`gulp.src()`. That's why this plugin is not usable in a `.pipe()`. Instead, it
prepares the stream on demand and offers a callback function where you can pipe
to more gulp plugins and `gulp.dest()`. See [usage](#usage) for more details.
### "Why a plugin?"
> *"Can't you just use plain modules?"*
Sure, this can also be achieved without a plugin, by just using a bunch of node
modules in a custom gulp task – like you can replace every gulp plugin.
(There is also a
[browserify recipe](https://github.com/gulpjs/gulp/blob/master/docs/recipes/fast-browserify-builds-with-watchify.md)
that does almost the same job like this plugin.)
But when you want to glob your browserify entries, log events and states to
console, handle errors and make everything shiny, you propably come up with a
script of ~80 loc, which would be hard to reuse and maintain over multiple
projects (been there done that). So, imho, a plugin makes sense…
## License
[MIT © 2016 Simon Lepel](http://simbo.mit-license.org/)