Skip to content

Commit 27874af

Browse files
author
Phillip Lanclos
committed
Use download-git-repo to support bitbucket also
1 parent a64127b commit 27874af

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ vue init username/repo my-project
4747

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

50+
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.
51+
5052
You can also create your own template from scratch:
5153

5254
- A template repo **must** have a `template` directory that holds the template files.

Diff for: bin/vue-init

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var Khaos = require('khaos-patched')
44
var metadata = require('read-metadata')
5-
var download = require('download-github-repo')
5+
var download = require('download-git-repo')
66
var program = require('commander')
77
var exists = require('fs').existsSync
88
var join = require('path').join

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"chalk": "^1.1.1",
3030
"commander": "^2.9.0",
31-
"download-github-repo": "^0.1.3",
31+
"download-git-repo": "^0.0.1",
3232
"khaos-patched": "^0.9.3",
3333
"read-metadata": "^1.0.0",
3434
"request": "^2.67.0",

0 commit comments

Comments
 (0)