'use strict';

module.exports = function(app) {
  app.extendWith('verb-readme-generator');

  app.create('pages');
  app.pages('docs/api/*.md');

  app.task('docs', function() {
    return app.toStream('pages')
      .pipe(app.renderFile('*'))
      .pipe(app.pipeline(app.options.pipeline))
      .pipe(app.dest('docs/dist'));
  });

  app.task('default', ['readme', 'docs']);
};

@@ -51,18 +51,19 @@
 app.
-extendWith
+use(require
 ('ve
@@ -83,16 +83,17 @@
 erator')
+)
 ;%0A%0A  app

add verb-readme-generator to deps