BuildingXwithJS / proposals

Place for proposals on things to build, talk and review during livestreams
MIT License
20 stars 1 forks source link

Creating a library - reusable package in reactjs #6

Closed FDiskas closed 5 years ago

FDiskas commented 6 years ago

Please cover the following topics:

  1. How to develop library and check it in example app (https://docs.npmjs.com/cli/link)
  2. react and react-dom should be as pear dependency and how to develop library (should i install react as global? or should I add different package.json to npm?)
  3. Transpile using (rollup?, babel?, typescript?)
  4. Transpile to es and umd and why?
  5. Talk about how to get props auto completion in IDE using my library
  6. How to automate publishing by releasing new version using npm version and CI for publishing to npm
  7. Why we need to follow https://semver.org principles
  8. Do we need to (have/follow) commit rules
  9. How to (create/automate) release notes
  10. How to not publish source code and other mess in to npm
  11. How to check published files are correct (unpkg.com)
  12. How to deploy demo page using github pages.
  13. How to configure github repo to allow community to grow and work with minimum administration
  14. Other best practices
    1. should I use typescript for my library
    2. do I need create type definitions?
    3. folder structure
    4. how to demo page
    5. how to documentation (generated?)
    6. contributing guidelines
yamalight commented 6 years ago

Probably would do stuff like github pages in separate vids / livestreams, but overall - good idea. Thanks for submitting!

yamalight commented 5 years ago

Code is published here: https://github.com/BuildingXwithJS/bxjs-react-component

yamalight commented 5 years ago

Video is up on youtube: https://youtu.be/kD5_Hx-H6Fw

FDiskas commented 5 years ago

Thanks