keycloak_theme/src/test/bin/setupSampleReactProject.ts

16 lines
529 B
TypeScript
Raw Normal View History

import { getProjectRoot } from "../../bin/tools/getProjectRoot";
2021-03-03 02:31:02 +01:00
import { join as pathJoin } from "path";
import { downloadAndUnzip } from "../../bin/tools/downloadAndUnzip";
2021-02-21 20:54:33 +01: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",
"destDirPath": sampleReactProjectDirPath,
2021-03-03 02:31:02 +01:00
});
}