If you are developing a Web Component, whether it is for a company, a side project or something that is open source and publicly available, you can make it available for use by other people or team members very easily by publishing your Web Component on the web.
But even before you can publish, you need to make sure that the following steps are completed:
- Your component can be installed via npm
- A proper README file is present in the repository of your component with steps to use and attributes that can be changed
- A demo folder of a working example with index.html file
Let's prepare our file for npm. In order to do that, let's do a quick npm init inside the repo directory with the help of a terminal. I am going to do it with the <profile-info> component that we discussed in the previous section. That will generate a package.json...