25 lines
675 B
TypeScript
Raw Normal View History

2021-02-21 20:54:33 +01:00
2021-03-04 21:43:36 +01:00
2021-02-22 12:11:00 +01:00
import {
2021-03-03 02:31:02 +01:00
setupSampleReactProject,
2021-02-22 12:11:00 +01:00
sampleReactProjectDirPath
} from "./setupSampleReactProject";
2021-02-21 23:06:42 +01:00
import * as st from "scripting-tools";
import { join as pathJoin } from "path";
2021-03-03 02:31:02 +01:00
import { getProjectRoot } from "../bin/tools/getProjectRoot";
2021-02-22 12:11:00 +01:00
setupSampleReactProject();
2021-03-04 21:43:36 +01:00
const binDirPath= pathJoin(getProjectRoot(), "dist", "bin");
2021-03-03 02:31:02 +01:00
st.execSyncTrace(
2021-04-11 18:18:52 +02:00
//`node ${pathJoin(binDirPath, "build-keycloak-theme")} --external-assets`,
2021-03-04 21:43:36 +01:00
`node ${pathJoin(binDirPath, "build-keycloak-theme")}`,
2021-03-03 02:31:02 +01:00
{ "cwd": sampleReactProjectDirPath }
2021-03-04 21:43:36 +01:00
);
2021-02-21 20:54:33 +01:00
2021-03-04 21:43:36 +01:00
st.execSyncTrace(
`node ${pathJoin(binDirPath, "install-builtin-keycloak-themes")}`,
{ "cwd": sampleReactProjectDirPath }
);