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({
|
2021-03-05 20:43:22 +01:00
|
|
|
"url": "https://github.com/garronej/keycloakify/releases/download/v0.0.1/sample_build_dir_and_package_json.zip",
|
2022-08-20 11:44:48 +07:00
|
|
|
"destDirPath": sampleReactProjectDirPath
|
2021-03-03 02:31:02 +01:00
|
|
|
});
|
|
|
|
}
|