- app
- scripts
- controllers
- aFeatureController
- bFeatureController
- directives
- aFeatureDirective
- bFeatureDirective
- views
- aFeatureView
- bFeatureView
虽然这种传统的MVC结构运行良好,但我发现它比特征中心结构更难导航,其中与应用程序相同部分相关的所有文件都位于同一屋檐下.换句话说,我想改为使用以下结构:
- app
- aFeature
- aFeatureController
- aFeatureDirective
- aFeatureView
- bFeature
- bFeatureController
- bFeatureDirective
- bFeatureView
是否可以配置gruntfile和Yeoman以便grunt保持任务并且Yeoman脚手架生成器仍能正常运行?