lib/helpers.js
function(file, targetPath) {
		rigger(
			file,
			{ output: targetPath},
			function(error, content) {
				if (error) {
					console.log(error);
					return;
				}
				fs.writeFile(targetPath, content, 'utf8');
			}
		);
	}
function(file, targetPath) {
		rigger(
			file,
			{ output: targetPath},
			function(error, content) {
				if (error) {
					console.log(error);
					return;
				}
				fs.writeFile(targetPath, content, 'utf8');
			}
		);
	}
function ( file , targetPath ) { rigger ( file , { output : targetPath } , function ( error , content ) { if ( error ) { console . log ( error ) ; return ; } fs . writeFile ( targetPath , content , 'utf8' ) ; } ) ; }
Creates new file including sources from original one
@param {string} file File
@param {string} targetPath New file name
Creates new file including sources from original one