This commit is contained in:
Joseph Garrone
2021-02-21 21:16:43 +01:00
parent ee3fd977c1
commit 98ff75daff
12 changed files with 27 additions and 1182 deletions

View File

@ -0,0 +1,24 @@
import { generateKeycloakThemeResources } from "./generateKeycloakThemeResources";
import { generateJavaStackFiles } from "./generateJavaStackFiles";
import type { ParsedPackageJson } from "./generateJavaStackFiles";
import { join as pathJoin } from "path";
import * as child_process from "child_process";
const reactProjectDirPath = process.cwd();
const parsedPackageJson: ParsedPackageJson = require(pathJoin(reactProjectDirPath, "package.json"));
const keycloakThemeBuildingDirPath = pathJoin(reactProjectDirPath, "build_keycloak");
generateKeycloakThemeResources({
keycloakThemeBuildingDirPath,
"reactAppBuildDirPath": pathJoin(reactProjectDirPath, "build"),
"themeName": parsedPackageJson.name
});
generateJavaStackFiles({
parsedPackageJson,
keycloakThemeBuildingDirPath
});
child_process.execSync("mvn package");