code: function requirePackage(pkg, mainjs) {
  			var processed = {};
  			var pkgName = path.basename(pkg);
  			var code = grunt.file.read(mainjs);
  			while (true) {
  				var requires = detective(code);
  				if (!requires.length) break;
  				for (var requireIdx in requires) {
  					var name = requires[requireIdx];
  					var requiredCode = '';
  					if (!processed[name]) {
  						var filepath = path.join(pkg, 'lib', name.replace(pkgName + '/', '') + '.js');
  						requiredCode = grunt.file.read(filepath);
  						processed[name] = true;
  					}
  					code = code.replace(new RegExp('require\\([\\\'\"]' + name + '[\\\'\"]\\);?'), requiredCode);
  				}
  			}
  			return code;
  		}
docs: Returns concatenated package source code.
  Expands all `require()`s.
  
  @param {String} pkg Package path.
  @param {String} mainjs Main JS file path.
  @return {String}