From 8d707010fea9a8da598fc2c248d07b6224bb2a5f Mon Sep 17 00:00:00 2001 From: Walker Leite Date: Tue, 12 Sep 2017 19:12:31 -0300 Subject: [PATCH] update logging --- meta.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/meta.js b/meta.js index da06828..522c98c 100644 --- a/meta.js +++ b/meta.js @@ -20,14 +20,16 @@ module.exports = { } }, "complete": function(data, {logger}) { - logger.log("To get started:"); - if (data.inPlace) logger.log("\n\ncd " + data.destDirName); - logger.log("1. Install dependencies npm install"); - logger.log("2. Write your component in src/Component.vue"); - logger.log("3. Write a demo in docs docs/Usage.md"); - logger.log("4. Access demo and docs with npm run serve"); - logger.log("5. Build with npm run build"); - logger.log("6. Build docs with npm run build:doc"); + let msg = "To get started:"; + if (data.inPlace) msg.concat("\n\ncd " + data.destDirName); + msg.concat("\n\n1. Install dependencies npm install"); + msg.concat("\n2. Write your component in src/Component.vue"); + msg.concat("\n3. Write a demo in docs docs/Usage.md"); + msg.concat("\n4. Access demo and docs with npm run serve"); + msg.concat("\n5. Build with npm run build"); + msg.concat("\n6. Build docs with npm run build:doc"); + logger.log(msg); + console.log(data, this); const name = require('./package.json').name; // Rename to be compatible with styleguide configuration