As in, developers with experience publishing and maintaining npm packages. Our startup's planning to open-source our component library and need someone to take us through the process. All recommendations welcome and I can make a list for others to find down the line!
Do you have any specific question in mind?
Publishing to the npm is pretty straightforward:
Step 0: You need an account on npm
You need to setup owner in your package.json
It can be done via
npm ownercommand (https://docs.npmjs.com/cli/v7/commands/npm-owner)If you have your package.json file already set up (without
private: true)npm publishshould be enoughMore: https://docs.npmjs.com/creating-and-publishing-unscoped-public-packages
If you need your package neatly organized, scoped packages are helpful (for instance, multiple packages under one scope, each component of the library to be a separate npm package, etc.):
https://docs.npmjs.com/creating-and-publishing-scoped-public-packages
This pattern allows installing just one component instead of a whole library at once.
For managing many packages, monorepo pattern is helpful (like Lerna, https://lerna.js.org/)
If you need to publish a new version of the package, it needs new version number in package.json.
Personally, I like following semver pattern when versioning any project
(https://semver.org/)
After that:
npm publishPublishing to npm is a easy process. I did it for HelloEle.com . Its a opensource project .