5 ms·
Would be useful if you could set fixed component path and boilerplate component and then only run 'generact ComponentName' and with a sub folder path 'generact
by l5870uoo9y 9y ago
Would be useful if you could set fixed component path and boilerplate component and then only run 'generact ComponentName' and with a sub folder path 'generact Subfolder/ComponentName'. The sell here is really how easy it is to tailor the boilerplate component to your project.
- gracehaz 9y agoThis can be easily done by creating a npm script "generact path/to/boilerplate/component.js" and just running `npm run generact`. 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.
- qrohlf 9y agoI actually built this a few weeks ago: https://github.com/qrohlf/bones https://github.com/qrohlf/bones 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.
- gitgud 9y agoBones is a great name for a project which uses 'skeleton' templates. Love it!