[Vue3] UI Component 개발 시 local dependencies link 설정하기

미랭군·2023년 5월 12일
0

Link local dependencies

초기 개발 중에는 UI Component수정이 빈번하게 일어날 수 있다.
그래서 매번 UI Component 수정 시마다 Nexus Repository에 배포를 하고 your-app-project 프로젝트에서 다시 받아서 작업하는 것이 아니라 로컬 개발환경에서 neo-ui를 링크해서 작업하는 게 효율적이다.

다음은 pnpm을 통해서 symbolic link를 거는 방법이다.

# get dist
$ cd your-lib-project
$ pnpm build

# set cur element-plus to global `node_modules`
$ pnpm link --global

# go to your project, link to `element-plus`
$cd your-app-project
$pnpm link --global your-lib-project
profile
개발자

0개의 댓글