function writeFile() {
		var yo = this._yeoman;
		var context = this;
		var configFile = 'documentjs.json';
		var fileTypes = '{' + yo.props.fileTypes.join(',') + '}';
		var folders = yo.props.folders.split(';');
		var folderMask = "[";
		var len = folders.length;

		while (len--) {
			folderMask = '"' + folders[len] + "/**/*." + fileTypes + '"' + len > 0 ? ',' : ']';
		}

		yo.fs.copy(
			yo.templatePath('_' + configFile),
			yo.destinationPath('/' + configFile),
			{
				process: function (contents) {
					var fileString = contents.toString();
					fileString = context._replaceTag(fileString, 'FILE-MASK', fileTypes);
					return context._replaceTag(fileString, 'DEST', yo.props.destFolder);
				}
			}
		);
	}
/**
	 * @description Writes a file based on a template
	 */
@description Writes a file based on a template
@description Writes a file based on a template
function writeFile() {
		var yo = this._yeoman;
		var context = this;
		var configFile = 'documentjs.json';
		var fileTypes = '{' + yo.props.fileTypes.join(',') + '}';
		var folders = yo.props.folders.split(';');
		var folderMask = "[";
		var len = folders.length;
		while (len--) {
			folderMask = '"' + folders[len] + "/**/*." + fileTypes + '"' + len > 0 ? ',' : ']';
		}
		yo.fs.copy(
			yo.templatePath('_' + configFile),
			yo.destinationPath('/' + configFile),
			{
				process: function (contents) {
					var fileString = contents.toString();
					fileString = context._replaceTag(fileString, 'FILE-MASK', fileTypes);
					return context._replaceTag(fileString, 'DEST', yo.props.destFolder);
				}
			}
		);
	}
function writeFile ( ) { var yo = this . _yeoman ; var context = this ; var configFile = 'documentjs.json' ; var fileTypes = '{' + yo . props . fileTypes . join ( ',' ) + '}' ; var folders = yo . props . folders . split ( ';' ) ; var folderMask = "[" ; var len = folders . length ; while ( len -- ) { folderMask = '"' + folders [ len ] + "/**/*." + fileTypes + '"' + len > 0 ? ',' : ']' ; } yo . fs . copy ( yo . templatePath ( '_' + configFile ) , yo . destinationPath ( '/' + configFile ) , { process : function ( contents ) { var fileString = contents . toString ( ) ; fileString = context . _replaceTag ( fileString , 'FILE-MASK' , fileTypes ) ; return context . _replaceTag ( fileString , 'DEST' , yo . props . destFolder ) ; } } ) ; }
@description Writes a file based on a template
@description Writes a file based on a template