Move publishing components to npm to its own file

This commit is contained in:
Kristofer Selbekk
2018-10-07 18:40:38 +02:00
parent 0651a47661
commit f9ab037907
3 changed files with 32 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
---
id: publishing-components-to-npm
title: Publishing components to npm
sidebar_label: Publishing to npm
---
Create React App doesn't provide any built-in functionality to publish a component to 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.

View File

@@ -7,15 +7,35 @@
"docs": {
"available-scripts": {
"title": "Available Scripts",
"sidebar_label": "Scripts"
"sidebar_label": "Available scripts"
},
"debugging-tests": {
"title": "Debugging Tests",
"sidebar_label": "Debugging tests"
},
"deployment": {
"title": "Deployment",
"sidebar_label": "Deployment"
},
"getting-started": {
"title": "Getting started",
"sidebar_label": "Getting started"
},
"publishing-components-to-npm": {
"title": "Publishing components to npm",
"sidebar_label": "Publishing to npm"
},
"README": {
"title": "README"
},
"running-tests": {
"title": "Running Tests",
"sidebar_label": "Running tests"
},
"troubleshooting": {
"title": "Troubleshooting",
"sidebar_label": "Troubleshooting"
},
"user-guide": {
"title": "User guide",
"sidebar_label": "User guide"
@@ -28,7 +48,10 @@
},
"categories": {
"Getting Started": "Getting Started",
"User Guide": "User Guide"
"User Guide": "User Guide",
"Testing": "Testing",
"Deployment": "Deployment",
"Support": "Support"
}
},
"pages-strings": {

View File

@@ -3,7 +3,7 @@
"Getting Started": ["getting-started"],
"User Guide": ["user-guide", "available-scripts"],
"Testing": ["running-tests", "debugging-tests"],
"Deployment": ["deployment"],
"Deployment": ["publishing-components-to-npm", "deployment"],
"Support": ["troubleshooting"]
}
}