refactor
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
import { transformCodebase } from "../tools/transformCodebase";
|
||||
import { transformCodebase } from "tools/transformCodebase";
|
||||
import * as fs from "fs";
|
||||
import { join as pathJoin } from "path";
|
||||
import {
|
@ -2,6 +2,7 @@ import { generateKeycloakThemeResources } from "./generateKeycloakThemeResources
|
||||
import { generateJavaStackFiles } from "./generateJavaStackFiles";
|
||||
import type { ParsedPackageJson } from "./generateJavaStackFiles";
|
||||
import { join as pathJoin } from "path";
|
||||
import * as child_process from "child_process";
|
||||
|
||||
const reactProjectDirPath = process.cwd();
|
||||
|
||||
@ -20,3 +21,4 @@ generateJavaStackFiles({
|
||||
keycloakThemeBuildingDirPath
|
||||
});
|
||||
|
||||
child_process.execSync("mvn package");
|
3
src/lib/inex.ts
Normal file
3
src/lib/inex.ts
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
export { };
|
@ -7,5 +7,5 @@ process.chdir(sampleReactProjectDirPath);
|
||||
|
||||
console.log(`Running main in ${sampleReactProjectDirPath}`);
|
||||
|
||||
import("../bin/main");
|
||||
import("bin/build-keycloak-theme");
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
import { join as pathJoin } from "path";
|
||||
import { generateKeycloakThemeResources } from "../bin/generateKeycloakThemeResources";
|
||||
import { generateKeycloakThemeResources } from "bin/build-keycloak-theme/generateKeycloakThemeResources";
|
||||
import { setupSampleReactProject } from "./setupSampleReactProject";
|
||||
|
||||
const { sampleReactProjectDirPath } = setupSampleReactProject();
|
||||
|
@ -3,7 +3,7 @@ import {
|
||||
replaceImportFromStaticInJsCode,
|
||||
replaceImportFromStaticInCssCode,
|
||||
generateCssCodeToDefineGlobals
|
||||
} from "../bin/replaceImportFromStatic";
|
||||
} from "bin/build-keycloak-theme/replaceImportFromStatic";
|
||||
|
||||
const { fixedJsCode } = replaceImportFromStaticInJsCode({
|
||||
"ftlValuesGlobalName": "keycloakFtlValues",
|
||||
|
Reference in New Issue
Block a user