Group all build time generated resource under a 'res' directory
This commit is contained in:
parent
77d3a5190d
commit
01c3b148e6
@ -9,5 +9,5 @@ module.exports = {
|
|||||||
core: {
|
core: {
|
||||||
builder: "webpack5"
|
builder: "webpack5"
|
||||||
},
|
},
|
||||||
staticDirs: ["./static", "../dist/public"]
|
staticDirs: ["./static", "../dist/res/public"]
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,12 @@ export async function createAccountV1Dir() {
|
|||||||
keycloakVersion: KEYCLOAK_VERSION.FOR_ACCOUNT_MULTI_PAGE
|
keycloakVersion: KEYCLOAK_VERSION.FOR_ACCOUNT_MULTI_PAGE
|
||||||
});
|
});
|
||||||
|
|
||||||
const destDirPath = pathJoin(getThisCodebaseRootDirPath(), "dist", "account-v1");
|
const destDirPath = pathJoin(
|
||||||
|
getThisCodebaseRootDirPath(),
|
||||||
|
"dist",
|
||||||
|
"res",
|
||||||
|
"account-v1"
|
||||||
|
);
|
||||||
|
|
||||||
await fsPr.rm(destDirPath, { recursive: true, force: true });
|
await fsPr.rm(destDirPath, { recursive: true, force: true });
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ export async function createPublicDotKeycloakifyDir() {
|
|||||||
const destDirPath = pathJoin(
|
const destDirPath = pathJoin(
|
||||||
getThisCodebaseRootDirPath(),
|
getThisCodebaseRootDirPath(),
|
||||||
"dist",
|
"dist",
|
||||||
|
"res",
|
||||||
"public",
|
"public",
|
||||||
WELL_KNOWN_DIRECTORY_BASE_NAME.DOT_KEYCLOAKIFY,
|
WELL_KNOWN_DIRECTORY_BASE_NAME.DOT_KEYCLOAKIFY,
|
||||||
themeType
|
themeType
|
||||||
|
@ -67,7 +67,10 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
|
|||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
themePropertyFilePath,
|
themePropertyFilePath,
|
||||||
Buffer.from(
|
Buffer.from(
|
||||||
`parent=base\n${fs.readFileSync(themePropertyFilePath).toString("utf8")}`,
|
[
|
||||||
|
`parent=base`,
|
||||||
|
fs.readFileSync(themePropertyFilePath).toString("utf8")
|
||||||
|
].join("\n"),
|
||||||
"utf8"
|
"utf8"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -310,7 +310,7 @@ export async function generateResourcesForMainTheme(params: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
transformCodebase({
|
transformCodebase({
|
||||||
srcDirPath: pathJoin(getThisCodebaseRootDirPath(), "account-v1"),
|
srcDirPath: pathJoin(getThisCodebaseRootDirPath(), "res", "account-v1"),
|
||||||
destDirPath: pathJoin(resourcesDirPath, "theme", "account-v1", "account")
|
destDirPath: pathJoin(resourcesDirPath, "theme", "account-v1", "account")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,7 @@ export function copyKeycloakResourcesToPublic(params: {
|
|||||||
transformCodebase({
|
transformCodebase({
|
||||||
srcDirPath: pathJoin(
|
srcDirPath: pathJoin(
|
||||||
getThisCodebaseRootDirPath(),
|
getThisCodebaseRootDirPath(),
|
||||||
|
"res",
|
||||||
"public",
|
"public",
|
||||||
WELL_KNOWN_DIRECTORY_BASE_NAME.DOT_KEYCLOAKIFY
|
WELL_KNOWN_DIRECTORY_BASE_NAME.DOT_KEYCLOAKIFY
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user