* [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....@aliyun.com> Authored: Wed Sep 27 23:05:46 2017 +0800 Committer: gurisxie <279483...@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).