Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dfee committed Nov 27, 2018
1 parent 072c75f commit 20f38ea
Show file tree
Hide file tree
Showing 14 changed files with 220 additions and 6,466 deletions.
7 changes: 0 additions & 7 deletions .babelrc.old

This file was deleted.

16 changes: 0 additions & 16 deletions .editorconfig

This file was deleted.

3 changes: 0 additions & 3 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import "@storybook/addon-storysource/register";
import "@storybook/addon-actions/register";
import "@storybook/addon-links/register";
import "@storybook/addon-events/register";
import "@storybook/addon-options/register";
import "@storybook/addon-knobs/register";
import "@storybook/addon-a11y/register";
Expand Down
5 changes: 3 additions & 2 deletions .storybook/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { checkA11y } from "@storybook/addon-a11y";
import { withInfo } from "@storybook/addon-info";
import { withKnobs } from "@storybook/addon-knobs";
import { setOptions } from "@storybook/addon-options";
Expand All @@ -11,14 +12,14 @@ setOptions({
url: "https://github.com/couds/react-bulma-components",
});

addDecorator(withKnobs);

addDecorator(
withInfo({
// propTables: false,
source: false,
}),
);
addDecorator(withKnobs);
addDecorator(checkA11y);

function loadStories() {
const req = require.context("../src", true, /\.story\.tsx$/);
Expand Down
48 changes: 1 addition & 47 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require("path");

const TSDocgenPlugin = require("react-docgen-typescript-webpack-plugin");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
// const { DefinePlugin } = require("webpack");

module.exports = (baseConfig, env, config) => {
config.module.rules.push({
Expand All @@ -17,51 +17,5 @@ module.exports = (baseConfig, env, config) => {
config.resolve.plugins = [
new TsconfigPathsPlugin({ configFile: "tsconfig.json" })
];

// resolve: {
// ...defaultConfig.resolve,
// modules: ["node_modules", "src", ...defaultConfig.resolve.modules],
// alias: {
// ...defaultConfig.resolve.alias,
// "~_variables.sass": path.resolve(
// __dirname,
// "../src/components/_variables.sass"
// ),
// "react-bulma-components/lib": path.resolve(__dirname, "../src")
// }
// // https://github.com/graphql/graphql-js#using-in-a-browser
// },
// plugins: [
// ...defaultConfig.plugins,
// // graphql sources check process variable
// new DefinePlugin({
// process: JSON.stringify(true)
// })
// ]
// };
return config;
};

// const path = require("path");
// const TSDocgenPlugin = require("react-docgen-typescript-webpack-plugin");
// const ForkTSCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");

// module.exports = (baseConfig, env, config) => {
// config.module.rules.push({
// test: /\.(ts|tsx)$/,
// loader: require.resolve("babel-loader"),
// options: {
// presets: [["react-app", { flow: false, typescript: true }]]
// }
// });
// config.plugins.push(
// new ForkTSCheckerWebpackPlugin({
// async: false,
// checkSyntacticErrors: true
// })
// );
// config.plugins.push(new TSDocgenPlugin()); // optional
// config.resolve.extensions.push(".ts", ".tsx");

// return config;
// };
Loading

0 comments on commit 20f38ea

Please sign in to comment.