@vueless/storybook 0.0.18 → 0.0.19
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/.storybook/preview.js +7 -0
- package/package.json +3 -2
package/.storybook/preview.js
CHANGED
|
@@ -5,6 +5,7 @@ import { vue3SourceDecorator } from "./decorators/vue3SourceDecorator";
|
|
|
5
5
|
|
|
6
6
|
// Vue plugins
|
|
7
7
|
import { createVueless } from "vueless";
|
|
8
|
+
import { createRouter, createWebHistory } from "vue-router";
|
|
8
9
|
|
|
9
10
|
// Tailwind styles
|
|
10
11
|
import "./index.pcss";
|
|
@@ -12,8 +13,14 @@ import "./index.pcss";
|
|
|
12
13
|
// Create vueless instance
|
|
13
14
|
const vueless = createVueless();
|
|
14
15
|
|
|
16
|
+
const router = createRouter({
|
|
17
|
+
history: createWebHistory(import.meta.env.VITE_BASE_PATH),
|
|
18
|
+
routes: [{ path: "/" }],
|
|
19
|
+
});
|
|
20
|
+
|
|
15
21
|
// Create storybook app instance
|
|
16
22
|
const storybookApp = (app) => {
|
|
23
|
+
app.use(router);
|
|
17
24
|
app.use(vueless);
|
|
18
25
|
};
|
|
19
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/storybook",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Simplifies Storybook configuration for Vueless UI library.",
|
|
5
5
|
"homepage": "https://vueless.com",
|
|
6
6
|
"author": "Johnny Grid",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"eslint-plugin-prettier": "^5.1.3",
|
|
46
46
|
"prettier": "^3.2.5",
|
|
47
47
|
"prettier-eslint": "^16.3.0",
|
|
48
|
-
"release-it": "^17.2.1"
|
|
48
|
+
"release-it": "^17.2.1",
|
|
49
|
+
"vue-router": "^4.3.2"
|
|
49
50
|
},
|
|
50
51
|
"resolutions": {
|
|
51
52
|
"jackspeak": "2.3.6"
|