-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(storybook): successful basic setup with ref below
general setup: https://storybook.js.org/basics/guide-vue/ alpha fix: storybookjs/storybook#3044 multi stories: storybookjs/storybook#125
- Loading branch information
1 parent
c3943fd
commit f942f48
Showing
6 changed files
with
10,230 additions
and
6,827 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { configure } from '@storybook/vue'; | ||
|
||
import Vue from 'vue'; | ||
// import Vuex from 'vuex'; // Vue plugins | ||
|
||
// Import your custom components. | ||
// import HelloComponent from '../src/components/HelloComponent/HelloComponent.vue'; | ||
|
||
// // Install Vue plugins. | ||
// // Vue.use(Vuex); | ||
|
||
// // Register custom components. | ||
// Vue.component('HelloComponent', HelloComponent); | ||
|
||
|
||
function requireAll(requireContext) { | ||
return requireContext.keys().map(requireContext); | ||
} | ||
|
||
function loadStories() { | ||
requireAll(require.context("../src/", true, /.stories.js$/)); | ||
} | ||
|
||
configure(loadStories, module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,4 @@ module.exports = { | |
toType: 'dir' | ||
}]) | ||
] | ||
} | ||
} |
Oops, something went wrong.