Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: icons -> iconsAsset 폴더명 변경 #29

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ dist-ssr
.yarn
storybook-static
package.tgz
icons
iconsAsset
.storybook
10 changes: 5 additions & 5 deletions icons/convert.mjs → iconsAsset/convert.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import prettier from 'prettier';
import { DOMParser, XMLSerializer } from 'xmldom';

const __dirname = path.resolve();
const ICONS_DIR = path.join(__dirname, './icons/static');
const ICONS_DIR = path.join(__dirname, './iconsAsset/static');
const ICONS_COMPONENTS_DIR = path.join(__dirname, './src/style/foundation/icons/generated');
const ICONS_INDEX_PATH = path.join(__dirname, './src/style/foundation/icons/generated/index.ts');
const ICONS_STORIES_PATH = path.join(__dirname, './src/style/foundation/icons/icons.stories.tsx');
Expand Down Expand Up @@ -52,8 +52,8 @@ function camelizeElementAttributes(elem) {
}

const SVGComponentTemplate = (name, viewBox, svg) => `/**
* 이 파일은 icons/convert.js에 의해 자동 생성되었습니다.
* 직접 수정하는 대신 icons/convert.js를 수정하세요.
* 이 파일은 iconsAsset/convert.js에 의해 자동 생성되었습니다.
* 직접 수정하는 대신 iconsAsset/convert.js를 수정하세요.
*/

import { memo, forwardRef } from 'react';
Expand All @@ -69,8 +69,8 @@ export const ${name} = memo(forwardRef<SVGSVGElement, IconProps>((props, ref) =>
`;

const StoryTemplate = (icons) => `/**
* 이 파일은 icons/convert.js에 의해 자동 생성되었습니다.
* 직접 수정하는 대신 icons/convert.js를 수정하세요.
* 이 파일은 iconsAsset/convert.js에 의해 자동 생성되었습니다.
* 직접 수정하는 대신 iconsAsset/convert.js를 수정하세요.
*/

import { Meta, StoryObj } from '@storybook/react';
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"convert-icon": "node ./icons/convert.mjs"
"convert-icon": "node ./iconsAsset/convert.mjs"
},
"peerDependencies": {
"react": "^18.2.0",
Expand Down
Loading