lib/util.js
function globPromise (file) {
    return new Promise((resolve, reject) => {
      glob(file, (err, files) => {
        if (err) {
          reject(err)
        } else {
          resolve(files)
        }
      })
    })
  }
function globPromise (file) {
    return new Promise((resolve, reject) => {
      glob(file, (err, files) => {
        if (err) {
          reject(err)
        } else {
          resolve(files)
        }
      })
    })
  }
function globPromise ( file ) { return new Promise ( ( resolve , reject ) => { glob ( file , ( err , files ) => { if ( err ) { reject ( err ) } else { resolve ( files ) } } ) } ) }
Use the `glob` function on a file, but return a promise
Use the glob function on a file but return a promise