Browse Source
chore: specify npm as the package manager (#42611)
* chore: specify npm as the package manager
* chore: update version
* Update package.json
Co-authored-by: afc163 <afc163@gmail.com>
---------
Co-authored-by: afc163 <afc163@gmail.com>
pull/42624/head
Dunqing
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
14 additions and
0 deletions
-
.npmrc
-
docs/react/contributing.en-US.md
-
docs/react/contributing.zh-CN.md
-
package.json
|
@ -0,0 +1 @@ |
|
|
|
|
|
package-lock=false |
|
@ -62,6 +62,12 @@ Since antd's components are based on react-component, sometimes you may need to |
|
|
|
|
|
|
|
|
## Development Workflow |
|
|
## Development Workflow |
|
|
|
|
|
|
|
|
|
|
|
Before you can start you must run the following command to enable [corepack](https://nodejs.org/api/corepack.html)。 |
|
|
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
corepack enable |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
After cloning antd, run `npm install` to fetch its dependencies. Then, you can run several commands: |
|
|
After cloning antd, run `npm install` to fetch its dependencies. Then, you can run several commands: |
|
|
|
|
|
|
|
|
1. `npm start` runs Ant Design website locally. |
|
|
1. `npm start` runs Ant Design website locally. |
|
|
|
@ -62,6 +62,12 @@ Ant Design 团队会关注所有的 pull request,我们会 review 以及合并 |
|
|
|
|
|
|
|
|
## 开发流程 |
|
|
## 开发流程 |
|
|
|
|
|
|
|
|
|
|
|
在开始之前,请先执行下面的命令启用 [corepack](https://nodejs.org/api/corepack.html)。 |
|
|
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
corepack enable |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
在你 clone 了 antd 的代码并且使用 `npm install` 安装完依赖后,你还可以运行下面几个常用的命令: |
|
|
在你 clone 了 antd 的代码并且使用 `npm install` 安装完依赖后,你还可以运行下面几个常用的命令: |
|
|
|
|
|
|
|
|
1. `npm start` 在本地运行 Ant Design 的网站。 |
|
|
1. `npm start` 在本地运行 Ant Design 的网站。 |
|
|
|
@ -1,6 +1,7 @@ |
|
|
{ |
|
|
{ |
|
|
"name": "antd", |
|
|
"name": "antd", |
|
|
"version": "5.5.1", |
|
|
"version": "5.5.1", |
|
|
|
|
|
"packageManager": "^npm@9.0.0", |
|
|
"description": "An enterprise-class UI design language and React components implementation", |
|
|
"description": "An enterprise-class UI design language and React components implementation", |
|
|
"title": "Ant Design", |
|
|
"title": "Ant Design", |
|
|
"keywords": [ |
|
|
"keywords": [ |
|
|