From c2d92b19f32bd02b922252cf301c0b614312637d Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 24 Sep 2018 17:37:39 -0500 Subject: [PATCH] log browsable url from info gen'd by hosted-git-info --- lib/utils/template_generator.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/utils/template_generator.js b/lib/utils/template_generator.js index 1501ec598..b603c308b 100644 --- a/lib/utils/template_generator.js +++ b/lib/utils/template_generator.js @@ -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()) }; } }