code: function collectInputFiles(pattern) {
    return new Promise((resolve, reject) => {
      glob(pattern, {root: SRC_DIR, nomount: true}, (err, files) => {
        if (err) {
          return reject(err);
        }
        resolve(files);
      });
    });
  }
docs: Collect all files in the src dir.