mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
feat: initial commit
This commit is contained in:
parent
bde7dd644f
commit
72dc38ea56
119 changed files with 14925 additions and 1 deletions
2
.storybook/addons.js
Normal file
2
.storybook/addons.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
import '@storybook/addon-knobs/register';
|
||||
import '@storybook/addon-storysource/register';
|
6
.storybook/config.js
Normal file
6
.storybook/config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { configure } from '@storybook/svelte';
|
||||
|
||||
// use prebuilt CSS file to refrain from setting up sass, autoprefixer
|
||||
import '!style-loader!css-loader!carbon-components/css/carbon-components.min.css';
|
||||
|
||||
configure(require.context('../src', true, /\.stories\.js$/), module);
|
11
.storybook/webpack.config.js
Normal file
11
.storybook/webpack.config.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = async ({ config }) => {
|
||||
config.module.rules.push({
|
||||
test: [/\.stories\.js$/],
|
||||
loaders: [require.resolve('@storybook/source-loader')],
|
||||
include: [path.resolve(__dirname, '../src')],
|
||||
enforce: 'pre'
|
||||
});
|
||||
return config;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue