Skip to content

Commit

Permalink
Merge pull request #15 from GreenTeaCake/update-storybook
Browse files Browse the repository at this point in the history
Configure storybook
  • Loading branch information
GreenTeaCake committed Apr 8, 2024
2 parents 21d1222 + 52b7315 commit bd52ca7
Show file tree
Hide file tree
Showing 14 changed files with 3,643 additions and 954 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
dist/
www/
docs/
loader/
src/components.d.ts
storybook-static/
www/

*~
*.sw[mnpcod]
Expand Down
7 changes: 5 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
const config = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-a11y',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@storybook/addon-links',
],
framework: {
name: '@storybook/html-vite',
},
docs: {
autodocs: 'tag',
},
core: {
disableTelemetry: true,
},
};

export default config;
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import { defineCustomElements } from '../loader';
import { defineCustomElements } from '../dist/esm/loader';

defineCustomElements();

Expand Down
Loading

0 comments on commit bd52ca7

Please sign in to comment.