kriasoft / react-firebase-starter

Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
https://firebase.reactstarter.com
MIT License
4.51k stars 753 forks source link

Commands for generate #104

Open credondocr opened 8 years ago

credondocr commented 8 years ago

I think is important makes life easier, a generate component tool can be a awesome feature.

For example:

$ react-static-boilerplate component MyComponent

.
├── /components/                # Shared or generic UI components
│   └── /MyComponent   #New Component
│       └── /Files              # etc.

$ react-static-boilerplate page MyPage

koistya commented 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.

credondocr commented 8 years ago

@koistya another way to implement that can be:

koistya commented 8 years ago

Yep, I need to update generator-react-static with the latest version of RSB from master and these scaffolding tools.

koistya commented 8 years ago

@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.