Parcourir la source

doc: fix #4370,edit readme for v4

陈帅 il y a 6 ans
Parent
commit
820b63912d
6 fichiers modifiés avec 60 ajouts et 126 suppressions
  1. 10 24
      README.fr-FR.md
  2. 10 24
      README.ja-JP.md
  3. 10 24
      README.md
  4. 10 2
      README.ru-RU.md
  5. 10 26
      README.tr-TR.md
  6. 10 26
      README.zh-CN.md

+ 10 - 24
README.fr-FR.md

@@ -77,32 +77,18 @@ Nous avons besoin de votre aide: https://github.com/ant-design/ant-design-pro/is
 ### Utiliser bash
 
 ```bash
-$ git clone https://github.com/ant-design/ant-design-pro.git --depth=1 -b v2
-$ cd ant-design-pro
-$ npm install
-$ npm start         # visiter http://localhost:8000
-```
-
-### Utilisation par docker
-
-```bash
-# aperçu
-$ docker pull antdesign/ant-design-pro
-$ docker run -p 80:80 antdesign/ant-design-pro
-# ouvrir http://localhost
+$ yarn create umi  # or npm create umi
 
-# développement
-$ npm run docker:dev
+# Choose ant-design-pro:
+ Select the boilerplate type (Use arrow keys)
+❯ ant-design-pro  - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
+  app             - Create project with a simple boilerplate, support typescript.
+  block           - Create a umi block.
+  library         - Create a library with umi.
+  plugin          - Create a umi plugin.
 
-# construction
-$ npm run docker:build
-
-
-# développement en production
-$ npm run docker-prod:dev
-
-# construction en production
-$ npm run docker-prod:build
+$ npm install
+$ npm start         # visit http://localhost:8000
 ```
 
 ### Utilisation de Gitpod

+ 10 - 24
README.ja-JP.md

@@ -77,32 +77,18 @@
 ### bash を使う方法
 
 ```bash
-$ git clone https://github.com/ant-design/ant-design-pro.git --depth=1
-$ cd ant-design-pro
-$ npm install
-$ npm start         # http://localhost:8000 を開く
-```
-
-### Docker を使う方法
-
-```bash
-# プレビュー
-$ docker pull antdesign/ant-design-pro
-$ docker run -p 80:80 antdesign/ant-design-pro
-# http://localhost を開く
+$ yarn create umi  # or npm create umi
 
-# dev
-$ npm run docker:dev
+# Choose ant-design-pro:
+ Select the boilerplate type (Use arrow keys)
+❯ ant-design-pro  - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
+  app             - Create project with a simple boilerplate, support typescript.
+  block           - Create a umi block.
+  library         - Create a library with umi.
+  plugin          - Create a umi plugin.
 
-# build
-$ npm run docker:build
-
-
-# production dev
-$ npm run docker-prod:dev
-
-# production build
-$ npm run docker-prod:build
+$ npm install
+$ npm start         # http://localhost:8000 を開く
 ```
 
 ### Gitpod を使う方法

+ 10 - 24
README.md

@@ -79,32 +79,18 @@ We need your help: https://github.com/ant-design/ant-design-pro/issues/120
 ### Use bash
 
 ```bash
-$ git clone https://github.com/ant-design/ant-design-pro.git --depth=1 -b v2
-$ cd ant-design-pro
-$ npm install
-$ npm start         # visit http://localhost:8000
-```
-
-### Use by docker
-
-```bash
-# preview
-$ docker pull antdesign/ant-design-pro
-$ docker run -p 80:80 antdesign/ant-design-pro
-# open http://localhost
+$ yarn create umi  # or npm create umi
 
-# dev
-$ npm run docker:dev
+# Choose ant-design-pro:
+ Select the boilerplate type (Use arrow keys)
+❯ ant-design-pro  - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
+  app             - Create project with a simple boilerplate, support typescript.
+  block           - Create a umi block.
+  library         - Create a library with umi.
+  plugin          - Create a umi plugin.
 
-# build
-$ npm run docker:build
-
-
-# production dev
-$ npm run docker-prod:dev
-
-# production build
-$ npm run docker-prod:build
+$ npm install
+$ npm start         # visit http://localhost:8000
 ```
 
 ### Use Gitpod

+ 10 - 2
README.ru-RU.md

@@ -71,8 +71,16 @@ UI-решение "из коробки" для корпоративных при
 ## Использование
 
 ```bash
-$ git clone https://github.com/ant-design/ant-design-pro.git --depth=1 -b v2
-$ cd ant-design-pro
+$ yarn create umi  # or npm create umi
+
+# Choose ant-design-pro:
+ Select the boilerplate type (Use arrow keys)
+❯ ant-design-pro  - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
+  app             - Create project with a simple boilerplate, support typescript.
+  block           - Create a umi block.
+  library         - Create a library with umi.
+  plugin          - Create a umi plugin.
+
 $ npm install
 $ npm start         # visit http://localhost:8000
 ```

+ 10 - 26
README.tr-TR.md

@@ -74,35 +74,19 @@ React ile kurumsal uygulamalar için taslak olarak geliştirilmiş kullanıma ha
 
 ## Kullanım
 
-### bash ile kullanım
-
-```bash
-$ git clone https://github.com/ant-design/ant-design-pro.git --depth=1 -b v2
-$ cd ant-design-pro
-$ npm install
-$ npm start         # visit http://localhost:8000
-```
-
-### Docker ile kullanım
-
 ```bash
-# preview
-$ docker pull chenshuai2144/ant-design-pro
-$ docker run -p 80:80 chenshuai2144/ant-design-pro
-# open http://localhost
-
-# dev
-$ npm run docker:dev
-
-# build
-$ npm run docker:build
+$ yarn create umi  # or npm create umi
 
+# Choose ant-design-pro:
+ Select the boilerplate type (Use arrow keys)
+❯ ant-design-pro  - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
+  app             - Create project with a simple boilerplate, support typescript.
+  block           - Create a umi block.
+  library         - Create a library with umi.
+  plugin          - Create a umi plugin.
 
-# production dev
-$ npm run docker-prod:dev
-
-# production build
-$ npm run docker-prod:build
+$ npm install
+$ npm start         # visit http://localhost:8000
 ```
 
 Daha fazla talimat için [dokümantasyon](http://pro.ant.design/docs/getting-started) sayfasına göz atın.

+ 10 - 26
README.zh-CN.md

@@ -72,35 +72,19 @@
 
 ## 使用
 
-### 使用命令行
-
-```bash
-$ git clone https://github.com/ant-design/ant-design-pro.git --depth=1 -b v2
-$ cd ant-design-pro
-$ npm install
-$ npm start         # 访问 http://localhost:8000
-```
-
-### 使用 docker
-
 ```bash
-# preview
-$ docker pull antdesign/ant-design-pro
-$ docker run -p 80:80 antdesign/ant-design-pro
-# open http://localhost
-
-# dev
-$ npm run docker:dev
-
-# build
-$ npm run docker:build
+$ yarn create umi  # or npm create umi
 
+# Choose ant-design-pro:
+ Select the boilerplate type (Use arrow keys)
+❯ ant-design-pro  - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
+  app             - Create project with a simple boilerplate, support typescript.
+  block           - Create a umi block.
+  library         - Create a library with umi.
+  plugin          - Create a umi plugin.
 
-# production dev
-$ npm run docker-prod:dev
-
-// production build
-$ npm run docker-prod:build
+$ npm install
+$ npm start         # visit http://localhost:8000
 ```
 
 更多信息请参考 [使用文档](http://pro.ant.design/docs/getting-started)。