Skip to content

Command to create states in the app #22

@felquis

Description

@felquis

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions