refactor
This commit is contained in:
parent
ee3fd977c1
commit
98ff75daff
1163
package-lock.json
generated
1163
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@ -6,18 +6,17 @@
|
||||
"type": "git",
|
||||
"url": "git://github.com/garronej/keycloak-react-theming.git"
|
||||
},
|
||||
"main": "src/index.js",
|
||||
"babel": {
|
||||
"presets": [
|
||||
"@babel/preset-env",
|
||||
"@babel/preset-react"
|
||||
]
|
||||
},
|
||||
"main": "dist/lib/index.js",
|
||||
"types": "dist/lib/index.d.ts",
|
||||
"scripts": {
|
||||
"start": "webpack-dev-server --open",
|
||||
"create": "webpack",
|
||||
"build": "npm run tsc && npm run grant-exec-perms",
|
||||
"grant-exec-perms": "chmod +x dist/bin/build-keycloak-theme/index.js",
|
||||
"test": "node dist/test/build-keycloak-theme.js",
|
||||
"enable_short_import_path": "npm run build && denoify_enable_short_npm_import_path"
|
||||
},
|
||||
"bin": {
|
||||
"build-keycloak-theme": "dist/bin/build-keycloak-theme"
|
||||
},
|
||||
"author": "u/garronej",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
@ -27,17 +26,20 @@
|
||||
"!dist/test/",
|
||||
"!dist/tsconfig.tsbuildinfo"
|
||||
],
|
||||
"keywords": [],
|
||||
"keywords": [
|
||||
"keycloak",
|
||||
"react",
|
||||
"theme"
|
||||
],
|
||||
"homepage": "https://github.com/garronej/keycloak-react-theming",
|
||||
"devDependencies": {
|
||||
"@types/node": "^10.0.0",
|
||||
"denoify": "^0.6.4",
|
||||
"evt": "beta",
|
||||
"typescript": "^4.1.5"
|
||||
"typescript": "^4.1.5",
|
||||
"scripting-tools": "^0.19.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"scripting-tools": "^0.19.13",
|
||||
"cheerio": "^1.0.0-rc.5",
|
||||
"node-html-parser": "^2.1.0"
|
||||
"cheerio": "^1.0.0-rc.5"
|
||||
}
|
||||
}
|
||||
}
|
@ -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",
|
||||
|
@ -2,6 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"target": "es5",
|
||||
"baseUrl": "src",
|
||||
"lib": ["es2015", "DOM"],
|
||||
"esModuleInterop": true,
|
||||
"declaration": true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user