Skip to content

Commit

Permalink
Use watchify2
Browse files Browse the repository at this point in the history
  • Loading branch information
zoubin committed Feb 17, 2016
1 parent cd80d02 commit 449bd46
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ecmaFeatures:
env:
browser: true
node: true
es6: true

rules:
comma-dangle: [2, "always-multiline"]
Expand Down Expand Up @@ -74,7 +75,6 @@ rules:
quote-props: [2, "as-needed"]
quotes: [2, "single", "avoid-escape"]
semi: [2, "never"]
space-after-keywords: 2
keyword-spacing: 2
space-before-blocks: 2
space-infix-ops: 2
space-return-throw-case: 2
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A sugar wrapper for [`browserify`].
**Features**:

* Accept patterns for detecting entries.
* Use [`watchify`] to update bundles whenever file changes. And new entries can be detected (in progress).
* Use [`watchify2`] to update bundles whenever file changes. And new entries can be detected.
* Use [`common-bundle`] to pack modules by default.
* Easy to work with [`gulp`].

Expand Down Expand Up @@ -186,6 +186,7 @@ function bundle() {
[`gulp`]: https://www.npmjs.com/package/gulp
[`globby`]: https://github.com/sindresorhus/globby
[`watchify`]: https://github.com/substack/watchify
[`watchify2`]: https://github.com/reducejs/watchify2
[`lazypipe`]: https://github.com/OverZealous/lazypipe
[`gulp.dest`]: https://github.com/gulpjs/gulp/blob/master/docs/API.md#gulpdestpath-options
[`callback-sequence#run`]: https://github.com/zoubin/callback-sequence#sequenceruncallbacks-done
Expand Down
2 changes: 1 addition & 1 deletion lib/watch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var lazypipe = require('lazypipe')
var watchify = require('watchify')
var watchify = require('watchify2')
var browserify = require('./browserify')
var inherits = require('util').inherits
var run = require('callback-sequence').run
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"through2": "^2.0.0",
"vinyl-fs": "^2.2.1",
"vinyl-source-stream": "^1.1.0",
"watchify": "^3.4.0"
"watchify2": "0.0.1"
},
"devDependencies": {
"del": "^2.0.2",
"eslint": "^1.10.1",
"eslint": "^2.1.0",
"gulp": "^3.9.0",
"gulp-util": "^3.0.7",
"mkdirp": "^0.5.1",
Expand Down

0 comments on commit 449bd46

Please sign in to comment.