text: var _ = require('lodash'),
      glob = require('glob');
  
  
  module.exports = _.extend(
      require('./env/all'),
      require('./env/' + process.env.NODE_ENV) || {}
  );
  
  module.exports.getGlobbedFiles = function (globPatterns, removeRoot) {
    var _this = this;
  
    var urlRegex = new RegExp('^(?:[a-z]+:)?//', 'i');
  
    var output = [];
  
    if (_.isArray(globPatterns)) {
      globPatterns.forEach(function (globPattern) {
        output = _.union(output, _this.getGlobbedFiles(globPattern, removeRoot));
      });
    } else if (_.isString(globPatterns)) {
      if (urlRegex.test(globPatterns)) {
        output.push(globPatterns);
      } else {
        var files = glob.sync(globPatterns);
        if (removeRoot) {
          files = files.map(function (file) {
            return file.replace(removeRoot, '');
          });
        }
  
        output = _.union(output, files);
      }
    }
  
    return output;
  };