Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
change the logger output after complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Leite committed Sep 14, 2017
1 parent 0c33f23 commit 2430758
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ module.exports = {
}
},
"complete": function(data, {logger}) {
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);
// Rename to be compatible with styleguide configuration
fs.renameSync('src/Component/Component.vue', 'src/Component/' + data.name + '.vue');
fs.renameSync('src/Component/Component.md', 'src/Component/' + data.name + '.md');
fs.renameSync('src/Component', 'src/' + data.name);

logger.log("To get started:");
if (data.inPlace) logger.log("cd " + 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");
}
};

0 comments on commit 2430758

Please sign in to comment.