2022-07-29 01:31:55 +02:00
|
|
|
import { getProjectRoot } from "../../bin/tools/getProjectRoot.js";
|
2021-03-03 02:31:02 +01:00
|
|
|
import { join as pathJoin } from "path";
|
2021-06-28 04:04:48 +02:00
|
|
|
import { downloadAndUnzip } from "../../bin/tools/downloadAndUnzip";
|
2021-02-21 20:54:33 +01:00
|
|
|
|
2021-10-12 00:26:29 +02:00
|
|
|
export const sampleReactProjectDirPath = pathJoin(getProjectRoot(), "sample_react_project");
|
2021-02-21 20:54:33 +01:00
|
|
|
|
2021-02-21 23:06:42 +01:00
|
|
|
export function setupSampleReactProject() {
|
2021-03-03 02:31:02 +01:00
|
|
|
downloadAndUnzip({
|
2022-08-22 17:17:35 +07:00
|
|
|
"url": "https://github.com/InseeFrLab/keycloakify/releases/download/v0.0.1/sample_build_dir_and_package_json.zip",
|
|
|
|
"destDirPath": sampleReactProjectDirPath,
|
|
|
|
"cacheDirPath": pathJoin(sampleReactProjectDirPath, "build_keycloak", ".cache")
|
2021-03-03 02:31:02 +01:00
|
|
|
});
|
|
|
|
}
|