Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_promptCallback(props) {
const liferayVersion = props.liferayVersion;
this.appname = props.themeId;
this.fontAwesome = props.fontAwesome;
const devDependenciesToInsert = devDependencies.default;
if (liferayVersion !== '*') {
if (this.fontAwesome) {
const fontAwesomeVersion =
devDependencies.optional['liferay-font-awesome'];
devDependenciesToInsert[
'liferay-font-awesome'
] = fontAwesomeVersion;
}
this.devDependencies = JSON.stringify(
devDependenciesToInsert,
null,
2
)
.split(/\n\s*/)
_promptCallback(props) {
const layoutId = props.layoutId;
const liferayVersion = props.liferayVersion;
this.layoutId = layoutId;
this.layoutName = props.layoutName;
this.liferayVersion = liferayVersion;
this.tasksVersion = devDependencies.default['liferay-theme-tasks'];
this.templateFilename = snakeCase(layoutId) + '.ftl';
this.themeLayout = false;
this.thumbnailFilename = snakeCase(layoutId) + '.png';
this._setPackageVersion(this.liferayVersion);
}