mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-27 00:14:57 +08:00
Move publishing components to npm to its own file
This commit is contained in:
6
docusaurus/docs/publishing-components-to-npm.md
Normal file
6
docusaurus/docs/publishing-components-to-npm.md
Normal 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.
|
||||
@@ -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": {
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user