Open aendra-rininsland opened 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?
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?
@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.
generator-gulp-angular
now uses the following directory structure: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 fromgenerator-gulp-angular
, it should then be put in a flat folder structure (as opposed to creatingdirectiveName/directives/directiveName-directive.js
anddirectiveName/spec/directives/directiveName-directive.spec.js
).Will happily submit a PR if this change in behaviour is desirable.