Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yeoman split angular app by modules

I'd like to know if possible to separate a yeoman app by modules (like MEANJS generator) basically with the following structure:

  • Module 1
    • views
    • controllers
    • services
    • css
    • config
    • module1.js
  • Module 2
    • views
    • controllers
    • services
    • css
    • config
    • module1.js
  • Module 3

    • etc
    • etc
    • same structure
  • App.js

For me is more convenient to do it this way and the official angular generator doesn't support that structure

is there any way to accomplish that with an existing yeoman generator?

like image 446
pedrommuller Avatar asked May 27 '14 00:05

pedrommuller


1 Answers

Maybe this generator will do the trick? https://www.npmjs.org/package/generator-cg-angular

It follows the Angular Best Practice Guidelines for Project Structure and allows you to create submodules with their own directories.

like image 99
LifeOnLars Avatar answered Oct 20 '22 14:10

LifeOnLars