IonicBrazil / ionic-garden

This project is for every ionite who wants to play with Ionic's Source
Other
14 stars 6 forks source link

Create commands to create services, directives, and other stuffs #25

Open felquis opened 9 years ago

felquis commented 9 years ago

Related to #22 but should be made after #22

The ideia is, everything about the structure should be made automatic created by commands (just like yo generators), but we'll use gulp and plain js, maybe yo locally installed :)

"Automatic Created" means, "With a solid structure and conventions", when creating files, it shouldn't be a "creative" task, it MUST have a solid structure, and solid conventions based in our Style Guide and inspired in Angular-Seed

Ideias of commands:

gulp make:directive follow-button

It creates the files of directive follow-button

Create a route

gulp make:route index

Creates

Could chain commands

gulp make:route:controller routeName

It creates

And could exist alias

gulp make:state index

Create all the files needs for a state, route.js, controller.js, template.html

Chaining is interesting, because who runs the command knows exactly what is being created.

Note

Please, shared with us how you organize your files, Ionic Garden should be a good place to Ionic Projects live. Share your ideias for commands, cases and thing that went wrong.