Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

refac(make-block): corrected length of the decorative line #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions make-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ function initMakeBlock(candidateBlockName) {
.then(() => createFiles(blockPath, blockName))
.then(() => getFiles(blockPath))
.then(files => {
const line = '-'.repeat(48 + blockName.length);
const msg = `The block has just been created in 'blocks/${blockName}'`;
const line = '-'.repeat(msg.length);
console.log(line);
console.log(`The block has just been created in 'app/blocks/${blockName}'`);
console.log(msg);
console.log(line);

// Displays a list of files created
Expand Down