packages/generator-liferay-theme/lib/utils/Copier.js
/**
	 * Instantiate a Yeoman template file.
	 * @param  {String} src path to template
	 * @param  {Object} context optional context object to use when
	 * 						instantiating the template (defaults to {})
	 * @param  {String} dest optional destination name (defaults to src)
	 * @param  {boolean} rawCopy file is not a template
	 */
Instantiate a Yeoman template file.
@param  {String} src path to template
@param  {Object} context optional context object to use when
instantiating the template (defaults to {})
@param  {String} dest optional destination name (defaults to src)
@param  {boolean} rawCopy file is not a template
Instantiate a Yeoman template file . @param { String } src path to template @param { Object } context optional context object to use when instantiating the template ( defaults to {} ) @param { String } dest optional destination name ( defaults to src ) @param { boolean } rawCopy file is not a template
copyFile(src, {context = {}, dest, rawCopy = false} = {}) {
		const gen = this._generator;
		const fullContext = {
			...gen.answers,
			...context,
		};
		dest = dest || src;
		gen.fs.copyTpl(
			gen.templatePath(rawCopy ? src : `${src}.ejs`),
			gen.destinationPath(dest),
			fullContext
		);
	}
copyFile ( src , { context = { } , dest , rawCopy = false } = { } ) { const gen = this . _generator ; const fullContext = { ... gen . answers , ... context , } ; dest = dest || src ; gen . fs . copyTpl ( gen . templatePath ( rawCopy ? src : ` ${ src } ` ) , gen . destinationPath ( dest ) , fullContext ) ; }
Instantiate a Yeoman template file.
Instantiate a Yeoman template file .