@public-ui/kolibri-cli 2.1.2 → 2.1.3
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/dist/info/index.js +1 -1
- package/dist/migrate/index.js +1 -1
- package/dist/migrate/shares/reuse.js +8 -8
- package/package.json +13 -13
package/dist/info/index.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = default_1;
|
|
6
7
|
const os_1 = __importDefault(require("os"));
|
|
7
8
|
const child_process_1 = require("child_process");
|
|
8
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -66,4 +67,3 @@ function default_1(program) {
|
|
|
66
67
|
console.log(JSON.stringify(systemInfo, null, 2));
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
|
-
exports.default = default_1;
|
package/dist/migrate/index.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = default_1;
|
|
6
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
7
8
|
const child_process_1 = require("child_process");
|
|
8
9
|
const commander_1 = require("commander");
|
|
@@ -209,4 +210,3 @@ Execute ${status.total} registered tasks...`);
|
|
|
209
210
|
});
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
|
-
exports.default = default_1;
|
|
@@ -3,7 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.POST_MESSAGES = exports.findIndexHtml = exports.resolveIndexHtmlPath = exports.getVersionOfPublicUiKoliBriCli = exports.getVersionOfPublicUiComponents = exports.getContentOfProjectPkgJson = exports.
|
|
6
|
+
exports.POST_MESSAGES = exports.findIndexHtml = exports.resolveIndexHtmlPath = exports.getVersionOfPublicUiKoliBriCli = exports.getVersionOfPublicUiComponents = exports.getContentOfProjectPkgJson = exports.MODIFIED_FILES = exports.isPropertyKebabCaseRegExp = exports.isTagKebabCaseRegExp = exports.isKebabCaseRegExp = void 0;
|
|
7
|
+
exports.logAndCreateError = logAndCreateError;
|
|
8
|
+
exports.filterFilesByExt = filterFilesByExt;
|
|
9
|
+
exports.getPackageManagerCommand = getPackageManagerCommand;
|
|
10
|
+
exports.kebabToCapitalCase = kebabToCapitalCase;
|
|
11
|
+
exports.kebabToCamelCase = kebabToCamelCase;
|
|
12
|
+
exports.setRemoveMode = setRemoveMode;
|
|
13
|
+
exports.getRemoveMode = getRemoveMode;
|
|
7
14
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
15
|
const fs_1 = __importDefault(require("fs"));
|
|
9
16
|
const path_1 = __importDefault(require("path"));
|
|
@@ -27,7 +34,6 @@ Error:`), `${msg}
|
|
|
27
34
|
// @todo process.exit(1); // makes `hint` undefined - ?!
|
|
28
35
|
return new Error();
|
|
29
36
|
}
|
|
30
|
-
exports.logAndCreateError = logAndCreateError;
|
|
31
37
|
/**
|
|
32
38
|
* Recursively searches for files with the specified extension in the specified directory.
|
|
33
39
|
* @param {string} dir The directory to search in
|
|
@@ -49,7 +55,6 @@ function filterFilesByExt(dir, ext) {
|
|
|
49
55
|
});
|
|
50
56
|
return files;
|
|
51
57
|
}
|
|
52
|
-
exports.filterFilesByExt = filterFilesByExt;
|
|
53
58
|
/**
|
|
54
59
|
* This function is used to get the version of the package.json as string.
|
|
55
60
|
* @param {string} offsetPath The offset path to the package.json
|
|
@@ -97,7 +102,6 @@ function getPackageManagerCommand(command, baseDir = process.cwd()) {
|
|
|
97
102
|
}
|
|
98
103
|
return getPackageManagerCommand(command, baseDir);
|
|
99
104
|
}
|
|
100
|
-
exports.getPackageManagerCommand = getPackageManagerCommand;
|
|
101
105
|
exports.isKebabCaseRegExp = /^((data-removed-)?[a-z]+(-[a-z]+)*)?$/;
|
|
102
106
|
exports.isTagKebabCaseRegExp = /^kol-[a-z]+(-[a-z]+)*$/;
|
|
103
107
|
exports.isPropertyKebabCaseRegExp = /^(data-removed-)?_[a-z]+(-[a-z]+)*$/;
|
|
@@ -112,7 +116,6 @@ function kebabToCapitalCase(str) {
|
|
|
112
116
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) // Capitalize each word
|
|
113
117
|
.join(''); // Join without space
|
|
114
118
|
}
|
|
115
|
-
exports.kebabToCapitalCase = kebabToCapitalCase;
|
|
116
119
|
/**
|
|
117
120
|
* Converts a kebab case string to a camel case string.
|
|
118
121
|
* @param {string} str The kebab case string
|
|
@@ -124,7 +127,6 @@ function kebabToCamelCase(str) {
|
|
|
124
127
|
.map((word, index) => (index === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())) // Capitalize each word
|
|
125
128
|
.join(''); // Join without space
|
|
126
129
|
}
|
|
127
|
-
exports.kebabToCamelCase = kebabToCamelCase;
|
|
128
130
|
exports.MODIFIED_FILES = new Set();
|
|
129
131
|
let REMOVE_MODE = 'prefix';
|
|
130
132
|
/**
|
|
@@ -134,7 +136,6 @@ let REMOVE_MODE = 'prefix';
|
|
|
134
136
|
function setRemoveMode(mode) {
|
|
135
137
|
REMOVE_MODE = mode;
|
|
136
138
|
}
|
|
137
|
-
exports.setRemoveMode = setRemoveMode;
|
|
138
139
|
/**
|
|
139
140
|
* Gets the remove mode.
|
|
140
141
|
* @returns {RemoveMode} The remove mode
|
|
@@ -142,7 +143,6 @@ exports.setRemoveMode = setRemoveMode;
|
|
|
142
143
|
function getRemoveMode() {
|
|
143
144
|
return REMOVE_MODE;
|
|
144
145
|
}
|
|
145
|
-
exports.getRemoveMode = getRemoveMode;
|
|
146
146
|
const getContentOfProjectPkgJson = () => {
|
|
147
147
|
try {
|
|
148
148
|
return readPackageString(path_1.default.resolve(process.cwd()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/kolibri-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -26,30 +26,30 @@
|
|
|
26
26
|
"deepmerge": "4.3.1",
|
|
27
27
|
"gradient-string": "2.0.2",
|
|
28
28
|
"loglevel": "1.9.1",
|
|
29
|
-
"prettier": "3.3.
|
|
29
|
+
"prettier": "3.3.2",
|
|
30
30
|
"semver": "7.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/gradient-string": "1.1.6",
|
|
34
34
|
"@types/node": "ts5.4",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
36
|
-
"@typescript-eslint/parser": "7.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "7.14.1",
|
|
36
|
+
"@typescript-eslint/parser": "7.14.1",
|
|
37
37
|
"cpy-cli": "5.0.0",
|
|
38
38
|
"eslint": "8.57.0",
|
|
39
39
|
"eslint-config-prettier": "9.1.0",
|
|
40
40
|
"eslint-plugin-html": "8.1.1",
|
|
41
|
-
"eslint-plugin-jsdoc": "48.
|
|
41
|
+
"eslint-plugin-jsdoc": "48.5.0",
|
|
42
42
|
"eslint-plugin-json": "3.1.0",
|
|
43
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
44
|
-
"eslint-plugin-no-loops": "0.
|
|
45
|
-
"eslint-plugin-react": "7.34.
|
|
46
|
-
"knip": "5.
|
|
47
|
-
"mocha": "10.
|
|
48
|
-
"nodemon": "3.1.
|
|
43
|
+
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
44
|
+
"eslint-plugin-no-loops": "0.4.0",
|
|
45
|
+
"eslint-plugin-react": "7.34.3",
|
|
46
|
+
"knip": "5.23.0",
|
|
47
|
+
"mocha": "10.5.1",
|
|
48
|
+
"nodemon": "3.1.4",
|
|
49
49
|
"rimraf": "5.0.7",
|
|
50
50
|
"ts-node": "10.9.2",
|
|
51
|
-
"typescript": "5.
|
|
52
|
-
"@public-ui/components": "2.1.
|
|
51
|
+
"typescript": "5.5.2",
|
|
52
|
+
"@public-ui/components": "2.1.3"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"dist"
|