Checkpoint
This commit is contained in:
parent
a26a813ad5
commit
88fa63d848
@ -22,27 +22,31 @@ 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"));
|
|
||||||
|
|
||||||
{
|
{
|
||||||
const [themeName, ...themeVariantNames] = buildOptions.themeNames;
|
if (!fs.existsSync(buildOptions.keycloakifyBuildDirPath)) {
|
||||||
|
fs.mkdirSync(buildOptions.keycloakifyBuildDirPath, { "recursive": true });
|
||||||
|
}
|
||||||
|
|
||||||
const { implementedThemeTypes } = await generateTheme({
|
fs.writeFileSync(pathJoin(buildOptions.keycloakifyBuildDirPath, ".gitignore"), Buffer.from("*", "utf8"));
|
||||||
|
}
|
||||||
|
|
||||||
|
const [themeName, ...themeVariantNames] = buildOptions.themeNames;
|
||||||
|
|
||||||
|
const { implementedThemeTypes } = await generateTheme({
|
||||||
|
themeName,
|
||||||
|
themeSrcDirPath,
|
||||||
|
"keycloakifySrcDirPath": pathJoin(getThisCodebaseRootDirPath(), "src"),
|
||||||
|
"keycloakifyVersion": readThisNpmProjectVersion(),
|
||||||
|
buildOptions
|
||||||
|
});
|
||||||
|
|
||||||
|
for (const themeVariantName of themeVariantNames) {
|
||||||
|
generateThemeVariations({
|
||||||
themeName,
|
themeName,
|
||||||
themeSrcDirPath,
|
themeVariantName,
|
||||||
"keycloakifySrcDirPath": pathJoin(getThisCodebaseRootDirPath(), "src"),
|
implementedThemeTypes,
|
||||||
"keycloakifyVersion": readThisNpmProjectVersion(),
|
|
||||||
buildOptions
|
buildOptions
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const themeVariantName of themeVariantNames) {
|
|
||||||
generateThemeVariations({
|
|
||||||
themeName,
|
|
||||||
themeVariantName,
|
|
||||||
implementedThemeTypes,
|
|
||||||
buildOptions
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_post_build_script: {
|
run_post_build_script: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user