Skip to content

Commit

Permalink
Replace console.log with this.log in component generator (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
potterme authored and illepic committed Dec 12, 2018
1 parent c1d7cb8 commit 6138e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/new-component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const prompts = [

module.exports = class extends Generator {
prompting() {
console.log(
this.log(
`Hi! This will help you build a component folder with assets.
Templates for this are in: ${relative(process.cwd(), __dirname)}`
);
Expand Down Expand Up @@ -143,7 +143,7 @@ module.exports = class extends Generator {
});
});

console.log(
this.log(
`Your new component ${name} is being created. It should be available in your bundle!`
);
}
Expand Down

0 comments on commit 6138e55

Please sign in to comment.