code: function concatPackage (pack, outDir, minified) {
    if (_.contains(concatedPkgs, path.basename(pack))) return;
  
    var bowerFile = 'bower.json';
  
    if (! fs.existsSync(path.join(pack, bowerFile)))
      bowerFile = '.bower.json';
  
    var regularJSON = JSON.parse(
      fs.readFileSync(path.join(pack, bowerFile))
    );
    var bowerJSON = json.normalize(regularJSON);
    var deps = bowerJSON.dependencies || {};
    var mains = bowerJSON.main || [];
  
    concatedPkgs.push(path.basename(pack));
  
    _.each(Object.keys(deps), function (pkg, i, l) {
      var components = pack.split(path.sep);
      var pkgpath = components.slice(0, -1).join(path.sep);
  
      concatPackage(path.join(pkgpath, pkg), outDir, minified);
    });
  
    debug('concatenating package ' + path.basename(pack) + '...');
  
    var files = constructFileList(pack, mains, minified);
    var concatJS = '', concatCSS = '';
  
    _.each(files, function (filepath, i, l) {
      var contents = fs.readFileSync(filepath) + '\n';
      var ext = filepath.split('.')[filepath.split('.').length - 1];
  
      if (ext === 'js' || ext === 'css')
        debug('including file ' + filepath + '...');
  
      if (ext === 'js')
        concatJS += contents;
      else if (ext === 'css')
        concatCSS += contents;
    });
  
    if (concatJS !== '' || concatCSS !== '')
      debug('writing files...');
  
    if (concatJS !== '')
      fs.appendFileSync(path.join(outDir, 'build.js'), concatJS);
  
    if (concatCSS !== '')
      fs.appendFileSync(path.join(outDir, 'build.css'), concatCSS);
  }
docs: concatPackage: concatenate a single package. 'package' is the full path to the package directory, 'outDir' is the output directory, 'minified' is whether or not to include minified files