docs: function plugin(params) {
  
  	logger = params.logger;
  	params.dirname = params.dirname ? _.template(params.dirname)(params) : params.event.dir.resourcesPlatform;
  
  	logger.trace("running babel in directory: " + params.dirname);
  
  	_.defaults(params, {
  		options: {},
  		includes: ["**/*.js", "!backbone.js"]
  	});
  
  	if (params.code) {
  		params.code = transformCode(params.code, params.options);
  	} else {
  		var files = findFiles(params.dirname, params.includes);
  		_.forEach(files, function(file) {
  			transformFile(path.join(params.dirname, file), params.options);
  		});
  	}
  }