lib/utils.js
function globWithPromsie(pattern) {
  return new Promise((resolve, reject) => {
    glob(pattern, function(err, files) {
      if (err) {
        reject(err);
      }

      if (files.length === 0) {
        console.warn('pattern "' + pattern + '" does not match any file');
      }

      resolve(files);
    });
  });
}
function globWithPromsie(pattern) {
  return new Promise((resolve, reject) => {
    glob(pattern, function(err, files) {
      if (err) {
        reject(err);
      }

      if (files.length === 0) {
        console.warn('pattern "' + pattern + '" does not match any file');
      }

      resolve(files);
    });
  });
}
function globWithPromsie ( pattern ) { return new Promise ( ( resolve , reject ) => { glob ( pattern , function ( err , files ) { if ( err ) { reject ( err ) ; } if ( files . length === 0 ) { console . warn ( 'pattern "' + pattern + '" does not match any file' ) ; } resolve ( files ) ; } ) ; } ) ; }
Read a glob string and return a promise.
@param {string} pattern - Glob file pattern
@returns Promise
Read a glob string and return a promise .