Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
felquis opened this issue Jun 24, 2015 · 0 comments
Open

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

felquis opened this issue Jun 24, 2015 · 0 comments

Comments

@felquis
Copy link
Member

felquis commented Jun 24, 2015

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

  • route.js
  • template.html

Could chain commands

gulp make:route:controller routeName

It creates

  • route.js
  • controller.js
  • template.js

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant