log browsable url from info gen'd by hosted-git-info

This commit is contained in:
Michael Bradley, Jr 2018-09-24 17:37:39 -05:00
parent 1b7935678c
commit c2d92b19f3
1 changed files with 4 additions and 3 deletions

View File

@ -18,9 +18,9 @@ class TemplateGenerator {
const fspath = utils.joinPath(destinationFolder, name);
this.checkPathExists(fspath);
const self = this;
let {url, filePath} = this.getExternalProject(uri);
let {url, filePath, browse} = this.getExternalProject(uri);
let tmpFilePath = fs.tmpDir(filePath);
console.log(__('Installing Template from ' + uri + '....').green);
console.log(__('Installing template from ' + browse).green);
fs.mkdirpSync(utils.dirname(tmpFilePath));
utils.downloadFile(url, tmpFilePath, (err) => {
@ -103,7 +103,8 @@ class TemplateGenerator {
return {
url,
filePath: utils.joinPath(".embark/templates/", folder, "archive.zip")
filePath: utils.joinPath(".embark/templates/", folder, "archive.zip"),
browse: decodeURIComponent(hgi.browse())
};
}
}