keycloakify 11.6.0 → 11.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/{805.index.js → 174.index.js} +111 -2
- package/bin/363.index.js +1528 -0
- package/bin/453.index.js +1 -1
- package/bin/{33.index.js → 568.index.js} +2 -113
- package/bin/735.index.js +53 -24
- package/bin/{653.index.js → 840.index.js} +387 -213
- package/bin/921.index.js +1 -1
- package/bin/930.index.js +165 -0
- package/bin/946.index.js +20 -0
- package/bin/initialize-admin-theme.d.ts +4 -0
- package/bin/main.js +72 -18
- package/bin/{eject-file.d.ts → own.d.ts} +2 -1
- package/bin/shared/addSyncExtensionsToPostinstallScript.d.ts +10 -0
- package/bin/shared/customHandler.d.ts +1 -1
- package/bin/shared/customHandler.js.map +1 -1
- package/bin/{postinstall/uiModuleMeta.d.ts → sync-extensions/extensionModuleMeta.d.ts} +5 -5
- package/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.d.ts +12 -0
- package/bin/sync-extensions/index.d.ts +1 -0
- package/bin/{postinstall/installUiModulesPeerDependencies.d.ts → sync-extensions/installExtensionModulesPeerDependencies.d.ts} +3 -3
- package/bin/{postinstall → sync-extensions}/managedGitignoreFile.d.ts +4 -4
- package/bin/tools/isKnownByGit.d.ts +3 -0
- package/bin/tools/npmInstall.d.ts +1 -1
- package/package.json +27 -22
- package/src/bin/eject-page.ts +1 -3
- package/src/bin/initialize-account-theme/initializeAccountTheme_singlePage.ts +3 -1
- package/src/bin/initialize-admin-theme.ts +146 -0
- package/src/bin/main.ts +76 -17
- package/src/bin/own.ts +209 -0
- package/src/bin/shared/addSyncExtensionsToPostinstallScript.ts +70 -0
- package/src/bin/shared/customHandler.ts +1 -0
- package/src/bin/{postinstall/uiModuleMeta.ts → sync-extensions/extensionModuleMeta.ts} +55 -43
- package/src/bin/{postinstall/getUiModuleFileSourceCodeReadyToBeCopied.ts → sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts} +32 -21
- package/src/bin/sync-extensions/index.ts +1 -0
- package/src/bin/{postinstall/installUiModulesPeerDependencies.ts → sync-extensions/installExtensionModulesPeerDependencies.ts} +16 -14
- package/src/bin/{postinstall → sync-extensions}/managedGitignoreFile.ts +18 -18
- package/src/bin/{postinstall/postinstall.ts → sync-extensions/sync-extension.ts} +14 -26
- package/src/bin/tools/isKnownByGit.ts +45 -0
- package/src/bin/tools/listInstalledModules.ts +2 -2
- package/src/bin/tools/npmInstall.ts +46 -9
- package/src/bin/tools/untrackFromGit.ts +19 -3
- package/bin/356.index.js +0 -755
- package/bin/854.index.js +0 -68
- package/bin/postinstall/getUiModuleFileSourceCodeReadyToBeCopied.d.ts +0 -12
- package/bin/postinstall/index.d.ts +0 -1
- package/bin/tools/isTrackedByGit.d.ts +0 -3
- package/src/bin/eject-file.ts +0 -68
- package/src/bin/postinstall/index.ts +0 -1
- package/src/bin/tools/isTrackedByGit.ts +0 -29
- /package/bin/{postinstall/postinstall.d.ts → sync-extensions/sync-extension.d.ts} +0 -0
package/bin/854.index.js
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
exports.id = 854;
|
3
|
-
exports.ids = [854];
|
4
|
-
exports.modules = {
|
5
|
-
|
6
|
-
/***/ 85854:
|
7
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8
|
-
|
9
|
-
__webpack_require__.r(__webpack_exports__);
|
10
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11
|
-
/* harmony export */ "command": () => (/* binding */ command)
|
12
|
-
/* harmony export */ });
|
13
|
-
/* harmony import */ var _postinstall_getUiModuleFileSourceCodeReadyToBeCopied__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6385);
|
14
|
-
/* harmony import */ var _tools_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84794);
|
15
|
-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71017);
|
16
|
-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__);
|
17
|
-
/* harmony import */ var _postinstall_uiModuleMeta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5038);
|
18
|
-
/* harmony import */ var _tools_getInstalledModuleDirPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21022);
|
19
|
-
/* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(73292);
|
20
|
-
/* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_5__);
|
21
|
-
/* harmony import */ var _postinstall_managedGitignoreFile__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36843);
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
async function command(params) {
|
30
|
-
const { buildContext, cliCommandOptions } = params;
|
31
|
-
const fileRelativePath = (0,path__WEBPACK_IMPORTED_MODULE_2__.relative)(buildContext.themeSrcDirPath, (0,_tools_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_1__/* .getAbsoluteAndInOsFormatPath */ .c)({
|
32
|
-
cwd: buildContext.themeSrcDirPath,
|
33
|
-
pathIsh: cliCommandOptions.file
|
34
|
-
}));
|
35
|
-
const uiModuleMetas = await (0,_postinstall_uiModuleMeta__WEBPACK_IMPORTED_MODULE_3__/* .getUiModuleMetas */ .j)({ buildContext });
|
36
|
-
const uiModuleMeta = uiModuleMetas.find(({ files }) => files.map(({ fileRelativePath }) => fileRelativePath).includes(fileRelativePath));
|
37
|
-
if (!uiModuleMeta) {
|
38
|
-
throw new Error(`No UI module found for the file ${fileRelativePath}`);
|
39
|
-
}
|
40
|
-
const uiModuleDirPath = await (0,_tools_getInstalledModuleDirPath__WEBPACK_IMPORTED_MODULE_4__/* .getInstalledModuleDirPath */ .p)({
|
41
|
-
moduleName: uiModuleMeta.moduleName,
|
42
|
-
packageJsonDirPath: (0,path__WEBPACK_IMPORTED_MODULE_2__.dirname)(buildContext.packageJsonFilePath),
|
43
|
-
projectDirPath: buildContext.projectDirPath
|
44
|
-
});
|
45
|
-
const sourceCode = await (0,_postinstall_getUiModuleFileSourceCodeReadyToBeCopied__WEBPACK_IMPORTED_MODULE_0__/* .getUiModuleFileSourceCodeReadyToBeCopied */ .X)({
|
46
|
-
buildContext,
|
47
|
-
fileRelativePath,
|
48
|
-
isForEjection: true,
|
49
|
-
uiModuleName: uiModuleMeta.moduleName,
|
50
|
-
uiModuleDirPath,
|
51
|
-
uiModuleVersion: uiModuleMeta.version
|
52
|
-
});
|
53
|
-
await fs_promises__WEBPACK_IMPORTED_MODULE_5__.writeFile((0,path__WEBPACK_IMPORTED_MODULE_2__.join)(buildContext.themeSrcDirPath, fileRelativePath), sourceCode);
|
54
|
-
const { ejectedFilesRelativePaths } = await (0,_postinstall_managedGitignoreFile__WEBPACK_IMPORTED_MODULE_6__/* .readManagedGitignoreFile */ .w)({
|
55
|
-
buildContext
|
56
|
-
});
|
57
|
-
await (0,_postinstall_managedGitignoreFile__WEBPACK_IMPORTED_MODULE_6__/* .writeManagedGitignoreFile */ .Y)({
|
58
|
-
buildContext,
|
59
|
-
uiModuleMetas,
|
60
|
-
ejectedFilesRelativePaths: [...ejectedFilesRelativePaths, fileRelativePath]
|
61
|
-
});
|
62
|
-
}
|
63
|
-
//# sourceMappingURL=eject-file.js.map
|
64
|
-
|
65
|
-
/***/ })
|
66
|
-
|
67
|
-
};
|
68
|
-
;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
export type BuildContextLike = {
|
3
|
-
themeSrcDirPath: string;
|
4
|
-
};
|
5
|
-
export declare function getUiModuleFileSourceCodeReadyToBeCopied(params: {
|
6
|
-
buildContext: BuildContextLike;
|
7
|
-
fileRelativePath: string;
|
8
|
-
isForEjection: boolean;
|
9
|
-
uiModuleDirPath: string;
|
10
|
-
uiModuleName: string;
|
11
|
-
uiModuleVersion: string;
|
12
|
-
}): Promise<Buffer>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./postinstall";
|
package/src/bin/eject-file.ts
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
import type { BuildContext } from "./shared/buildContext";
|
2
|
-
import { getUiModuleFileSourceCodeReadyToBeCopied } from "./postinstall/getUiModuleFileSourceCodeReadyToBeCopied";
|
3
|
-
import { getAbsoluteAndInOsFormatPath } from "./tools/getAbsoluteAndInOsFormatPath";
|
4
|
-
import { relative as pathRelative, dirname as pathDirname, join as pathJoin } from "path";
|
5
|
-
import { getUiModuleMetas } from "./postinstall/uiModuleMeta";
|
6
|
-
import { getInstalledModuleDirPath } from "./tools/getInstalledModuleDirPath";
|
7
|
-
import * as fsPr from "fs/promises";
|
8
|
-
import {
|
9
|
-
readManagedGitignoreFile,
|
10
|
-
writeManagedGitignoreFile
|
11
|
-
} from "./postinstall/managedGitignoreFile";
|
12
|
-
|
13
|
-
export async function command(params: {
|
14
|
-
buildContext: BuildContext;
|
15
|
-
cliCommandOptions: {
|
16
|
-
file: string;
|
17
|
-
};
|
18
|
-
}) {
|
19
|
-
const { buildContext, cliCommandOptions } = params;
|
20
|
-
|
21
|
-
const fileRelativePath = pathRelative(
|
22
|
-
buildContext.themeSrcDirPath,
|
23
|
-
getAbsoluteAndInOsFormatPath({
|
24
|
-
cwd: buildContext.themeSrcDirPath,
|
25
|
-
pathIsh: cliCommandOptions.file
|
26
|
-
})
|
27
|
-
);
|
28
|
-
|
29
|
-
const uiModuleMetas = await getUiModuleMetas({ buildContext });
|
30
|
-
|
31
|
-
const uiModuleMeta = uiModuleMetas.find(({ files }) =>
|
32
|
-
files.map(({ fileRelativePath }) => fileRelativePath).includes(fileRelativePath)
|
33
|
-
);
|
34
|
-
|
35
|
-
if (!uiModuleMeta) {
|
36
|
-
throw new Error(`No UI module found for the file ${fileRelativePath}`);
|
37
|
-
}
|
38
|
-
|
39
|
-
const uiModuleDirPath = await getInstalledModuleDirPath({
|
40
|
-
moduleName: uiModuleMeta.moduleName,
|
41
|
-
packageJsonDirPath: pathDirname(buildContext.packageJsonFilePath),
|
42
|
-
projectDirPath: buildContext.projectDirPath
|
43
|
-
});
|
44
|
-
|
45
|
-
const sourceCode = await getUiModuleFileSourceCodeReadyToBeCopied({
|
46
|
-
buildContext,
|
47
|
-
fileRelativePath,
|
48
|
-
isForEjection: true,
|
49
|
-
uiModuleName: uiModuleMeta.moduleName,
|
50
|
-
uiModuleDirPath,
|
51
|
-
uiModuleVersion: uiModuleMeta.version
|
52
|
-
});
|
53
|
-
|
54
|
-
await fsPr.writeFile(
|
55
|
-
pathJoin(buildContext.themeSrcDirPath, fileRelativePath),
|
56
|
-
sourceCode
|
57
|
-
);
|
58
|
-
|
59
|
-
const { ejectedFilesRelativePaths } = await readManagedGitignoreFile({
|
60
|
-
buildContext
|
61
|
-
});
|
62
|
-
|
63
|
-
await writeManagedGitignoreFile({
|
64
|
-
buildContext,
|
65
|
-
uiModuleMetas,
|
66
|
-
ejectedFilesRelativePaths: [...ejectedFilesRelativePaths, fileRelativePath]
|
67
|
-
});
|
68
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./postinstall";
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import * as child_process from "child_process";
|
2
|
-
import { dirname as pathDirname, basename as pathBasename } from "path";
|
3
|
-
import { Deferred } from "evt/tools/Deferred";
|
4
|
-
|
5
|
-
export function getIsTrackedByGit(params: { filePath: string }): Promise<boolean> {
|
6
|
-
const { filePath } = params;
|
7
|
-
|
8
|
-
const dIsTracked = new Deferred<boolean>();
|
9
|
-
|
10
|
-
child_process.exec(
|
11
|
-
`git ls-files --error-unmatch ${pathBasename(filePath)}`,
|
12
|
-
{ cwd: pathDirname(filePath) },
|
13
|
-
error => {
|
14
|
-
if (error === null) {
|
15
|
-
dIsTracked.resolve(true);
|
16
|
-
return;
|
17
|
-
}
|
18
|
-
|
19
|
-
if (error.code === 1) {
|
20
|
-
dIsTracked.resolve(false);
|
21
|
-
return;
|
22
|
-
}
|
23
|
-
|
24
|
-
dIsTracked.reject(error);
|
25
|
-
}
|
26
|
-
);
|
27
|
-
|
28
|
-
return dIsTracked.pr;
|
29
|
-
}
|
File without changes
|