@forsakringskassan/vue-lib-template 1.9.3 → 1.9.5
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/files/docs/package.json +1 -1
- package/files/package.json +2 -2
- package/hooks/install.mjs +29 -25
- package/index.js +1 -1
- package/package.json +1 -1
package/files/docs/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@fkui/icon-lib-default": "6.62.0",
|
|
14
14
|
"@fkui/vue": "6.62.0",
|
|
15
15
|
"@forsakringskassan/apimock-express": "4.2.1",
|
|
16
|
-
"@forsakringskassan/docs-generator": "3.21.
|
|
16
|
+
"@forsakringskassan/docs-generator": "3.21.1",
|
|
17
17
|
"@tsconfig/node24": "24.0.5",
|
|
18
18
|
"@tsconfig/recommended": "1.0.13",
|
|
19
19
|
"http-server": "14.1.1",
|
package/files/package.json
CHANGED
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@forsakringskassan/commitlint-config": "4.2.8",
|
|
99
99
|
"@forsakringskassan/cypress-config": "1.10.1",
|
|
100
100
|
"@forsakringskassan/cypress-visual-regression": "5.2.0",
|
|
101
|
-
"@forsakringskassan/docs-generator": "3.21.
|
|
101
|
+
"@forsakringskassan/docs-generator": "3.21.1",
|
|
102
102
|
"@forsakringskassan/docs-live-example": "3.0.3",
|
|
103
103
|
"@forsakringskassan/eslint-config": "15.11.13",
|
|
104
104
|
"@forsakringskassan/eslint-config-cli": "15.11.11",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@forsakringskassan/stylelint-config": "3.5.1",
|
|
113
113
|
"@forsakringskassan/vite-lib-config": "5.13.3",
|
|
114
114
|
"@forsakringskassan/vitest-config-jsdom": "5.0.1",
|
|
115
|
-
"@forsakringskassan/vue-lib-template": "1.9.
|
|
115
|
+
"@forsakringskassan/vue-lib-template": "1.9.5",
|
|
116
116
|
"@html-validate/release-scripts": "7.6.14",
|
|
117
117
|
"@types/node": "24.19.2",
|
|
118
118
|
"@typescript/native": "npm:typescript@7.0.2",
|
package/hooks/install.mjs
CHANGED
|
@@ -13,6 +13,34 @@ async function updatePackagejson(context ) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Update placeholder names with the real application name (from `package.json`)
|
|
18
|
+
*/
|
|
19
|
+
async function updatePackageName(context ) {
|
|
20
|
+
const { getApplicationName, replaceInFile } = context;
|
|
21
|
+
const scopedName = getApplicationName();
|
|
22
|
+
const placeholder = /"@forsakringskassan\/vue-lib-template(\/[^"]+)?"/g;
|
|
23
|
+
const filenames = [
|
|
24
|
+
"cypress/tsconfig.json",
|
|
25
|
+
"docs/index.md",
|
|
26
|
+
"etc/lib.api.md",
|
|
27
|
+
"etc/selectors.api.md",
|
|
28
|
+
"etc/tsconfig.json",
|
|
29
|
+
"src/components/guide/cat-info/examples/cat-info-example.vue",
|
|
30
|
+
"tsconfig.cypress.json",
|
|
31
|
+
"tsconfig.lib.json",
|
|
32
|
+
"tsconfig.selectors.json",
|
|
33
|
+
];
|
|
34
|
+
for (const filename of filenames) {
|
|
35
|
+
await replaceInFile(filename, placeholder, (_, subpath) => {
|
|
36
|
+
return `"${scopedName}${subpath ?? ""}"`;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Enable deployment of documentation if a documentation url is provided
|
|
43
|
+
*/
|
|
16
44
|
async function enableDeployDocs(context ) {
|
|
17
45
|
const { getParameter, replaceInFile } = context;
|
|
18
46
|
const url = getParameter("docs-repo-url");
|
|
@@ -24,31 +52,7 @@ async function enableDeployDocs(context ) {
|
|
|
24
52
|
}
|
|
25
53
|
|
|
26
54
|
export async function install(context ) {
|
|
27
|
-
const { getApplicationName, replaceInFile } = context;
|
|
28
|
-
const scopedName = getApplicationName();
|
|
29
|
-
|
|
30
55
|
await updatePackagejson(context);
|
|
31
|
-
|
|
32
|
-
/* update placeholder names with the real application name (from package.json) */
|
|
33
|
-
const placeholder = /"@forsakringskassan\/vue-lib-template(\/[^"]+)?"/g;
|
|
34
|
-
const quotedName = (_ , subpath ) => {
|
|
35
|
-
return `"${scopedName}${subpath ?? ""}"`;
|
|
36
|
-
};
|
|
37
|
-
await replaceInFile("cypress/tsconfig.json", placeholder, quotedName);
|
|
38
|
-
await replaceInFile("tsconfig.lib.json", placeholder, quotedName);
|
|
39
|
-
await replaceInFile("tsconfig.cypress.json", placeholder, quotedName);
|
|
40
|
-
await replaceInFile("tsconfig.selectors.json", placeholder, quotedName);
|
|
41
|
-
await replaceInFile(
|
|
42
|
-
"src/components/guide/cat-info/examples/cat-info-example.vue",
|
|
43
|
-
placeholder,
|
|
44
|
-
quotedName,
|
|
45
|
-
);
|
|
46
|
-
await replaceInFile(
|
|
47
|
-
"src/components/guide/cat-info/examples/cat-info-live-example.vue",
|
|
48
|
-
placeholder,
|
|
49
|
-
quotedName,
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
/* enable deployment of documentation if a documentation url is provided */
|
|
56
|
+
await updatePackageName(context);
|
|
53
57
|
await enableDeployDocs(context);
|
|
54
58
|
}
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
const options = {
|
|
9
9
|
...packageJson.cloneman,
|
|
10
|
-
fileHash: "
|
|
10
|
+
fileHash: "0e117271c529cfa408f05e85b97c144b060ea443f748629b8f544e92593adbfe",
|
|
11
11
|
apiVersion: 0,
|
|
12
12
|
clonemanVersion: "1.27.2",
|
|
13
13
|
filesDir: path.join(import.meta.dirname, "files"),
|