Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: browserify/watchify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c3fe218d17e8ba53f7502f1acaca176ed9466ebc
Choose a base ref
...
head repository: browserify/watchify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7b27a3c0d6bb796cef71faebfeb610ec62ad97b3
Choose a head ref
  • 9 commits
  • 6 files changed
  • 4 contributors

Commits on Jul 7, 2019

  1. Copy the full SHA
    bb2b429 View commit details
  2. Merge pull request #367 from Trott/update-readme-badge

    chore: Fix Travis-CI badge in readme.markdown
    goto-bus-stop authored Jul 7, 2019
    Copy the full SHA
    563a90d View commit details
  3. Copy the full SHA
    bd2f677 View commit details

Commits on Sep 27, 2019

  1. Change URLs from "Substack" (someones personal site & acc) to "browse…

    …rify" (#369)
    
    * Change URLs to browserify
    
    * fixup
    
    * Change URLs to browserify
    
    * Update package.json
    
    Co-Authored-By: Renée Kooi <renee@kooi.me>
    
    * Update readme.markdown
    
    Co-Authored-By: Renée Kooi <renee@kooi.me>
    soryy708 and goto-bus-stop committed Sep 27, 2019
    Copy the full SHA
    f79e59f View commit details

Commits on Jan 28, 2021

  1. Copy the full SHA
    3445775 View commit details
  2. update chokidar and anymatch (#378)

    Co-authored-by: Renée Kooi <renee@kooi.me>
    sseide and goto-bus-stop authored Jan 28, 2021
    Copy the full SHA
    bae5e02 View commit details
  3. Copy the full SHA
    b840f29 View commit details
  4. bump deps (#380)

    goto-bus-stop authored Jan 28, 2021
    Copy the full SHA
    5d4842a View commit details
  5. 4.0.0

    goto-bus-stop committed Jan 28, 2021
    Copy the full SHA
    7b27a3c View commit details
Showing with 48 additions and 20 deletions.
  1. +22 −0 .github/workflows/ci.yml
  2. +1 −0 .npmrc
  3. +0 −6 .travis.yml
  4. +8 −0 CHANGELOG.md
  5. +13 −10 package.json
  6. +4 −4 readme.markdown
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Tests
strategy:
matrix:
node: [8.x, 10.x, 12.x, 14.x, 15.x]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Node.js ${{matrix.node}}
uses: actions/setup-node@v2-beta
with:
node-version: ${{matrix.node}}
- name: Install dependencies
run: npm install
- name: npm test
run: npm test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# watchify Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 4.0.0
* Update dependencies.

This release drops support for Node.js versions older than 8.10, following the upgrade to `chokidar` 3.x.
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{
"name": "watchify",
"version": "3.11.1",
"version": "4.0.0",
"description": "watch mode for browserify builds",
"main": "index.js",
"bin": "bin/cmd.js",
"engines": {
"node": ">= 8.10.0"
},
"dependencies": {
"anymatch": "^2.0.0",
"browserify": "^16.1.0",
"chokidar": "^2.1.1",
"anymatch": "^3.1.0",
"browserify": "^17.0.0",
"chokidar": "^3.4.0",
"defined": "^1.0.0",
"outpipe": "^1.1.0",
"through2": "^2.0.0",
"xtend": "^4.0.0"
"through2": "^4.0.2",
"xtend": "^4.0.2"
},
"devDependencies": {
"brfs": "^2.0.1",
"mkdirp": "~0.5.1",
"mkdirp": "^0.5.5",
"split": "^1.0.0",
"tape": "^4.2.2",
"tape": "^5.1.1",
"uglify-js": "^2.5.0",
"win-spawn": "^2.0.0"
},
@@ -26,9 +29,9 @@
},
"repository": {
"type": "git",
"url": "git://github.com/substack/watchify.git"
"url": "git://github.com/browserify/watchify.git"
},
"homepage": "https://github.com/substack/watchify",
"homepage": "https://github.com/browserify/watchify",
"keywords": [
"browserify",
"browserify-tool",
8 changes: 4 additions & 4 deletions readme.markdown
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

watch mode for [browserify](https://github.com/substack/node-browserify) builds

[![build status](https://secure.travis-ci.org/substack/watchify.svg?branch=master)](http://travis-ci.org/substack/watchify)
[![build status](https://secure.travis-ci.org/browserify/watchify.svg?branch=master)](http://travis-ci.org/browserify/watchify)

Update any source file and your browserify bundle will be recompiled on the
spot.
@@ -90,7 +90,7 @@ var watchify = require('watchify');

## watchify(b, opts)

watchify is a browserify [plugin](https://github.com/substack/node-browserify#bpluginplugin-opts), so it can be applied like any other plugin.
watchify is a browserify [plugin](https://github.com/browserify/browserify#bpluginplugin-opts), so it can be applied like any other plugin.
However, when creating the browserify instance `b`, **you MUST set the `cache`
and `packageCache` properties**:

@@ -107,7 +107,7 @@ var b = browserify({
});
```

**By default, watchify doesn't display any output, see [events](https://github.com/substack/watchify#events) for more info.**
**By default, watchify doesn't display any output, see [events](https://github.com/browserify/watchify#events) for more info.**

`b` continues to behave like a browserify instance except that it caches file
contents and emits an `'update'` event when a file changes. You should call
@@ -240,7 +240,7 @@ to get just the library.

## rebuilds on OS X never trigger

It may be related to a bug in `fsevents` (see [#250](https://github.com/substack/watchify/issues/205#issuecomment-98672850)
It may be related to a bug in `fsevents` (see [#250](https://github.com/browserify/watchify/issues/205#issuecomment-98672850)
and [stackoverflow](http://stackoverflow.com/questions/26708205/webpack-watch-isnt-compiling-changed-files/28610124#28610124)).
Try the `--poll` flag
and/or renaming the project's directory - that might help.