code: function rimrafPromise(dir) {
    return new Promise((resolve, reject) => {
      rimraf(dir, err => {
        if (err) {
          reject(err);
        } else {
          resolve();
        }
      });
    });
  }
docs: Wraps the rimraf command in a promise.