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

Command to create states in the app #22

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

Command to create states in the app #22

felquis opened this issue Jun 24, 2015 · 3 comments

Comments

@felquis
Copy link
Member

felquis commented Jun 24, 2015

So guys, I think it is good to use gulp to do this, not yeoman as someone recommended. Ionic CLI integrate some tasks with gulp, I think using gulp tasks is a good way to stay close of Ionic CLI, and it may resolves to some good integrations with Ionic CLI

For example, today if you run ionic serve it trigger gulp watch.

I imagine something like:

gulp create-state stateName

It should create these files

www/states/stateName/
www/states/stateName/route.js
www/states/stateName/controller.js
www/states/stateName/template.html

Create a state with no Controller

gulp create-state stateName --ignore-controller

output

www/states/stateName/
www/states/stateName/route.js
www/states/stateName/controller.js
www/states/stateName/template.html

Short version

gulp cs stateName -c

It should use the conventions listed in this Style Guide

Note

Please, send suggestions of commands name, it should be intuitive and no obstructive.

@giorgiofellipe
Copy link
Contributor

It would be great!

But, as we are trying to follow conventions what do you think about using these naming conventions? https://github.com/johnpapa/angular-styleguide#naming

@felquis
Copy link
Member Author

felquis commented Jun 24, 2015

You're right! :)

This is mentioned in the README Style Guide session.

Ionic Garden will use AngularJS .jscsrc file + Johnpapa's Style Guide.

@felquis
Copy link
Member Author

felquis commented Jun 24, 2015

@giorgiofellipe BTW, check out the label style-guide.

Anything you see that isn't following the Style Guide, please send a pull request or create an issue explaining what is wrong and what is good.

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

2 participants