Skip to content

Commit 6d5a6a6

Browse files
authored
Add a section on publishing components to npm
1 parent 2c1f974 commit 6d5a6a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

template/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
7070
- [Developing Components in Isolation](#developing-components-in-isolation)
7171
- [Getting Started with Storybook](#getting-started-with-storybook)
7272
- [Getting Started with Styleguidist](#getting-started-with-styleguidist)
73+
- [Publishing Components on npm](#publishing-components-on-npm)
7374
- [Making a Progressive Web App](#making-a-progressive-web-app)
7475
- [Opting Out of Caching](#opting-out-of-caching)
7576
- [Offline-First Considerations](#offline-first-considerations)
@@ -1699,6 +1700,10 @@ Learn more about React Styleguidist:
16991700
* [GitHub Repo](https://github.com/styleguidist/react-styleguidist)
17001701
* [Documentation](https://react-styleguidist.js.org/docs/getting-started.html)
17011702
1703+
## Publishing Components on npm
1704+
1705+
Create React App doesn't provide any built-in functionality to publish a component on npm. If you're ready to extract a component from your project so other people can use it, we recommend moving it to a separate directory outside of your project and then using a tool like [nwb](https://github.com/insin/nwb#react-components-and-libraries) to prepare it for publishing.
1706+
17021707
## Making a Progressive Web App
17031708
17041709
By default, the production build is a fully functional, offline-first

0 commit comments

Comments
 (0)