1.0.2 • Published 7 years ago

watch-filter v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

watch-filter

Summary

Watch filter for excluding files and folders by regular expressions.

Install

npm install --save-dev watch watch-filter

Usage

package.json::

{
  "scripts": {
    "test": "...",
    "watchTest": "node_modules/.bin/watch 'npm test' --filter=config/watch-filter.js"
  }
}

config/watch-filter.js:

var path = require('path');
var WatchFilter = require('watch-filter').default;
const watchFilter = new WatchFilter({

  projectDirectory: path.join(__dirname, '..'),

  folderExcludes: [
    '^node_modules',
    '^.git',
    '^coverage'
  ],

  fileExcludes: [
    '^config/watch-filter.json$',
    '^package.json$'
  ]

});
module.exports = watchFilter.filter;

Contribution

Contribution documentation can be found here.

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.1

7 years ago