Update initialize-email-theme script
This commit is contained in:
@ -34,7 +34,15 @@ import { getLogger } from "./tools/logger";
|
|||||||
"destDirPath": keycloakThemeEmailDirPath
|
"destDirPath": keycloakThemeEmailDirPath
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.log(`${pathRelative(process.cwd(), keycloakThemeEmailDirPath)} ready to be customized`);
|
{
|
||||||
|
const themePropertyFilePath = pathJoin(keycloakThemeEmailDirPath, "theme.properties");
|
||||||
|
|
||||||
|
fs.writeFileSync(themePropertyFilePath, Buffer.from(`parent=base\n${fs.readFileSync(themePropertyFilePath).toString("utf8")}`, "utf8"));
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.log(
|
||||||
|
`${pathRelative(process.cwd(), keycloakThemeEmailDirPath)} ready to be customized, feel free to remove every file you do not customize`
|
||||||
|
);
|
||||||
|
|
||||||
fs.rmSync(builtinKeycloakThemeTmpDirPath, { "recursive": true, "force": true });
|
fs.rmSync(builtinKeycloakThemeTmpDirPath, { "recursive": true, "force": true });
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user