Socket
Socket
Sign inDemoInstall

@airbridge/component

Package Overview
Dependencies
919
Maintainers
4
Versions
157
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @airbridge/component

Airbridge UI Design System built with TypeScript, React


Version published
Weekly downloads
398
increased by598.25%
Maintainers
4
Weekly downloads
ย 

Readme

Source

airbridge-design-system

์—์–ด๋ธŒ๋ฆฟ์ง€ ๋Œ€์‹œ๋ณด๋“œ์— ์‚ฌ์šฉ๋˜๋Š” ๋””์ž์ธ ์‹œ์Šคํ…œ์„ ๊ด€๋ฆฌํ•˜๋Š” Repository์ž…๋‹ˆ๋‹ค.
๊ฐ ๋‚ด์šฉ์„ ์ฐธ์กฐํ•˜์—ฌ ์—…๋ฌด ์ง„ํ–‰์„ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค :)

โœ… Requirement

  • Node (LTS version)
  • PNPM
How To Install
# install node from brew
brew install node

# install pnpm from brew
brew install pnpm

# setup version
pnpm env use --global 16

โš’๏ธ Environment Setup

๋ณธ ๋ ˆํฌ์ง€ํ„ฐ๋ฆฌ๋ฅผ Cloneํ•œ ๋’ค, PNPM์„ ์‚ฌ์šฉํ•ด ํ•„์š”ํ•œ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด์ฃผ์„ธ์š”.
GitKraken ๋“ฑ์˜ Git GUI ๋„๊ตฌ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด, ๋ณด๋‹ค ํŽธํ•˜๊ฒŒ ์ž‘์—…ํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

# install packages from lock file
pnpm install

๐Ÿƒ Install & Run

์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๊ณ , ๋กœ์ปฌ์—์„œ ๊ฐœ๋ฐœ ๋‚ด์šฉ์„ ํ™•์ธํ•˜๊ณ ์ž ํ•  ๋•Œ๋Š” ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.

pnpm storybook

๋กœ์ปฌ์—์„œ ๋นŒ๋“œ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ๋Š” ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.

pnpm build

๐ŸŽจ Templates

์•„๋ž˜ ๋ช…๋ น์–ด๋“ค์„ ์ด์šฉํ•ด ํ…œํ”Œ๋ฆฟ์ด ์ ์šฉ๋œ ํŒŒ์ผ์„ ์‰ฝ๊ฒŒ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

foundation ํ…œํ”Œ๋ฆฟ์„ ์‚ฌ์šฉํ•˜๊ณ ์ž ํ•  ๋•Œ๋Š” ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.

pnpm new:foundation [NAME]
  • src/foundations/[NAME]/[NAME].stories.mdx ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. (*template)
  • src/foundations/[NAME]/[NAME].ts ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. (*template)
  • src/foundations/[NAME]/index.ts ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
  • src/foundations/index.ts ์— export๋ฌธ์ด ์ถ”๊ฐ€๋ฉ๋‹ˆ๋‹ค.

component ํ…œํ”Œ๋ฆฟ์„ ์‚ฌ์šฉํ•˜๊ณ ์ž ํ•  ๋•Œ๋Š” ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.
ํ„ฐ๋ฏธ๋„์— ์ œ์‹œ๋˜๋Š” ํ”„๋กฌํ”„ํŠธ์—์„œ ์ปดํฌ๋„ŒํŠธ์˜ ์ด๋ฆ„๊ณผ props๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์ปดํฌ๋„ŒํŠธ ์ƒ์„ฑ์— ํ•„์š”ํ•œ ํŒŒ์ผ๋“ค์ด ์ž๋™ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

pnpm new:component
  • src/components/foo/Foo.tsx ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
  • src/components/foo/Foo.styles.ts ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
  • src/components/foo/index.ts ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
  • Storybook์˜ Docs๋ฅผ ๊ตฌ์„ฑํ•  ํŒŒ์ผ๋“ค์ด storybook ํด๋” ๋‚ด์— ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
    • src/components/foo/storybook/Foo.docs.mdx ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
    • src/components/foo/storybook/Foo.stories.tsx ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
    • src/components/foo/storybook/Foo.stories.styles.tsx ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
  • src/components/index.ts ์— export๋ฌธ์ด ์ถ”๊ฐ€๋ฉ๋‹ˆ๋‹ค.


๐Ÿ” Stability & Review

For QA & Code Review

Code Review๋ฅผ ์œ„ํ•ด PR์„ ์˜ฌ๋ฆด ๋•Œ๋Š”, ๊ธฐ๋ณธ์ ์œผ๋กœ 'Draft Pull Request' ์˜ต์…˜์„ ํ™œ์„ฑํ™”์‹œํ‚ต๋‹ˆ๋‹ค.

QA์— ํ•„์š”ํ•œ ํ™˜๊ฒฝ์€ Vercel๋กœ ๊ตฌ์ถ•ํ•ฉ๋‹ˆ๋‹ค.
feature/TICKET_NAME ์œผ๋กœ ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•œ ํ›„ master๋กœ PR์„ ๋ณด๋‚ด๋ฉด, ์ž๋™์œผ๋กœ Deploy Preview๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.


๐Ÿš€ Deployment

master ๋ธŒ๋žœ์น˜์— ์ƒˆ๋กœ์šด ์ปค๋ฐ‹์ด ์ƒ๊ธฐ๋ฉด (merge or push),
GitHub Actions๋ฅผ ํ†ตํ•ด ๋นŒ๋“œ ์ดํ›„ Vercel์„ ํ†ตํ•ด ๋ฐฐํฌ๋ฉ๋‹ˆ๋‹ค. ๋ฐฐํฌ ์™„๋ฃŒ์‹œ #dev-alert-ads์—์„œ ์•Œ๋ฆผ์„ ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ธฐํƒ€ ๋‚ด๋ถ€ ์˜ค๋ฅ˜ ์ฒ˜๋ฆฌ

hotfix/TICKET_NAME ์œผ๋กœ ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ž‘์—…, PR์„ ์˜ฌ๋ฆฐ ๋’ค mergeํ•ฉ๋‹ˆ๋‹ค.



etc...



"Design system is a process and therefore is simultaneously always ready and never done." > - Marcin Treder, UXPin

Keywords

Last updated on 08 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc