UNPKG
@antv/torch
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
torchjs for @antv.
github.com/antvis/tools
antvis/tools
@antv/torch
/
lib
/
watch.js
14 lines
(11 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
chokidar =
require
(
'chokidar'
);
module
.
exports
=
(
globs, callback
) =>
{
const
watcher = chokidar.
watch
(globs, {
ignored
: [
/(^|[/\\])\../
,
/node_modules|[/\\]\./
] }); watcher.
on
(
'all'
, callback);
return
watcher; };