weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guris...@apache.org
Subject [08/19] incubator-weex git commit: * [doc] Fixed grammar glitches in set-up-env.
Date Wed, 04 Oct 2017 08:24:42 GMT
* [doc] Fixed grammar glitches in set-up-env.

Updated grammar and expression glitches in "Setup Development
Environment", also added dotWe link to the corresponding Chinese
version of this document.

Bug: WEEX-76


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/64510dd4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/64510dd4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/64510dd4

Branch: refs/heads/release-0.16
Commit: 64510dd46dbda33d8473610dfac257afb1c36b06
Parents: 4d0359e
Author: Jonathan Dong <dong.yan@aliyun.com>
Authored: Wed Sep 27 23:05:46 2017 +0800
Committer: gurisxie <279483595@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/guide/set-up-env.md |  4 ++--
 doc/source/guide/set-up-env.md    | 34 +++++++++++++++++-----------------
 2 files changed, 19 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/64510dd4/doc/source/cn/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/guide/set-up-env.md b/doc/source/cn/guide/set-up-env.md
index 48ae606..222495a 100644
--- a/doc/source/cn/guide/set-up-env.md
+++ b/doc/source/cn/guide/set-up-env.md
@@ -8,7 +8,7 @@ has_chapter_content: true
 
 # 搭建开发环境
 
-使用 dotWe 对 Weex 尝鲜是一个不错的选择,但如果你想更专业的开发
Weex, dotWe 就不怎么够用了。本节会教你如何搭建本地开发环境进行
Weex 开发。
+使用 [dotWe](http://dotwe.org/vue) 对 Weex 尝鲜是一个不错的选择,但如果你想更专业的开发
Weex, dotWe 就不怎么够用了。本节会教你如何搭建本地开发环境进行
Weex 开发。
 
 ## 第一步:安装依赖
 
@@ -129,4 +129,4 @@ $ weex create awesome-project
 </script>
 ```
 
-关于 Weex 语法部分,你可以直接参考 [Vue Guide](https://vuejs.org/v2/guide/),这里不再重复介绍。如果您想了解有关技术详情的更多信息,请继续阅读下一节。并且不要忘记在
dotWe 写代码并随时预览。
+关于 Weex 语法部分,你可以直接参考 [Vue Guide](https://vuejs.org/v2/guide/),这里不再重复介绍。如果您想了解有关技术详情的更多信息,请继续阅读下一节。并且不要忘记在
[dotWe](http://dotwe.org/vue) 写代码并随时预览。

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/64510dd4/doc/source/guide/set-up-env.md
----------------------------------------------------------------------
diff --git a/doc/source/guide/set-up-env.md b/doc/source/guide/set-up-env.md
index af52bb3..ac52367 100644
--- a/doc/source/guide/set-up-env.md
+++ b/doc/source/guide/set-up-env.md
@@ -1,68 +1,68 @@
 ---
-title: Set Up Development Environment 
+title: Setup Development Environment
 type: guide
 order: 1.1
 version: 2.1
 has_chapter_content: true
 ---
 
-# Set up development environment 
+# Setup Development Environment
 
 Using [dotWe](http://dotwe.org/vue) is a good choice, but if you want to develop locally
on your own machine, you will need to set up your development environment.
 
 You will need Node.js and the [Weex CLI](https://github.com/weexteam/weex-toolkit).
 
-You can install Node using [nvm](https://github.com/creationix/nvm) (Simple bash script to
manage multiple active node.js versions). Run the following commands in a Terminal after installing
nvm:
+Install Node.js using [nvm](https://github.com/creationix/nvm) (Simple bash script to manage
multiple active Node.js versions). Run the following commands in a terminal after installing
nvm:
 
 ```bash
 $ nvm install 6.10.0
 $ nvm use 6.10.0
 ```
 
-Node.js comes with npm, which lets you install the Weex CLI.
+And `npm` comes with Node.js, with witch you can install the Weex command line tools.
 
-**NOTE: ** After the `weex-toolkit`1.0.8 version, the npm-shrinkwrap.json` npm5 specification
has been added to lock the package dependencies, so the npm version <5 needs to be updated
by` npm i npm @latest -g` npm version, please confirm whether the version is correct before
use.
+**NOTE: ** After upgrading the `weex-toolkit` to v1.0.8, the `npm-shrinkwrap.json` npm 5
specification has been added to lock the package dependencies, it is needed to upgrade your
npm version to 5 above by command: `npm install npm @latest -g` if your version is lower than
this, please check your npm version before using it.
 
-Run the following command in a Terminal:
+Run the following commands in a terminal:
 
 ```bash
 $ npm install -g weex-toolkit
 $ weex -v
 ```
-You can use 'update@x.x.x' command to update specify version of weex-devtool,weex-previewer,weex-builder
and weexpack
+You can use 'weex update <component>@x.x.x' to update weex-devtool, weex-previewer,
weex-builder and weexpack to a specific version.
 ```
-weex update weex-devtool@latest //latest sign means install latest version
+weex update weex-devtool@latest // Here latest means to install the latest version
 ```
-**NOTE: ** If you get an error like "permission error", try installing with `sudo`.
 
+**NOTE: ** If you receive an error like "permission error", try another time with `sudo`.
 
-Then you can use the Weex command to verify that the installation is successful:
+Then you can use the Weex command to verify if the installation is successful:
 
 ![](https://img.alicdn.com/tfs/TB1NBhdQXXXXXXzXFXXXXXXXXXX-712-343.png)
 
 ### Generate a new Weex project
 
-You can use the CLI to generate a Weex project called "awesome-project". Run the following
command in a Terminal:
+Use the command line tool to generate a Weex project called "awesome-project". Run the following
command in a terminal:
 
 ```bash
 $ weex create awesome-project
 ```
 
-Then enter the awesome-project folder, the CLI has been for us to generate a standard project
structure.
+Then enter the awesome-project folder, you will see a standard project skeleton has been
generated.
 
 ### Usage
 
-We enter the awesome-project folder and install dependencies with the following commands:
+In the awesome-project folder, install dependencies with the following command:
 
 ```bash
 npm install
 ```
 
-Then we run `npm run serve` in root directory to start watch mode and static server.
+Then run `npm run serve` in root directory to start watching mode and static server.
 
-Finally, we can see the Weex page in `http://localhost:8080/index.html`.
+Finally, you can access the Weex page in `http://localhost:8080/index.html`.
 
-You can modify this page in `src/index.vue`. The code is shown below:
+This page can be modified in `src/index.vue`. The codes are shown below:
 
 ```html
 <template>
@@ -96,4 +96,4 @@ You can modify this page in `src/index.vue`. The code is shown below:
 </script>
 ```
 
-If you're curious to learn more about technical details, continue on to the next section.
And don't forget to write code at [dotWe](http://dotwe.org) and preview at anytime.
+For more technical details, please continue to read the next section. And don't forget to
write and preview your codes at [dotWe](http://dotwe.org/vue).


Mime
View raw message