with me์ ๋ชจ๋ ๋์์ธ ์์๋ฅผ ์์ ํ๋ ๋ ํฌ์งํ ๋ฆฌ ์ ๋๋ค.
- withme-ui - ์ปดํฌ๋ํธ ํจํค์ง with react (npm)
- withme-icon - ์์ด์ฝ ํจํค์ง with react (npm)
- withme-style - ์คํ์ผ ํจํค์ง with scss (npm)
packages
์ ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ฌ์ฉ๋ฒ๋ค์ ๊ฐ ์ํฌ์คํ์ด์ค README.md๋ฅผ ์ฐธ๊ณ ํ๋ฉด ๋ฉ๋๋ค!
์คํ ๋ฆฌ๋ถ์ ์ด์ฉํด ๋์์ธ ์์คํ
๋ฌธ์๋ฅผ ๊ตฌ์ถํ์ต๋๋ค.
[storybook] ๋ฐ๋ก๊ฐ๊ธฐ
# ์ค์น
yarn
# ํจํค์ง ์ถ๊ฐ
yarn add <package-name>
# ๋ชจ๋ ์์กด์ฑ ์ญ์
yarn clean
# git ์ปค๋ฐ
yarn commit
# ๊ฐ๋ฐ ์์
yarn dev
- ๊ฒฝ๋ก๋ฅผ withme-ui ํจํค์ง๋ก ์ด๋ํ๊ณ ํด๋น ํฐ๋ฏธ๋์์
# ์คํ ๋ฆฌ๋ถ ์คํ (port 6006)
yarn storybook
# ์ถ๊ฐ
yarn workspace <workspace-name> add <package-name>
# ์ ๊ฑฐ
yarn workspace <workspace-name> remove <package-name>
# npm login
yarn npm login
# ๋ชจ๋ ํจํค์ง npm ๋ฐฐํฌ
yarn publish
# ๋น๋
yarn workspace <workspace-name> build
# ex: yarn workspace @pickk/design-token build
# ๋ฒ์ ์
๋ฐ์ดํธ (strategy = 'major'|'minor'|'patch')
yarn workspace <workspace-name> version <strategy>
# ๋ฒ์ ์
๋ฐ์ดํธ ์ปค๋ฐ ์์ฑ
git commit -m "chore(<scope-name>): release <workspace-name> <version>"
# ํ๊ทธ ๋ถ์ฌ
git tag -a "<workspace-name>@<version>"
# ๋ฐฐํฌ
yarn workspace <workspace-name> npm publish
# node version
node -v
# 16.15.1