@forsakringskassan/vue-lib-template 1.2.8 → 1.2.9
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 +3 -3
- package/files/package.json +12 -11
- package/files/renovate.json +4 -1
- package/files/src/mocks/index.mts +6 -1
- package/hooks/install.mjs +8 -17
- package/index.js +1 -1
- package/package.json +1 -9
package/files/docs/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"start": "http-server public"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@fkui/icon-lib-default": "6.
|
|
11
|
-
"@fkui/vue": "6.
|
|
10
|
+
"@fkui/icon-lib-default": "6.58.0",
|
|
11
|
+
"@fkui/vue": "6.58.0",
|
|
12
12
|
"@forsakringskassan/apimock-express": "4.1.0",
|
|
13
|
-
"@forsakringskassan/docs-generator": "3.
|
|
13
|
+
"@forsakringskassan/docs-generator": "3.9.0",
|
|
14
14
|
"@tsconfig/node24": "24.0.5",
|
|
15
15
|
"@tsconfig/recommended": "1.0.13",
|
|
16
16
|
"http-server": "14.1.1",
|
package/files/package.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/Forsakringskassan/vue-lib-template/issues"
|
|
14
14
|
},
|
|
15
|
+
"repository": "${repository}",
|
|
15
16
|
"license": "MIT",
|
|
16
17
|
"author": "Försäkringskassan",
|
|
17
18
|
"exports": {
|
|
@@ -79,18 +80,18 @@
|
|
|
79
80
|
"devDependencies": {
|
|
80
81
|
"@babel/core": "7.29.7",
|
|
81
82
|
"@babel/preset-env": "7.29.7",
|
|
82
|
-
"@fkui/design": "6.
|
|
83
|
-
"@fkui/font-default": "6.
|
|
84
|
-
"@fkui/icon-lib-default": "6.
|
|
85
|
-
"@fkui/logic": "6.
|
|
86
|
-
"@fkui/test-utils": "6.
|
|
87
|
-
"@fkui/theme-default": "6.
|
|
88
|
-
"@fkui/vue": "6.
|
|
83
|
+
"@fkui/design": "6.58.0",
|
|
84
|
+
"@fkui/font-default": "6.58.0",
|
|
85
|
+
"@fkui/icon-lib-default": "6.58.0",
|
|
86
|
+
"@fkui/logic": "6.58.0",
|
|
87
|
+
"@fkui/test-utils": "6.58.0",
|
|
88
|
+
"@fkui/theme-default": "6.58.0",
|
|
89
|
+
"@fkui/vue": "6.58.0",
|
|
89
90
|
"@forsakringskassan/apimock-express": "4.1.0",
|
|
90
91
|
"@forsakringskassan/commitlint-config": "4.2.8",
|
|
91
|
-
"@forsakringskassan/cypress-config": "1.9.
|
|
92
|
+
"@forsakringskassan/cypress-config": "1.9.2",
|
|
92
93
|
"@forsakringskassan/cypress-visual-regression": "5.2.0",
|
|
93
|
-
"@forsakringskassan/docs-generator": "3.
|
|
94
|
+
"@forsakringskassan/docs-generator": "3.9.0",
|
|
94
95
|
"@forsakringskassan/docs-live-example": "3.0.2",
|
|
95
96
|
"@forsakringskassan/eslint-config": "15.9.10",
|
|
96
97
|
"@forsakringskassan/eslint-config-cli": "15.9.3",
|
|
@@ -104,13 +105,13 @@
|
|
|
104
105
|
"@forsakringskassan/stylelint-config": "3.4.6",
|
|
105
106
|
"@forsakringskassan/vite-lib-config": "5.12.1",
|
|
106
107
|
"@forsakringskassan/vitest-config-jsdom": "5.0.0",
|
|
107
|
-
"@forsakringskassan/vue-lib-template": "1.2.
|
|
108
|
+
"@forsakringskassan/vue-lib-template": "1.2.9",
|
|
108
109
|
"@html-validate/release-scripts": "7.6.11",
|
|
109
110
|
"@types/node": "24.13.4",
|
|
110
111
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
111
112
|
"@vue/server-renderer": "3.5.42",
|
|
112
113
|
"@vue/test-utils": "2.5.0",
|
|
113
|
-
"cloneman": "1.
|
|
114
|
+
"cloneman": "1.24.0",
|
|
114
115
|
"core-js": "3.50.0",
|
|
115
116
|
"cypress": "16.0.0",
|
|
116
117
|
"html-validate": "11.15.0",
|
package/files/renovate.json
CHANGED
package/hooks/install.mjs
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const { getParameter, updateJsonFile, getApplicationName, replaceInFile } =
|
|
6
|
-
context;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export async function install(context ) {
|
|
4
|
+
const { updateJsonFile, getApplicationName, replaceInFile } = context;
|
|
7
5
|
const scopedName = getApplicationName();
|
|
8
6
|
const unscopedName = getApplicationName({ unscoped: true });
|
|
9
7
|
|
|
10
|
-
/* write repository url to "package.json" */
|
|
11
|
-
const repoUrl = getParameter("repo-url");
|
|
12
|
-
await updateJsonFile("package.json", {
|
|
13
|
-
repository: {
|
|
14
|
-
type: "git",
|
|
15
|
-
url: repoUrl,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
|
|
19
8
|
/* update placeholder names with the real application name (from package.json) */
|
|
20
9
|
const placeholder = /"@forsakringskassan\/vue-lib-template(\/[^"]+)?"/g;
|
|
21
|
-
const quotedName =
|
|
10
|
+
const quotedName = (_ , subpath ) => {
|
|
11
|
+
return `"${scopedName}${subpath}"`;
|
|
12
|
+
};
|
|
22
13
|
await replaceInFile("cypress/tsconfig.json", placeholder, quotedName);
|
|
23
14
|
await replaceInFile("tsconfig.lib.json", placeholder, quotedName);
|
|
24
15
|
await replaceInFile("tsconfig.cypress.json", placeholder, quotedName);
|
|
@@ -30,4 +21,4 @@ export default async (context) => {
|
|
|
30
21
|
"./style.css": `./dist/esm/${unscopedName}.css`,
|
|
31
22
|
},
|
|
32
23
|
});
|
|
33
|
-
}
|
|
24
|
+
}
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
const options = {
|
|
9
9
|
...packageJson.cloneman,
|
|
10
|
-
fileHash: "
|
|
10
|
+
fileHash: "637e71ace857c5821ab434db553119e933c4ee0d0d00325bccf8a4a5a4a9c4c5",
|
|
11
11
|
filesDir: path.join(import.meta.dirname, "files"),
|
|
12
12
|
hooksDir: path.join(import.meta.dirname, "hooks"),
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/vue-lib-template",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "Vue library template based on Cloneman",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"template",
|
|
@@ -170,14 +170,6 @@
|
|
|
170
170
|
"!@fkui/tsconfig",
|
|
171
171
|
"@forsakringskassan/*-api",
|
|
172
172
|
"fk-icons"
|
|
173
|
-
],
|
|
174
|
-
"parameters": [
|
|
175
|
-
{
|
|
176
|
-
"key": "repo-url",
|
|
177
|
-
"description": "URL to repository",
|
|
178
|
-
"help": null,
|
|
179
|
-
"required": true
|
|
180
|
-
}
|
|
181
173
|
]
|
|
182
174
|
}
|
|
183
175
|
}
|