Checkpoint

This commit is contained in:
Joseph Garrone 2024-05-12 19:38:48 +02:00
parent a26a813ad5
commit 88fa63d848

View File

@ -22,9 +22,14 @@ export async function main() {
const { themeSrcDirPath } = getThemeSrcDirPath({ "reactAppRootDirPath": buildOptions.reactAppRootDirPath }); const { themeSrcDirPath } = getThemeSrcDirPath({ "reactAppRootDirPath": buildOptions.reactAppRootDirPath });
fs.writeFileSync(pathJoin(buildOptions.keycloakifyBuildDirPath, ".gitignore"), Buffer.from("*", "utf8"));
{ {
if (!fs.existsSync(buildOptions.keycloakifyBuildDirPath)) {
fs.mkdirSync(buildOptions.keycloakifyBuildDirPath, { "recursive": true });
}
fs.writeFileSync(pathJoin(buildOptions.keycloakifyBuildDirPath, ".gitignore"), Buffer.from("*", "utf8"));
}
const [themeName, ...themeVariantNames] = buildOptions.themeNames; const [themeName, ...themeVariantNames] = buildOptions.themeNames;
const { implementedThemeTypes } = await generateTheme({ const { implementedThemeTypes } = await generateTheme({
@ -43,7 +48,6 @@ export async function main() {
buildOptions buildOptions
}); });
} }
}
run_post_build_script: { run_post_build_script: {
if (buildOptions.bundler !== "vite") { if (buildOptions.bundler !== "vite") {