mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
tweak log messages
This commit is contained in:
parent
c2d92b19f3
commit
c8a9ac6048
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user