invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.11k stars 198 forks source link

request: Add kebab case #742

Closed feinstein closed 1 month ago

feinstein commented 1 month ago

Is there an existing feature request for this?

I need to set firebase project names in kebab case, but trying to use {{name.kebabCase()}} doesn't work.

spydon commented 1 month ago

Can you explain more what it is that you're trying to do?

feinstein commented 1 month ago

Moustache allows us to use some case modifyers. snakeCase() works, but kebabCase() doesn't.

I have project titles like "My Project" and I need to generate a package id like "my_project" and a firebase project id like "my-project". It's a lot easier if I can use only 1 variable for these and just apply different cases using {{projectName.snakeCase()}}.

spydon commented 1 month ago

This is an issue for the moustache_template package, and not for Melos.