Skip to content

Commit

Permalink
Add feedback that the files were created
Browse files Browse the repository at this point in the history
  • Loading branch information
benkates committed Jul 24, 2024
1 parent 9191732 commit 236c034
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/createComponent/createComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ async function main() {
// create Component.stories.svelte
const storyFilePath = path.join(dir, `${componentName}.stories.svelte`);
fs.writeFileSync(storyFilePath, createStory(componentName), "utf8");

// Confirmation text
console.log(`Boilerplate files created in ${dir}`);
} else {
console.error("Directory already exists");
}
Expand Down

0 comments on commit 236c034

Please sign in to comment.