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

ライブラリの依存関係周りを整理 #42

Closed
youchann opened this issue May 27, 2020 · 1 comment · Fixed by #43
Closed

ライブラリの依存関係周りを整理 #42

youchann opened this issue May 27, 2020 · 1 comment · Fixed by #43
Assignees

Comments

@youchann
Copy link
Contributor

概要

  • 現状react-datesとかを一緒にyarn addしないといけないのは、devDependenciesに書かれているから
  • styled-componentsを含めてライブラリを公開する場合は特殊な設定が必要そう(参考2)
  • 上記を踏まえてpackage.jsonを整理したい

対応

  • ingred-uiの利用に必要となるライブラリはdevDependenciesに記述
  • styled-components周りはbundle設定も含めて諸々対応(資料をもう少し読む)

備考

  • ローカルで検証したい
  • Revertできるようにしたい(センシティブな変更となる)
  • この類の変更はメジャーアップデートかもしれない

という理由から、#40 がリリースされてからの対応が良さそう

参考

  1. https://qiita.com/cognitom/items/acc3ffcbca4c56cf2b95
  2. https://styled-components.com/docs/faqs#i-am-a-library-author-should-i-bundle-styledcomponents-with-my-library
  3. https://docs.npmjs.com/files/package.json#dependencies

だいたいここら辺を読むと対応できそう。

@youchann youchann self-assigned this May 27, 2020
@youchann
Copy link
Contributor Author

https://styled-components.com/docs/faqs#with-rollupjs

をみた感じ、styled-componentsに関しては何もしなくて良いかも...??

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 a pull request may close this issue.

1 participant