8

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?

pedrommuller
  • 15,741
  • 10
  • 76
  • 126

1 Answers1

10

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.

LifeOnLars
  • 398
  • 3
  • 15
  • 2
    Another alternative is https://github.com/DaftMonk/generator-angular-fullstack which is essentially using a MEAN stack and follows the Google app structure guidelines – LifeOnLars Oct 14 '14 at 23:08