code: 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);
      });
    });
  }
docs: Read a glob string and return a promise.
  @param {string} pattern - Glob file pattern
  @returns Promise