Multiple fixes

This commit is contained in:
Joseph Garrone
2021-02-28 19:56:01 +01:00
parent a09157fe98
commit 8ff05917f2
6 changed files with 8 additions and 845 deletions

View File

@ -1,6 +1,5 @@
#!/usr/bin/env node
import { join as pathJoin } from "path";
import { keycloakThemeBuildingDirPath } from "./build-keycloak-theme";
import { downloadAndUnzip } from "./tools/downloadAndUnzip";
@ -12,8 +11,8 @@ if (require.main === module) {
console.log("execute!");
downloadAndUnzip({
"url": keycloakThemeBuildingDirPath,
"destDirPath": pathJoin(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme")
"url": keycloakBuiltinThemesAndThirdPartyExamplesThemsUrl,
"destDirPath": keycloakThemeBuildingDirPath
});
}

View File

@ -15,7 +15,7 @@ console.log(`Running main in ${sampleReactProjectDirPath}`);
console.log(
st.execSync(
`node ${pathJoin(getProjectRoot(), "src", "bin", "build-keycloak-theme")}`,
`node ${pathJoin(getProjectRoot(), "dist", "bin", "build-keycloak-theme")}`,
{ "cwd": sampleReactProjectDirPath }
)
);

View File

@ -7,7 +7,7 @@ import { getProjectRoot } from "../bin/tools/getProjectRoot";
console.log(`Running main in ${sampleReactProjectDirPath}`);
st.execSync(
`node ${pathJoin(getProjectRoot(), "src","bin","download-sample-keycloak-themes")}`,
`node ${pathJoin(getProjectRoot(), "dist","bin","download-sample-keycloak-themes")}`,
{ "cwd": sampleReactProjectDirPath }
);