keycloakify 11.9.9 → 11.9.11
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 511;
|
|
3
|
+
exports.ids = [511];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
6
|
/***/ 73817:
|
|
@@ -322,7 +322,7 @@ function recastParseTs(filePath) {
|
|
|
322
322
|
|
|
323
323
|
/***/ }),
|
|
324
324
|
|
|
325
|
-
/***/
|
|
325
|
+
/***/ 98511:
|
|
326
326
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
327
327
|
|
|
328
328
|
// ESM COMPAT FLAG
|
|
@@ -1509,6 +1509,22 @@ function generatePom(params) {
|
|
|
1509
1509
|
//# sourceMappingURL=generatePom.js.map
|
|
1510
1510
|
// EXTERNAL MODULE: ./dist/bin/tools/fs.existsAsync.js
|
|
1511
1511
|
var fs_existsAsync = __webpack_require__(43765);
|
|
1512
|
+
;// CONCATENATED MODULE: ./dist/bin/tools/tailVisualLines.js
|
|
1513
|
+
function tailVisualLines(s, n) {
|
|
1514
|
+
// Strip ANSI to avoid weird wraps (optional)
|
|
1515
|
+
const stripAnsi = (x) => x.replace(
|
|
1516
|
+
// minimal ANSI stripper
|
|
1517
|
+
// eslint-disable-next-line no-control-regex
|
|
1518
|
+
/\u001b\[[0-9;]*m/g, "");
|
|
1519
|
+
// Convert CR “redraw” runs into newlines,
|
|
1520
|
+
// then split on either \n or \r that aren’t part of \r\n pairs.
|
|
1521
|
+
const normalized = stripAnsi(s)
|
|
1522
|
+
// If a carriage return is used to redraw the line, turn it into a newline
|
|
1523
|
+
.replace(/\r(?!\n)/g, "\n");
|
|
1524
|
+
const lines = normalized.split(/\r?\n/);
|
|
1525
|
+
return lines.slice(-n).join("\n");
|
|
1526
|
+
}
|
|
1527
|
+
//# sourceMappingURL=tailVisualLines.js.map
|
|
1512
1528
|
;// CONCATENATED MODULE: ./dist/bin/keycloakify/buildJars/buildJar.js
|
|
1513
1529
|
|
|
1514
1530
|
|
|
@@ -1520,6 +1536,7 @@ var fs_existsAsync = __webpack_require__(43765);
|
|
|
1520
1536
|
|
|
1521
1537
|
|
|
1522
1538
|
|
|
1539
|
+
|
|
1523
1540
|
(0,assert/* assert */.h)();
|
|
1524
1541
|
async function buildJar(params) {
|
|
1525
1542
|
const { jarFileBasename, keycloakAccountV1Version, keycloakThemeAdditionalInfoExtensionVersion, resourcesDirPath, doesImplementAccountV1Theme, buildContext } = params;
|
|
@@ -1611,8 +1628,8 @@ async function buildJar(params) {
|
|
|
1611
1628
|
await promises_.writeFile((0,external_path_.join)(keycloakifyBuildCacheDirPath, "pom.xml"), Buffer.from(pomFileCode, "utf8"));
|
|
1612
1629
|
}
|
|
1613
1630
|
{
|
|
1614
|
-
const mvnBuildCmd = `mvn clean install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildCacheDirPath, ".m2")}"`;
|
|
1615
|
-
await new Promise((resolve, reject) => external_child_process_default().exec(mvnBuildCmd, { cwd: keycloakifyBuildCacheDirPath }, (error,
|
|
1631
|
+
const mvnBuildCmd = `mvn -B -ntp clean install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildCacheDirPath, ".m2")}"`;
|
|
1632
|
+
await new Promise((resolve, reject) => external_child_process_default().exec(mvnBuildCmd, { cwd: keycloakifyBuildCacheDirPath }, (error, stdout, stderr) => {
|
|
1616
1633
|
if (error !== null) {
|
|
1617
1634
|
console.log([
|
|
1618
1635
|
`Build jar failed: ${JSON.stringify({
|
|
@@ -1621,10 +1638,12 @@ async function buildJar(params) {
|
|
|
1621
1638
|
keycloakThemeAdditionalInfoExtensionVersion
|
|
1622
1639
|
}, null, 2)}`,
|
|
1623
1640
|
"",
|
|
1624
|
-
"
|
|
1625
|
-
"---",
|
|
1626
|
-
|
|
1627
|
-
"---",
|
|
1641
|
+
"Output of the `mvn clean install` command:",
|
|
1642
|
+
"---stdout---",
|
|
1643
|
+
tailVisualLines(stdout, 50),
|
|
1644
|
+
"---stderr---",
|
|
1645
|
+
tailVisualLines(stderr, 200),
|
|
1646
|
+
"------------",
|
|
1628
1647
|
"",
|
|
1629
1648
|
"Try running the following command to debug the issue (you are probably under a restricted network and you need to configure your proxy):",
|
|
1630
1649
|
`cd ${keycloakifyBuildCacheDirPath} && ${mvnBuildCmd}`
|
package/bin/main.js
CHANGED
|
@@ -16209,7 +16209,7 @@ program
|
|
|
16209
16209
|
.task({
|
|
16210
16210
|
skip,
|
|
16211
16211
|
handler: async ({ projectDirPath }) => {
|
|
16212
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(309), __nccwpck_require__.e(895), __nccwpck_require__.e(
|
|
16212
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(309), __nccwpck_require__.e(895), __nccwpck_require__.e(511)]).then(__nccwpck_require__.bind(__nccwpck_require__, 98511));
|
|
16213
16213
|
await command({ buildContext: (0,buildContext/* getBuildContext */.s)({ projectDirPath }) });
|
|
16214
16214
|
}
|
|
16215
16215
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tailVisualLines(s: string, n: number): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keycloakify",
|
|
3
|
-
"version": "11.9.
|
|
3
|
+
"version": "11.9.11",
|
|
4
4
|
"description": "Framework to create custom Keycloak UIs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -761,6 +761,7 @@
|
|
|
761
761
|
"src/bin/tools/partitionPromiseSettledResults.ts",
|
|
762
762
|
"src/bin/tools/readThisNpmPackageVersion.ts",
|
|
763
763
|
"src/bin/tools/runPrettier.ts",
|
|
764
|
+
"src/bin/tools/tailVisualLines.ts",
|
|
764
765
|
"src/bin/tools/transformCodebase.ts",
|
|
765
766
|
"src/bin/tsconfig.json",
|
|
766
767
|
"src/bin/update-kc-gen.ts",
|
|
@@ -1130,6 +1131,7 @@
|
|
|
1130
1131
|
"bin/tools/SemVer.d.ts",
|
|
1131
1132
|
"bin/tools/String.prototype.replaceAll.d.ts",
|
|
1132
1133
|
"bin/tools/Stringifyable.d.ts",
|
|
1134
|
+
"bin/tools/tailVisualLines.d.ts",
|
|
1133
1135
|
"bin/tools/transformCodebase.d.ts",
|
|
1134
1136
|
"bin/update-kc-gen.d.ts",
|
|
1135
1137
|
"bin/main.js",
|
|
@@ -1145,12 +1147,12 @@
|
|
|
1145
1147
|
"bin/40.index.js",
|
|
1146
1148
|
"bin/453.index.js",
|
|
1147
1149
|
"bin/502.index.js",
|
|
1150
|
+
"bin/511.index.js",
|
|
1148
1151
|
"bin/626.index.js",
|
|
1149
1152
|
"bin/656.index.js",
|
|
1150
1153
|
"bin/658.index.js",
|
|
1151
1154
|
"bin/675.index.js",
|
|
1152
1155
|
"bin/69.index.js",
|
|
1153
|
-
"bin/712.index.js",
|
|
1154
1156
|
"bin/720.index.js",
|
|
1155
1157
|
"bin/762.index.js",
|
|
1156
1158
|
"bin/780.index.js",
|
|
@@ -16,6 +16,7 @@ import { isInside } from "../../tools/isInside";
|
|
|
16
16
|
import child_process from "child_process";
|
|
17
17
|
import { rmSync } from "../../tools/fs.rmSync";
|
|
18
18
|
import { existsAsync } from "../../tools/fs.existsAsync";
|
|
19
|
+
import { tailVisualLines } from "../../tools/tailVisualLines";
|
|
19
20
|
|
|
20
21
|
export type BuildContextLike = BuildContextLike_generatePom & {
|
|
21
22
|
keycloakifyBuildDirPath: string;
|
|
@@ -221,13 +222,13 @@ export async function buildJar(params: {
|
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
{
|
|
224
|
-
const mvnBuildCmd = `mvn clean install -Dmaven.repo.local="${pathJoin(keycloakifyBuildCacheDirPath, ".m2")}"`;
|
|
225
|
+
const mvnBuildCmd = `mvn -B -ntp clean install -Dmaven.repo.local="${pathJoin(keycloakifyBuildCacheDirPath, ".m2")}"`;
|
|
225
226
|
|
|
226
227
|
await new Promise<void>((resolve, reject) =>
|
|
227
228
|
child_process.exec(
|
|
228
229
|
mvnBuildCmd,
|
|
229
230
|
{ cwd: keycloakifyBuildCacheDirPath },
|
|
230
|
-
(error,
|
|
231
|
+
(error, stdout, stderr) => {
|
|
231
232
|
if (error !== null) {
|
|
232
233
|
console.log(
|
|
233
234
|
[
|
|
@@ -241,10 +242,12 @@ export async function buildJar(params: {
|
|
|
241
242
|
2
|
|
242
243
|
)}`,
|
|
243
244
|
"",
|
|
244
|
-
"
|
|
245
|
-
"---",
|
|
246
|
-
|
|
247
|
-
"---",
|
|
245
|
+
"Output of the `mvn clean install` command:",
|
|
246
|
+
"---stdout---",
|
|
247
|
+
tailVisualLines(stdout, 50),
|
|
248
|
+
"---stderr---",
|
|
249
|
+
tailVisualLines(stderr, 200),
|
|
250
|
+
"------------",
|
|
248
251
|
"",
|
|
249
252
|
"Try running the following command to debug the issue (you are probably under a restricted network and you need to configure your proxy):",
|
|
250
253
|
`cd ${keycloakifyBuildCacheDirPath} && ${mvnBuildCmd}`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function tailVisualLines(s: string, n: number) {
|
|
2
|
+
// Strip ANSI to avoid weird wraps (optional)
|
|
3
|
+
const stripAnsi = (x: string) =>
|
|
4
|
+
x.replace(
|
|
5
|
+
// minimal ANSI stripper
|
|
6
|
+
// eslint-disable-next-line no-control-regex
|
|
7
|
+
/\u001b\[[0-9;]*m/g,
|
|
8
|
+
""
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
// Convert CR “redraw” runs into newlines,
|
|
12
|
+
// then split on either \n or \r that aren’t part of \r\n pairs.
|
|
13
|
+
const normalized = stripAnsi(s)
|
|
14
|
+
// If a carriage return is used to redraw the line, turn it into a newline
|
|
15
|
+
.replace(/\r(?!\n)/g, "\n");
|
|
16
|
+
|
|
17
|
+
const lines = normalized.split(/\r?\n/);
|
|
18
|
+
return lines.slice(-n).join("\n");
|
|
19
|
+
}
|