Checkpoint

This commit is contained in:
Joseph Garrone 2024-05-12 19:37:16 +02:00
parent 385cb85309
commit a26a813ad5
3 changed files with 24 additions and 23 deletions

View File

@ -10,6 +10,12 @@ export async function buildJar(params: {
keycloakifyBuildDirPath: string;
};
}): Promise<void> {
{
const { pomFileCode } = generatePom({ buildOptions });
fs.writeFileSync(pathJoin(buildOptions.keycloakifyBuildDirPath, "pom.xml"), Buffer.from(pomFileCode, "utf8"));
}
child_process.execSync("mvn clean install", { "cwd": buildOptions.keycloakifyBuildDirPath });
// TODO: Implement
}

View File

@ -1,5 +1,4 @@
import { generateTheme } from "./generateTheme";
import { generatePom } from "./generatePom";
import { join as pathJoin, relative as pathRelative, sep as pathSep } from "path";
import * as child_process from "child_process";
import { generateStartKeycloakTestingContainer } from "./generateStartKeycloakTestingContainer";
@ -23,6 +22,9 @@ export async function main() {
const { themeSrcDirPath } = getThemeSrcDirPath({ "reactAppRootDirPath": buildOptions.reactAppRootDirPath });
fs.writeFileSync(pathJoin(buildOptions.keycloakifyBuildDirPath, ".gitignore"), Buffer.from("*", "utf8"));
{
const [themeName, ...themeVariantNames] = buildOptions.themeNames;
const { implementedThemeTypes } = await generateTheme({
@ -41,15 +43,8 @@ export async function main() {
buildOptions
});
}
{
const { pomFileCode } = generatePom({ buildOptions });
fs.writeFileSync(pathJoin(buildOptions.keycloakifyBuildDirPath, "pom.xml"), Buffer.from(pomFileCode, "utf8"));
}
fs.writeFileSync(pathJoin(buildOptions.keycloakifyBuildDirPath, ".gitignore"), Buffer.from("*", "utf8"));
run_post_build_script: {
if (buildOptions.bundler !== "vite") {
break run_post_build_script;