Skip to content

kamoteshake/KS-React-Component-Bakery

Repository files navigation

logo

🍞 KS React Component Bakery

Welcome to the KS React Component Bakery — the only place in VS Code where your React components rise to perfection. Why knead boilerplate by hand when the bakery can mix, proof, and bake everything for you?

Pick your ingredients (TypeScript? React 18? A sprinkle of test files?), choose where you want your pastry component to live, and voilà — a freshly baked component folder appears, warm and editor-ready.

Consistent. Delicious. And absolutely mess-free.

🥐 Usage

There are two ways to add a new React component.

Button

button flow

Context Menu

context menu flow

🧁 Features

Real-Time Validation

There are a couple of validation happening when typing the component name.

No Spaces

no space

No Special Characters

no special characters

PascalCase

pascal case

No Duplicate Components

no duplicates

🥣 Ingredient Options

🟦 Use TypeScript

Generate your component using .tsx / .ts instead of .jsx / .js.
Perfect for kitchens that love type safety.

⚛️ Target React 18+

Adds React 18-compatible patterns to the baked component.

🧪 Generate Test File

Includes a ready-to-use test file: ComponentName.spec.tsx

🧱 Named Export

Exports your component like:

export { ComponentName } from './ComponentName'

🍱 Export All (requires Named Export)

Re-exports everything from the component module:

export * from './ComponentName'

Useful for barrel files and cleaner imports.

🍪 Known Issues

Since there isn't an official API to get the selected file's URI, I had to utilize the copyFilePath command. This copies the file path to the clipboard. I have added some processes which retains your last clipboard entry but it will lose its rich state in some OS.

🎉 Release Notes

1.2.0

Allow camelCase as component name ONLY if it starts with use, indicating it is a hook.

1.1.0

Added Export All option

1.0.0

Initial release of KS React Component Bakery

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors