Skip to content

Commit

Permalink
refactor(common): storybook ui 문서와 ui package 분리 (#358)
Browse files Browse the repository at this point in the history
* fix(admin): 어드민 삭제

* refactor(common): storybook ui 문서와 ui package 분리
  • Loading branch information
SEOKKAMONI authored Apr 25, 2024
1 parent 750a637 commit 82ee033
Show file tree
Hide file tree
Showing 193 changed files with 1,369 additions and 712 deletions.
4 changes: 0 additions & 4 deletions apps/admin/next.config.js

This file was deleted.

32 changes: 0 additions & 32 deletions apps/admin/package.json

This file was deleted.

Binary file removed apps/admin/src/app/favicon.ico
Binary file not shown.
20 changes: 0 additions & 20 deletions apps/admin/src/app/layout.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions apps/admin/src/app/page.tsx

This file was deleted.

Empty file removed apps/admin/src/components/.gitkeep
Empty file.
Empty file removed apps/admin/src/hooks/.gitkeep
Empty file.
36 changes: 0 additions & 36 deletions apps/admin/src/providers/QueryClientProvider.tsx

This file was deleted.

Empty file removed apps/admin/src/types/.gitkeep
Empty file.
Empty file removed apps/admin/src/utils/.gitkeep
Empty file.
10 changes: 0 additions & 10 deletions apps/admin/tsconfig.json

This file was deleted.

5 changes: 0 additions & 5 deletions apps/client/.eslintrc.js

This file was deleted.

36 changes: 0 additions & 36 deletions apps/client/.gitignore

This file was deleted.

36 changes: 0 additions & 36 deletions apps/client/README.md

This file was deleted.

1 change: 0 additions & 1 deletion apps/client/public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion apps/client/public/vercel.svg

This file was deleted.

1 change: 0 additions & 1 deletion apps/client/src/providers/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/client/package.json → apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "client",
"name": "web",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/storybook/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
root: true,
extends: ['@sickgyun/eslint-config/react-ts', 'plugin:storybook/recommended'],
ignorePatterns: ['*.js*', 'dist'],
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
}
const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
Expand Down
File renamed without changes.
36 changes: 36 additions & 0 deletions docs/storybook/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "@sickgyun/storybook",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"lint": "eslint \"**/*.ts*\"",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"devDependencies": {
"@sickgyun/eslint-config": "workspace:*",
"@sickgyun/tsconfig": "workspace:*",
"@storybook/addon-essentials": "^7.6.6",
"@storybook/addon-interactions": "^7.6.6",
"@storybook/addon-links": "^7.6.6",
"@storybook/addon-onboarding": "^1.0.10",
"@storybook/blocks": "^7.6.6",
"@storybook/react": "^7.6.6",
"@storybook/react-vite": "^7.6.6",
"@storybook/test": "^7.6.6",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"eslint-plugin-storybook": "^0.6.15",
"storybook": "^7.6.6",
"typescript": "^5"
},
"dependencies": {
"@sickgyun/ui": "workspace:*",
"@sickgyun/design-token": "workspace:*",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"next": "14.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Alert as AlertComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { useState } from 'react';
import { Alert as AlertComponent } from '.';

type Alert = typeof AlertComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BUTTON_STYLE_KEYS, Button as ButtonComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { BUTTON_STYLE_KEYS, Button as ButtonComponent } from '.';

type Button = typeof ButtonComponent;

Expand Down Expand Up @@ -31,7 +31,6 @@ export default meta;
export const Default: StoryObj<Button> = {
args: {
children: 'label',
width: '358px',
},
render: (args) => <ButtonComponent {...args} />,
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Center as CenterComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Center as CenterComponent } from '.';

type Center = typeof CenterComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Confirm as ConfirmComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { useState } from 'react';
import { Confirm as ConfirmComponent } from '.';

type Confirm = typeof ConfirmComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Flex as FlexComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Flex as FlexComponent } from '.';

type Flex = typeof FlexComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InfoBox as InfoBoxComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { InfoBox as InfoBoxComponent } from '.';

type InfoBox = typeof InfoBoxComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Input as InputComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Input as InputComponent } from '.';

type Input = typeof InputComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Modal as ModalComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { useState } from 'react';
import { Modal as ModalComponent } from './Modal';

type Modal = typeof ModalComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Select as SelectComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Select as SelectComponent } from '.';

type Select = typeof SelectComponent;

Expand All @@ -14,7 +14,6 @@ export const Default: StoryObj<Select> = {
args: {
label: '라벨',
placeholder: '플레이스 홀더',
width: '384px',
},
render: (args) => (
<SelectComponent {...args}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { colors } from '@sickgyun/design-token';
import { Spinner as SpinnerComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Spinner as SpinnerComponent } from '.';

type Spinner = typeof SpinnerComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Stack as StackComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Stack as StackComponent } from '.';

type Stack = typeof StackComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Switch as SwitchComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { useState } from 'react';
import { Switch as SwitchComponent } from '.';

type Switch = typeof SwitchComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { colors, fonts } from '@sickgyun/design-token';
import { Text as TextComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Text as TextComponent } from '.';

type Text = typeof TextComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Textarea as TextareaComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Textarea as TextareaComponent } from '.';

type Textarea = typeof TextareaComponent;

Expand All @@ -22,7 +22,6 @@ export const Default: StoryObj<Textarea> = {
args: {
label: '라벨임',
placeholder: '플레이스 홀더임',
width: '358px',
isAutoHeight: false,
},
render: (args) => <TextareaComponent {...args} />,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tooltip, Tooltip as TooltipComponent } from '@sickgyun/ui';
import type { Meta, StoryObj } from '@storybook/react';
import { Tooltip, Tooltip as TooltipComponent } from '.';

type Tooltip = typeof TooltipComponent;

Expand Down
Loading

0 comments on commit 82ee033

Please sign in to comment.