Skip to content

Commit

Permalink
refactor: update storybook config to use src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed Jan 17, 2025
1 parent 1d26d7a commit f088cbd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions @kiva/kv-components/.npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/__mocks__/
/vue/.storybook/
/vue/stories/
/src/
/tests/
/.eslintrc.cjs
/babel.config.cjs
Expand Down
4 changes: 2 additions & 2 deletions @kiva/kv-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"vue-template-compiler": "2.6.14"
},
"scripts": {
"storybook": "storybook dev -p 6006 -c vue/.storybook",
"build-storybook": "storybook build -c vue/.storybook",
"storybook": "storybook dev -p 6006 -c src/vue/.storybook",
"build-storybook": "storybook build -c src/vue/.storybook",
"lint": "eslint --ext .js,.vue ./",
"test": "npm run lint && jest",
"prebuild": "node build/copyFlags.js",
Expand Down
2 changes: 1 addition & 1 deletion @kiva/kv-components/src/vue/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
],

staticDirs: [
'../../../../dist',
'../../../../../dist',
],

addons: [
Expand Down
6 changes: 3 additions & 3 deletions @kiva/kv-components/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const safelist = [
export default {
presets: [sharedConfig],
content: [
'./vue/**/*.vue',
'./vue/stories/**/*.stories.js',
'./utils/**/*.js',
'./src/vue/**/*.vue',
'./src/vue/stories/**/*.stories.js',
'./src/utils/**/*.js',
],
safelist,
};

0 comments on commit f088cbd

Please sign in to comment.