-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from floatdrop/chokidar
Migrate to chokidar + anymatch
- Loading branch information
Showing
12 changed files
with
184 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,2 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
.tags | ||
.tags_sorted_by_file | ||
.gemtags | ||
.DS_Store | ||
coverage | ||
|
||
pids | ||
logs | ||
results | ||
temp | ||
|
||
npm-debug.log | ||
node_modules | ||
test/fixtures/new.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* global describe, it, afterEach */ | ||
|
||
var watch = require('..'); | ||
var join = require('path').join; | ||
var rimraf = require('rimraf'); | ||
var touch = require('./touch.js'); | ||
var fs = require('fs'); | ||
require('should'); | ||
|
||
function fixtures(glob) { | ||
return join(__dirname, 'fixtures', glob); | ||
} | ||
|
||
describe('ignore', function () { | ||
var w; | ||
|
||
it('should ignore non-existent folders', function (done) { | ||
rimraf.sync(fixtures('temp')); | ||
|
||
w = watch([fixtures('**/*.ts'), '!' + fixtures('temp')], function () { | ||
done('Ignored folder was watched'); | ||
}); | ||
|
||
w.on('ready', function () { | ||
fs.mkdirSync(fixtures('temp')); | ||
touch(fixtures('temp/index.ts'))(); | ||
rimraf.sync(fixtures('temp')); | ||
setTimeout(done, 200); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.