glob JavaScript and Node.js code examples | Tabnine
www.tabnine.com › code › javascriptstatic resolveAssetFiles { let assets = new Map([ ['hooks', undefined], ['widgets', undefined] ]) let hooksMap = new Map() let widgetsMap = new Map() glob. sync (config.hooks).forEach((item) => { hooksMap. set (this.formatAsset(item), require(item)) }) glob. sync (config.widgets).forEach((item) => { widgetsMap. set (this.formatAsset(item), require(item)) }) assets. set ('hooks', hooksMap) assets. set ('widgets', widgetsMap) return assets }
Explaining Globs | gulp.js
gulpjs.com › docs › enExplaining Globs. A glob is a string of literal and/or wildcard characters used to match filepaths. Globbing is the act of locating files on a filesystem using one or more globs. The src () method expects a single glob string or an array of globs to determine which files your pipeline will operate on. At least one match must be found for your ...