Skip to content

Commit

Permalink
Merge pull request vuejs#14 from flipxfx/master
Browse files Browse the repository at this point in the history
Use download-git-repo to support bitbucket also
  • Loading branch information
yyx990803 committed Jan 13, 2016
2 parents a64127b + 27874af commit e334e65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ vue init username/repo my-project

Where `username/repo` is the GitHub repo shorthand for your fork.

The shorthand repo notation is passed to [download-git-repo](https://github.com/flipxfx/download-git-repo) so you can also use things like `bitbucket:username/repo` for a Bitbucket repo and `username/repo#branch` for tags or branches.

You can also create your own template from scratch:

- A template repo **must** have a `template` directory that holds the template files.
Expand Down
2 changes: 1 addition & 1 deletion bin/vue-init
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var Khaos = require('khaos-patched')
var metadata = require('read-metadata')
var download = require('download-github-repo')
var download = require('download-git-repo')
var program = require('commander')
var exists = require('fs').existsSync
var join = require('path').join
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"chalk": "^1.1.1",
"commander": "^2.9.0",
"download-github-repo": "^0.1.3",
"download-git-repo": "^0.0.1",
"khaos-patched": "^0.9.3",
"read-metadata": "^1.0.0",
"request": "^2.67.0",
Expand Down

0 comments on commit e334e65

Please sign in to comment.