minor update
This commit is contained in:
parent
ba2717acf1
commit
47708d222e
12
package-lock.json
generated
12
package-lock.json
generated
@ -938,9 +938,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/yargs-parser": {
|
"node_modules/yargs-parser": {
|
||||||
"version": "20.2.5",
|
"version": "20.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.6.tgz",
|
||||||
"integrity": "sha512-jYRGS3zWy20NtDtK2kBgo/TlAoy5YUuhD9/LZ7z7W4j1Fdw2cqD0xEEclf8fxc8xjD6X5Qr+qQQwCEsP8iRiYg==",
|
"integrity": "sha512-AP1+fQIWSM/sMiET8fyayjx/J+JmTPt2Mr0FkrgqB4todtfa53sOsrSAcIrJRD5XS20bKUwaDIuMkWKCEiQLKA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
@ -1699,9 +1699,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yargs-parser": {
|
"yargs-parser": {
|
||||||
"version": "20.2.5",
|
"version": "20.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.6.tgz",
|
||||||
"integrity": "sha512-jYRGS3zWy20NtDtK2kBgo/TlAoy5YUuhD9/LZ7z7W4j1Fdw2cqD0xEEclf8fxc8xjD6X5Qr+qQQwCEsP8iRiYg==",
|
"integrity": "sha512-AP1+fQIWSM/sMiET8fyayjx/J+JmTPt2Mr0FkrgqB4todtfa53sOsrSAcIrJRD5XS20bKUwaDIuMkWKCEiQLKA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,23 @@
|
|||||||
|
|
||||||
import { setupSampleReactProject } from "./setupSampleReactProject";
|
import {
|
||||||
|
setupSampleReactProject,
|
||||||
|
sampleReactProjectDirPath
|
||||||
|
} from "./setupSampleReactProject";
|
||||||
import * as st from "scripting-tools";
|
import * as st from "scripting-tools";
|
||||||
import { join as pathJoin } from "path";
|
import { join as pathJoin } from "path";
|
||||||
|
|
||||||
const { sampleReactProjectDirPath } = setupSampleReactProject();
|
|
||||||
|
setupSampleReactProject();
|
||||||
|
|
||||||
|
|
||||||
console.log(`Running main in ${sampleReactProjectDirPath}`);
|
console.log(`Running main in ${sampleReactProjectDirPath}`);
|
||||||
|
|
||||||
st.execSync(
|
console.log(
|
||||||
`node ${pathJoin(__dirname, "../bin/build-keycloak-theme")}`,
|
st.execSync(
|
||||||
{ "cwd": sampleReactProjectDirPath }
|
`node ${pathJoin(__dirname, "../bin/build-keycloak-theme")}`,
|
||||||
|
{ "cwd": sampleReactProjectDirPath }
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
|
||||||
import { join as pathJoin } from "path";
|
import { join as pathJoin } from "path";
|
||||||
import { generateKeycloakThemeResources } from "../bin/build-keycloak-theme/generateKeycloakThemeResources";
|
import { generateKeycloakThemeResources } from "../bin/build-keycloak-theme/generateKeycloakThemeResources";
|
||||||
import { setupSampleReactProject } from "./setupSampleReactProject";
|
import {
|
||||||
|
setupSampleReactProject,
|
||||||
|
sampleReactProjectDirPath
|
||||||
|
} from "./setupSampleReactProject";
|
||||||
|
|
||||||
const { sampleReactProjectDirPath } = setupSampleReactProject();
|
setupSampleReactProject();
|
||||||
|
|
||||||
generateKeycloakThemeResources({
|
generateKeycloakThemeResources({
|
||||||
"themeName": "onyxia-ui",
|
"themeName": "onyxia-ui",
|
||||||
|
@ -16,6 +16,4 @@ export function setupSampleReactProject() {
|
|||||||
...["unzip", "rm"].map(prg => `${prg} ${pathBasename(url)}`)
|
...["unzip", "rm"].map(prg => `${prg} ${pathBasename(url)}`)
|
||||||
].forEach(cmd => st.execSync(cmd, { "cwd": sampleReactProjectDirPath }));
|
].forEach(cmd => st.execSync(cmd, { "cwd": sampleReactProjectDirPath }));
|
||||||
|
|
||||||
return { sampleReactProjectDirPath };
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user