generator-ionic icon indicating copy to clipboard operation
generator-ionic copied to clipboard

Convert ionic seed app to generator-angular standards

Open douglascorrea opened this issue 10 years ago • 10 comments

When use:

yo angular:[command]

it creates controllers, services, views and so on, in generator-angular default folders that is different from Ionic seed standard.

Maybe if generator-ionic uses an seed app with generator-angular defaults could be better to continue using yo angular:[commands]

douglascorrea avatar Mar 21 '14 13:03 douglascorrea

I was considering pulling in generator-angular as a sub-generator, but hadn't made a decision yet. I'm leaning more towards it being a good idea, in which case the seed app will indeed have to be restructured.

Will see if I can knock this out tonight.

diegonetto avatar Mar 21 '14 14:03 diegonetto

Hey any progress on this?

mhartington avatar Apr 01 '14 18:04 mhartington

None so far since I ended up focusing my efforts on other areas of the generator. However, of all the open enhancement requests, this is priority number one on my list.

diegonetto avatar Apr 01 '14 18:04 diegonetto

Today I decided to just give generator-angular inside the Ionic dir a go.

I can use the generators. Avoid angular:app (will generate a complete angular app) and angular:route (will generate, controller, view and route while Ionic uses AngularUI for routing).

I can confirm that angular:controller and angular:view works while using grunt serve. Apart from some different dir usage, it's pretty functional.

robkorv avatar Apr 01 '14 19:04 robkorv

Good to know that a lot of the standard generators work: my team was asking for this today - it would be great if you full integrated yo angular (or a version that handles ui-router etc.) into the generator.

Kudos on this project - we have become super-productive and have been able to re-scaffold an app in days compared to months for the previous application.

deedubbleyoo avatar Apr 01 '14 19:04 deedubbleyoo

Any progress on getting a ui-router generator working?

This generator looks promising! :smile:

JaKXz avatar May 05 '14 22:05 JaKXz

Looking to start pulling in generator-angular towards the end of this week.

diegonetto avatar May 05 '14 23:05 diegonetto

Was about to post a design discussion topic about directory structure, since for all of my contract projects I've been using a component-centric directory structure instead of generator-angular's controllers/, directives/, services/, etc structure. I've found that a component-driven architecture makes working on large projects much more manageable.

This proposal was brought to my attention today by @jcumminsr1, so I'm holding off on pulling in the Angular Generator until we see how it shakes out.

Ultimately, I'd like to support generator-angular's adoption of the fractal hierarchy described in that proposal, since its almost identical to what I, and many others, have been using for large industry projects.

diegonetto avatar May 14 '14 17:05 diegonetto

We're trialing Ionic and Angular and wanted to use yo angular:<type> <name> to create controllers, directives and services. It seems to work fine with a project created with generator-ionic, except for the way generator-angular detects the angular module name. It detects the module name, but converts it to lowercase and appends "App" to the end. Manually editing this resolves the problem for the time being but it would be good for this to work out of the box.

As for the discussion on fractal hierarchy, we aren't at the stage yet where the application is so large it needs all this separation.

alexkb avatar Dec 08 '14 06:12 alexkb

Any further progress with this?

+1

LunarDevelopment avatar Jun 12 '15 08:06 LunarDevelopment