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

feature: Rollup config file added for development #5

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

immigration9
Copy link
Contributor

Rollup Dev Config

Rollup Configuration file을 새롭게 제작하였습니다.

이제 yarn build:dev 를 실행하면 원하는 프로젝트에 publish없이 바로바로 remember-ui 개발사항이 반영될 수 있도록 수정하였습니다.

전제조건으로, 프로젝트 루트 디렉토리에 .env 파일을 생성해줘야 합니다.

이후, 해당 .env 파일 안에 아래와 같이 원하는 디렉토리 명을 적어주면 됩니다. (~과 같은 디렉토리는 사용할 수 없습니다.)

DIRECTORY=../career-web/node_modules/remember-ui

.env 파일은 개발자별로 프로젝트가 다를 수 있기 때문에 gitignore 처리하였습니다. 개별적으로 생성하신 후 커밋은 하지 말아주시기 바랍니다.

기본적으로 watch 옵션이 들어갔기 때문에, 켜놓고 사용하면 변경사항을 저장할 때마다 파일을 새롭게 생성합니다. (평균적으로 저장을 누르면 약 1~2초 정도 시간이 발생합니다)

@immigration9 immigration9 merged commit 6733e0a into master Jul 6, 2020
@immigration9 immigration9 deleted the feature/dev-watch-rollup branch July 6, 2020 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant