tweak log messages

This commit is contained in:
Michael Bradley, Jr 2018-09-24 17:38:52 -05:00
parent c2d92b19f3
commit c8a9ac6048

View File

@ -21,6 +21,7 @@ class TemplateGenerator {
let {url, filePath, browse} = this.getExternalProject(uri); let {url, filePath, browse} = this.getExternalProject(uri);
let tmpFilePath = fs.tmpDir(filePath); let tmpFilePath = fs.tmpDir(filePath);
console.log(__('Installing template from ' + browse).green); console.log(__('Installing template from ' + browse).green);
console.log(__('Downloading template...').green);
fs.mkdirpSync(utils.dirname(tmpFilePath)); fs.mkdirpSync(utils.dirname(tmpFilePath));
utils.downloadFile(url, tmpFilePath, (err) => { utils.downloadFile(url, tmpFilePath, (err) => {
@ -46,8 +47,7 @@ class TemplateGenerator {
generate(destinationFolder, name) { generate(destinationFolder, name) {
const fspath = utils.joinPath(destinationFolder, name); const fspath = utils.joinPath(destinationFolder, name);
this.checkPathExists(fspath); this.checkPathExists(fspath);
console.log(__('Initializing Embark Template...').green); console.log(__('Initializing Embark template...').green);
let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName)); let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName));
fs.copySync(templatePath, fspath); fs.copySync(templatePath, fspath);