UNPKG
ice.fo.utils
Version:
latest (0.0.8)
0.0.8
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
ice.fo.utils
/
Glob
/
scanVueFiles.js
13 lines
(8 loc)
•
244 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
path
from
'path'
;
import
glob
from
'glob'
;
import
normalizePath
from
'./normalizePath'
;
export
default
function
scanVueFiles
(
dir
) { dir =
normalizePath
(dir);
const
files = glob.
sync
(path.
join
(dir,
'**/*.vue'
));
return
files; }