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

v1.0.2 #67

Merged
merged 33 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
87a9efe
docs: create issue template
nijuy Mar 4, 2024
38cfd6b
config: publish to npm in workflows (#51)
Hanna922 Mar 15, 2024
2ec0c39
refactor: remove warning & unused pacakge (#53)
Hanna922 Mar 15, 2024
97b8b07
chore: yarn to pnpm
Hanna922 Mar 20, 2024
c76c25c
chore: storybook version upgrade (7.4.0 -> 8.0.2)
Hanna922 Mar 21, 2024
d36b3c0
fix: addon-docs -> blocks
Hanna922 Mar 21, 2024
4291832
chore: update pnpm-lock
Hanna922 Mar 21, 2024
4efe87e
fix: remove Description
Hanna922 Mar 23, 2024
bbb98a4
fix: remove string
Hanna922 Mar 23, 2024
258028b
style: modify semanticColorPalette
Hanna922 Mar 23, 2024
ed0b60c
docs: add Colors Palette
Hanna922 Mar 23, 2024
90a0d89
refactor: remove foundation user guide
Hanna922 Mar 23, 2024
5dc2005
refactor: modify Typo docs
Hanna922 Mar 23, 2024
8bffc93
refactor: apply convention
Hanna922 Mar 23, 2024
8452456
refactor: Typo.Stories 내 `extractTypoDetails` 개선
nijuy Mar 23, 2024
30a845d
Merge pull request #56 from yourssu/chore/yarn-to-pnpm
Hanna922 Mar 24, 2024
0067b5b
Merge branch 'develop' into fix/toast-description
Hanna922 Mar 24, 2024
25d7635
Merge pull request #57 from yourssu/fix/toast-description
Hanna922 Mar 24, 2024
d368190
Merge branch 'develop' into docs/#47-color-palette
Hanna922 Mar 24, 2024
9732a2f
docs: IconDocs, TypoDocs 내용 수정
nijuy Mar 24, 2024
c697ed0
docs: modify tab size (4->2) in IconDocs
Hanna922 Mar 24, 2024
532f3f4
Merge pull request #58 from yourssu/docs/#47-color-palette
Hanna922 Mar 24, 2024
c745c10
refactor: convert.mjs 내 스토리 파일 경로, StoryTemplate 수정
nijuy Mar 24, 2024
d7a7595
chore: 수정한 convert.mjs로 convert-icon 실행
nijuy Mar 24, 2024
efb7437
Merge pull request #61 from yourssu/fix/#60-icon-story
nijuy Mar 25, 2024
5f1f0e3
config: add release note template
Hanna922 Apr 16, 2024
c8e8e3f
config: add release drafter in github workflows
Hanna922 Apr 16, 2024
dca125f
config: modify release template
Hanna922 Apr 16, 2024
4d0c7bd
chore: label -> labels
nijuy Apr 16, 2024
3863b16
Merge pull request #64 from yourssu/config/release-note
Hanna922 Apr 16, 2024
512c2d3
remove: release drafter yml
Hanna922 Apr 16, 2024
8f204b6
chore: update-version
Hanna922 Apr 16, 2024
cc5956d
Merge pull request #66 from yourssu/chore/version-up
Hanna922 Apr 16, 2024
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
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---
name: Bug report
about: 버그 생겼을 때 쓰는 이슈 템플릿 ╯︿╰
title: 'bug: '
labels: bug, fix
assignees: ''

---

# ISSUE ✅ :

## 📖 Summary
Expand Down
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---
name: Feature request
about: 새 기능 추가할 때 쓰는 이슈 템플릿
title: 'feat: '
labels: feat
assignees: ''

---

# ISSUE ✅ :

## 📖 Summary
Expand Down
37 changes: 37 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 이 파일은 release note 작성에 사용되는 파일입니다.

name-template: '@yourssu/design-system-react@$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🆕 새로운 기능이 추가되었어요!'
label: 'feat'
- title: '🐞 자잘한 버그를 수정했습니다.'
labels:
- 'bug'
- 'fix'
- title: '🫶🏻 사용성 개선에 힘썼습니다.'
label: 'docs'
- title: '🛠️ 더 나은 코드를 위해 노력하고 있습니다.'
labels:
- 'refactor'
- 'chore'
- title: 'ETC'
labels:
- '*'
change-template: '* $TITLE (#$NUMBER) by @$AUTHOR'
change-title-escapes: '\<*_&#@`'
exclude-labels:
- 'Main'
version-resolver:
major:
labels:
- 'Major'
minor:
labels:
- 'Minor'
patch:
labels:
- 'Patch'
default: patch
template: |
$CHANGES
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build and deploy storybook to s3
name: build and deploy storybook to s3, publish to npm

on:
push:
Expand Down Expand Up @@ -32,3 +32,8 @@ jobs:
--region ap-northeast-2 \
./storybook-static \
s3://yds-react-storybook/${{ steps.version.outputs.VERSION }}

- name: Publish to NPM
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Output of 'npm pack'
*.tgz
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config: StorybookConfig = {
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
'@storybook/addon-mdx-gfm'
],
framework: {
name: '@storybook/react-vite',
Expand Down
17 changes: 16 additions & 1 deletion iconsAsset/convert.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const __dirname = path.resolve();
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');
const ICONS_STORIES_PATH = path.join(__dirname, './src/style/foundation/icons/Icons.stories.tsx');
const PRETTIER_CONFIG_PATH = path.join(__dirname, './.prettierrc.json');
const prettierConfig = JSON.parse(await fs.readFile(PRETTIER_CONFIG_PATH, 'utf-8'));

Expand Down Expand Up @@ -66,16 +66,20 @@ export const ${name} = memo(forwardRef<SVGSVGElement, IconProps>((props, ref) =>
${svg}
</IconBase>
)));

${name}.displayName = '${name}';
`;

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

import { Primary as PrimaryBlock, Controls, Markdown } from '@storybook/blocks';
import { Meta, StoryObj } from '@storybook/react';
import { styled } from 'styled-components';

import IconDocs from './IconDocs.md?raw';
import { IconBase } from './icon.base';

import {
Expand All @@ -89,6 +93,17 @@ const Icons = [
const meta: Meta = {
title: 'Foundation/Icons',
component: IconBase,
parameters: {
docs: {
page: () => (
<>
<Markdown>{IconDocs}</Markdown>
<PrimaryBlock />
<Controls />
</>
),
},
},
};
export default meta;

Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
Expand Down
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@yourssu/design-system-react",
"private": false,
"version": "1.0.1",
"version": "1.0.2",
"description": "Yourssu Design System for React",
"keywords": [
"yourssu",
Expand All @@ -21,10 +21,14 @@
"require": "./dist/index.cjs.js"
}
},
"files": [
"dist"
],
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
"prepublishOnly": "npm run build",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
Expand All @@ -36,14 +40,14 @@
"styled-components": "^6.0.7"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.4.0",
"@storybook/addon-interactions": "^7.4.0",
"@storybook/addon-links": "^7.4.0",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.4.0",
"@storybook/react": "^7.4.0",
"@storybook/react-vite": "^7.4.0",
"@storybook/testing-library": "^0.2.0",
"@storybook/addon-essentials": "^8.0.2",
"@storybook/addon-interactions": "^8.0.2",
"@storybook/addon-links": "^8.0.2",
"@storybook/addon-mdx-gfm": "^8.0.2",
"@storybook/addon-onboarding": "^8.0.2",
"@storybook/blocks": "^8.0.2",
"@storybook/react": "^8.0.2",
"@storybook/react-vite": "^8.0.2",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
Expand All @@ -60,15 +64,12 @@
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.4.0",
"storybook": "^8.0.2",
"styled-components": "^6.0.7",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-dts": "^3.5.3",
"vite-tsconfig-paths": "^4.2.0",
"xmldom": "^0.6.0"
},
"resolutions": {
"jackspeak": "2.1.1"
}
}
Loading
Loading