Skip to content

Commit

Permalink
moved to rootDir and paths in tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dfee committed Nov 27, 2018
1 parent 287f88e commit 072c75f
Show file tree
Hide file tree
Showing 132 changed files with 348 additions and 537 deletions.
40 changes: 0 additions & 40 deletions doczrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
},
moduleNameMapper: {
"\\.(css|less|s(c|a)ss)$": "<rootDir>/../__mocks__/style.ts",
"services(.*)$": "<rootDir>/services$1"
"@/(.*)": "<rootDir>/$1"
},
moduleFileExtensions: ["ts", "tsx", "js", "jsx"]
};
71 changes: 0 additions & 71 deletions src/components/box/box.mdx

This file was deleted.

8 changes: 4 additions & 4 deletions src/components/box/box.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { boolean } from "@storybook/addon-knobs";
import { storiesOf } from "@storybook/react";
import React from "react";

import { Box } from "components/box";
import { Content } from "components/content";
import { Image } from "components/image";
import { Media } from "components/media";
import { Box } from "@/components/box";
import { Content } from "@/components/content";
import { Image } from "@/components/image";
import { Media } from "@/components/media";

storiesOf("Box", module).add("Default", () => (
<Box
Expand Down
6 changes: 3 additions & 3 deletions src/components/box/box.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import * as React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";

export type BoxModifierProps = Partial<{
children: React.ReactNode;
Expand Down
61 changes: 0 additions & 61 deletions src/components/breadcrumb/breadcrumb.mdx

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/breadcrumb/breadcrumb.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { select } from "@storybook/addon-knobs";
import { storiesOf } from "@storybook/react";
import React from "react";

import { Box } from "components/box";
import { Breadcrumb } from "components/breadcrumb";
import { BreadcrumbProps } from "components/breadcrumb/breadcrumb";
import { Box } from "@/components/box";
import { Breadcrumb } from "@/components/breadcrumb";
import { BreadcrumbProps } from "@/components/breadcrumb/breadcrumb";

const makeSeparator = () =>
select(
Expand Down
4 changes: 2 additions & 2 deletions src/components/breadcrumb/breadcrumb.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { cx } from "emotion";
import * as React from "react";

import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { classNames, clean, ModifierProps } from "modifiers";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { classNames, clean, ModifierProps } from "@/modifiers";

export type BreadcrumbModifierProps = Partial<{
separator: "arrow" | "bullet" | "dot" | "succeeds";
Expand Down
6 changes: 3 additions & 3 deletions src/components/button/button-group.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";

export type ButtonGroupModifierProps = Partial<{
hasAddons: boolean;
Expand Down
6 changes: 3 additions & 3 deletions src/components/button/button.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { boolean, select } from "@storybook/addon-knobs";
import { storiesOf } from "@storybook/react";
import React from "react";

import { Box } from "components/box";
import { Button } from "components/button";
import { Section } from "components/section";
import { Box } from "@/components/box";
import { Button } from "@/components/button";
import { Section } from "@/components/section";

const makeColorSelect = () =>
select(
Expand Down
6 changes: 3 additions & 3 deletions src/components/button/button.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { classNames, clean, ModifierProps } from "modifiers";
import { Colors } from "modifiers/colors";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { classNames, clean, ModifierProps } from "@/modifiers";
import { Colors } from "@/modifiers/colors";
import { ButtonGroup } from "./button-group";

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card-content.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";

export type CardContentProps = ModifierProps;

Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card-footer-item.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";

export type CardFooterItemProps = ModifierProps;

Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card-footer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";
import { CardFooterItem } from "./card-footer-item";

export type CardFooterProps = ModifierProps;
Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card-header-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";

export type CardHeaderIconProps = ModifierProps;

Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card-header-title.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";

export type CardHeaderTitleProps = ModifierProps;

Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card-header.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";
import { CardHeaderIcon } from "./card-header-icon";
import { CardHeaderTitle } from "./card-header-title";

Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card-image.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { Image } from "components/image";
import { ImageProps } from "components/image/image";
import { Element } from "@/components/element";
import { Image } from "@/components/image";
import { ImageProps } from "@/components/image/image";

export type CardImageProps = ImageProps & { className?: string };

Expand Down
10 changes: 5 additions & 5 deletions src/components/card/card.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React from "react";

import { storiesOf } from "@storybook/react";

import { Card } from "components/card";
import { Content } from "components/content";
import { Heading } from "components/heading";
import { Image } from "components/image";
import { Media } from "components/media";
import { Card } from "@/components/card";
import { Content } from "@/components/content";
import { Heading } from "@/components/heading";
import { Image } from "@/components/image";
import { Media } from "@/components/media";

storiesOf("Card", module)
.addDecorator(story => (
Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from "emotion";
import React from "react";

import { Element } from "components/element";
import { renderAsExoticComponent } from "components/render-as-exotic-component";
import { ModifierProps } from "modifiers";
import { Element } from "@/components/element";
import { renderAsExoticComponent } from "@/components/render-as-exotic-component";
import { ModifierProps } from "@/modifiers";
import { CardContent } from "./card-content";
import { CardFooter } from "./card-footer";
import { CardHeader } from "./card-header";
Expand Down
Loading

0 comments on commit 072c75f

Please sign in to comment.