'use strict';

var gitignore = require('glob-fs-gitignore');
var dotfiles = require('glob-fs-dotfiles');

/**
 * Built-in middleware
 */

module.exports = function (app) {
  if (app.options.builtins !== false) {
    app.use(gitignore(app.options));
    app.use(dotfiles(app.options));
  }
};

@@ -8,16 +8,59 @@
 rict';%0A%0A
+var lazy = require('lazy-cache')(require);%0A
 var giti
@@ -67,23 +67,20 @@
 gnore = 
-require
+lazy
 ('glob-f
@@ -109,23 +109,20 @@
 files = 
-require
+lazy
 ('glob-f
@@ -208,22 +208,42 @@
 %7B%0A  
-if (app.option
+var opts = app.options;%0A%0A  if (opt
 s.bu
@@ -266,80 +266,219 @@
 ) %7B%0A
+%0A
     
-app.use(gitignore(app.options));%0A    app.use(dotfiles(app.options));
+// turned %60on%60 by default%0A    if (opts.dotfiles !== false) %7B%0A      app.use(dotfiles()(opts));%0A    %7D%0A%0A    // turned %60off%60 by default%0A    if (opts.gitignore === true) %7B%0A      app.use(gitignore()(opts));%0A    %7D
 %0A  %7D

allow default middleware to be toggled