Open credondocr opened 8 years ago
@credondocr yep, that will be a great feature to have, e.g. node run new:component MyComponent
creates /coponents/MyComponent
; node run new:route /tasks/:id TaskDetails
creates /pages/tasks/TaskDetails.js
or something like that.
@koistya another way to implement that can be:
Yep, I need to update generator-react-static
with the latest version of RSB from master
and these scaffolding tools.
@credondocr just scaffolded the bare minimum Yeoman generator here:
https://github.com/kriasoft/react-static-boilerplate/tree/generator-react-static
Next step is to add sub-generators for components and pages.
I think is important makes life easier, a generate component tool can be a awesome feature.
For example:
$ react-static-boilerplate component MyComponent
$ react-static-boilerplate page MyPage