Skip to content

Commit db8c9c2

Browse files
committed
update docs installation (close #303)
1 parent ef0c72d commit db8c9c2

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

docs/en/installation.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ See [dist folder](https://github.com/vuejs/vue-router/tree/dev/dist). Note the d
1212

1313
``` bash
1414
npm install vue-router
15-
# dev branch
16-
npm install vuejs/vue-router#dev
1715
```
1816

1917
When used in CommonJS, you must explicitly install the router via `Vue.use()`:
@@ -27,10 +25,19 @@ Vue.use(VueRouter)
2725

2826
You don't need to do this when using the standalone build because it installs itself automatically.
2927

28+
### Dev Build
29+
30+
You will have to clone directly from GitHub and build `vue-router` yourself if you want to use the latest dev build.
31+
32+
``` bash
33+
git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
34+
cd node_modules/vue-router
35+
npm install
36+
npm run build
37+
```
38+
3039
### Bower
3140

3241
``` bash
3342
bower install vue-router
34-
# dev branch
35-
bower install vuejs/vue-router#dev
3643
```

docs/ja/installation.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
``` bash
1414
npm install vue-router
15-
# dev ブランチ
16-
npm install vuejs/vue-router#dev
1715
```
1816

1917
CommonJS で使用されるとき、明示的に `Vue.use()` 経由でルータはインストールされなければなりません:
@@ -27,10 +25,17 @@ Vue.use(VueRouter)
2725

2826
スタンドアロンビルドを使用しているときは、それ自身自動的にインストールされるため、これを実行する必要はありません。
2927

28+
### Dev ブランチ
29+
30+
``` bash
31+
git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
32+
cd node_modules/vue-router
33+
npm install
34+
npm run build
35+
```
36+
3037
### Bower
3138

3239
``` bash
3340
bower install vue-router
34-
# dev ブランチ
35-
bower install vuejs/vue-router#dev
3641
```

docs/zh-cn/installation.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
``` bash
1414
npm install vue-router
15-
# dev branch
16-
npm install vuejs/vue-router#dev
1715
```
1816

1917
如果使用 CommonJS 模块规范, 需要显式的使用 `Vue.use()` 安装路由模块:
@@ -27,10 +25,19 @@ Vue.use(VueRouter)
2725

2826
使用独立编译文件是不需要这样做,因为路由模块会自动安装。
2927

28+
### Dev Build
29+
30+
如果想要使用最新的 dev 版本,需要直接从 GitHub clone 然后自己构建。
31+
32+
``` bash
33+
git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
34+
cd node_modules/vue-router
35+
npm install
36+
npm run build
37+
```
38+
3039
### Bower
3140

3241
``` bash
3342
bower install vue-router
34-
# dev branch
35-
bower install vuejs/vue-router#dev
3643
```

0 commit comments

Comments
 (0)