38 points · by gracehaz · 8y ago · 15 comments
These generators are probably best suited to people with specific repetitive workflow's, like writing React Components everyday.
You define boilerplate components in `~/yourproject/.bones` and it does what you just described. I've been using it in several projects at work, it's been a nice standardization/productivity bump for my team.
The difference though is that you'll still be prompted for component path and name, but I'd gladly accept a PR adding options to CLI (maybe --path, --name?) to skip that part.
- you can't automatically create files (AFAIK);
- it doesn't help your team mates, only works for you and with that specific editor;
- if you start working on a different project with different standard, you'll need to update the snippets or create new ones.
Turned out that I was always copying and pasting, so I decided to create this tool.
It copies files, renames them and replaces their names in the contents.