-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reasons of migration: * fast-glob faster than glob * fast-glob does not have a memory leak, unlike glob
- Loading branch information
Showing
6 changed files
with
1,328 additions
and
323 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
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,9 +1,14 @@ | ||
'use strict'; | ||
const _ = require('lodash'); | ||
|
||
module.exports = (options) => { | ||
return _.defaults(options || {}, { | ||
const defaultOpts = { | ||
expandOpts: { | ||
root: null, | ||
formats: [] | ||
}); | ||
}, | ||
globOpts: { | ||
onlyFiles: false | ||
} | ||
}; | ||
|
||
module.exports = (name, options = {}) => _.defaults(options, defaultOpts[name]); |
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
Oops, something went wrong.