Skip to content

Commit

Permalink
Merge pull request #66 from timelessco/storybook-bundle-fix
Browse files Browse the repository at this point in the history
build: storybook bundle fix
  • Loading branch information
navin-moorthy committed Oct 1, 2020
2 parents 5c61a3a + b60d91f commit 1cf87af
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion babel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ module.exports = {
},
],
].filter(Boolean),
ignore: ["**/*/__tests__", "**/*/stories"],
ignore: ["**/*/__tests__", "**/*/stories", "**/*/__examples__"],
};
2 changes: 1 addition & 1 deletion src/meter/__examples__/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from "react";
import { css, cx, keyframes } from "emotion";

import { generateStripe } from "../../utils";
import { MeterStateReturn } from "../MeterState";
import { Meter, useMeterState, UseMeterProps } from "../index";
import { generateStripe } from "../../progress/stories/storybook-progress-utils";

export const MeterComp: React.FC<UseMeterProps> = props => {
const { value, low, high, optimum, min, max, ...rest } = props;
Expand Down
5 changes: 4 additions & 1 deletion src/meter/__examples__/stories/CircularMeter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Meta } from "@storybook/react";

import { Meter } from "../../Meter";
import { useMeterState } from "../../index";
import { useFakeProgression, createCircularExample } from "../../../utils";
import {
useFakeProgression,
createCircularExample,
} from "../../../progress/stories/storybook-progress-utils";

export default {
title: "Component/Meter/Circular",
Expand Down
5 changes: 4 additions & 1 deletion src/progress/stories/CircularProgress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Meta } from "@storybook/react";

import { Progress } from "../Progress";
import { useProgressState } from "../ProgressState";
import { useFakeProgression, createCircularExample } from "../../utils";
import {
useFakeProgression,
createCircularExample,
} from "./storybook-progress-utils";

export default {
title: "Component/Progress/Circular",
Expand Down
2 changes: 1 addition & 1 deletion src/progress/stories/LinearProgress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
generateStripe,
progressBarStyle,
createLinearExamples,
} from "../../utils";
} from "./storybook-progress-utils";

export default {
title: "Component/Progress/Linear",
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ export function clampValue(value: number, min: number, max: number) {

return Math.min(Math.max(value, min), max);
}

export * from "./storybook";
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@
"resolveJsonModule": true,
"types": ["node", "jest", "@testing-library/jest-dom"]
},
"exclude": ["node_modules", "dist", "**/*/stories", "**/*/__tests__"]
"exclude": [
"node_modules",
"dist",
"**/*/stories",
"**/*/__tests__",
"**/*/__examples__"
]
}

0 comments on commit 1cf87af

Please sign in to comment.