Kebabier is a minimal, zero dependency CLI tool that helps refactor JavaScript/TypeScript projects to use kebab-case naming convention for files & folders.
Well, because macOS is a case-insensitive file system by default.
So when renaming myComponent.js
into MyComponent.js
, Git won't pick up the change in the file name.
Locally, everything may work just fine. but, other systems, for example, your GitHub Actions CI, will break complaining MyComponent.js
doesn't exist 😕.
People really encounter this issue! look
Other than that, there are many advantages of using kebab-case naming convention.
npx kebabier <directory name>
Kebabier will kebab-case all ts(x)/js(x) files, directories, and sub-directories 🚀.
It will also update all import
(including dynamic) & require
to use the correct path.
When inside a git project, it will also re-index the files to make sure git will pick up the changes.
npx kebabier src
Will convert all files and directories inside src
directory.