From 721aa2356a6fe033c372733f3f882340140d95b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=B3=A2?= <18310915680@163.com>
Date: Tue, 21 Jan 2020 18:08:53 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E5=90=AF?=
=?UTF-8?q?=E5=8A=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 44 ++++++++++++--------------------------------
package.json | 1 +
2 files changed, 13 insertions(+), 32 deletions(-)
diff --git a/README.md b/README.md
index 2fa78e7..36ef375 100644
--- a/README.md
+++ b/README.md
@@ -1,44 +1,24 @@
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
+# 项目说明
-## Available Scripts
+## 命令说明
-In the project directory, you can run:
+### `yarn` (npm install)
-### `yarn start`
+安装依赖
-Runs the app in the development mode.
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
+### `yarn start` (npm start)
-The page will reload if you make edits.
-You will also see any lint errors in the console.
+启动项目,默认3000端口,支持ip访问
-### `yarn test`
+### `yarn test` (npm run test)
-Launches the test runner in the interactive watch mode.
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
+单元测试
-### `yarn build`
+### `yarn build` (npm run build)
-Builds the app for production to the `build` folder.
-It correctly bundles React in production mode and optimizes the build for the best performance.
+项目打包,如需配置打包后的路径,可修改package.json文件的"homepage"项
-The build is minified and the filenames include the hashes.
-Your app is ready to be deployed!
+### `yarn eject` (npm run eject)
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+在项目目录下生成配置文件,适用于度项目的再配置。注:次操作是不可逆的,建议使用react-rewrited-app进行项目再配置
-### `yarn eject`
-
-**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
-
-If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
-
-You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
-
-## Learn More
-
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).
diff --git a/package.json b/package.json
index 79afa85..43545b1 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,7 @@
"name": "react-ts-app",
"version": "0.1.0",
"private": true,
+ "homepage": "/app-base/",
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
--
Gitee