Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fixes #121] chokidar -> sane #1283

Merged
merged 1 commit into from Jul 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions bin/run.js
Expand Up @@ -151,18 +151,18 @@ function watcherEvent( event, args ) {
}

run.watch = function watch() {
const chokidar = require( "chokidar" );
const sane = require( "sane" );
const args = Array.prototype.slice.call( arguments );

const watcher = chokidar.watch( "**/*.js", {
ignored: IGNORED_GLOBS,
ignoreInitial: true
const watcher = sane( process.cwd(), {
globs: [ "**/*.js" ],
ignored: IGNORED_GLOBS
} );

watcher.on( "ready", () => run.apply( null, args ) );
watcher.on( "change", watcherEvent( "changed", args ) );
watcher.on( "add", watcherEvent( "added", args ) );
watcher.on( "unlink", watcherEvent( "removed", args ) );
watcher.on( "delete", watcherEvent( "removed", args ) );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a personal note, I prefer this event name so much more than "unlink".


function stop() {
console.log( "Stopping QUnit..." );
Expand Down