doronsever / generator-gulp-angular-subtask

A helper generator for generator-gulp-angular to create sub tasks
49 stars 19 forks source link

App structure has changed #11

Open aendra-rininsland opened 9 years ago

aendra-rininsland commented 9 years ago

Replace "framework" with "directory structure"

generator-gulp-angular now uses the following directory structure:

src
├── app
│   ├── components
│   │   └── (directives and stuff)
│   └── main (controllers and stuff)
└── assets
    └── images

As such, yo gulp-angular-subtask:directive directiveName should populate src/app/components with a new directory (instead of components' parent directory). Further, using the navbar example from generator-gulp-angular, it should then be put in a flat folder structure (as opposed to creating directiveName/directives/directiveName-directive.js and directiveName/spec/directives/directiveName-directive.spec.js).

Will happily submit a PR if this change in behaviour is desirable.

aendra-rininsland commented 9 years ago

Update: Just noticed the --component flag. Any way it'd be possible to add that to the setup method to automatically put directives there if preferred?

doronsever commented 8 years ago

Hi Sorry for the late response.

From what i understand, you would like a flag that say that all new modules will be put under the 'component' directory?

aendra-rininsland commented 8 years ago

@doronsever Yep, you got it. It's really annoying to forget that flag and then have to redo everything. Not sure how best to do that given this generator is only invoked after the main generator scaffolds everything, but it would be nice to have. Feel free to close this if you think that isn't possible.