Skip to content

Commit

Permalink
Merge pull request vuejs#164 from chris-schmitz/master
Browse files Browse the repository at this point in the history
Adds detail to the readme on installing a specific template version
  • Loading branch information
zigomir authored Sep 11, 2016
2 parents aa3c1f2 + 179136a commit 27c5931
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,25 @@ Note that the `dot` option for minimatch is set to `true` so glob patterns would
}
```

### Installing a specific template version

`vue-cli` uses the tool [`download-git-repo`](https://github.com/flipxfx/download-git-repo) to download the official templates used. The `download-git-repo` tool allows you to indicate a specific branch for a given repository by providing the desired branch name after a pound sign (`#`).

The format needed for a specific official template is:

```
vue init <template-name>#<branch-name> <project-name>
```

Example:

Installing the [`1.0` branch](https://github.com/vuejs-templates/webpack-simple/tree/1.0) of the webpack-simple vue template:

```
vue init webpack-simple#1.0 mynewproject
```


### License

[MIT](http://opensource.org/licenses/MIT)

0 comments on commit 27c5931

Please sign in to comment.