Skip to content

Commit c428d74

Browse files
committed
get build tools working
1 parent 3c838de commit c428d74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+53348
-123
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/node_modules
22
*.bak
3+
dist
4+
.npmrc

.storybook/main.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const path = require("path");
2+
3+
module.exports = {
4+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
5+
addons: [
6+
"@storybook/addon-links",
7+
"@storybook/addon-essentials",
8+
"@storybook/addon-interactions",
9+
],
10+
framework: "@storybook/react",
11+
core: {
12+
builder: "@storybook/builder-webpack5",
13+
},
14+
webpackFinal: async (config, { configType }) => {
15+
// Make whatever fine-grained changes you need
16+
config.module.rules.push({
17+
test: /\.s[ac]ss$/i,
18+
use: ["style-loader", "css-loader", "sass-loader"],
19+
include: path.resolve(__dirname, "../"),
20+
});
21+
22+
// Return the altered config
23+
return config;
24+
},
25+
};

.storybook/preview.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: "^on[A-Z].*" },
3+
controls: {
4+
matchers: {
5+
color: /(background|color)$/i,
6+
date: /Date$/,
7+
},
8+
},
9+
}

LICENSE

-21
This file was deleted.

0 commit comments

Comments
 (0)