Skip to content

Use download-git-repo to support bitbucket also #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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