Skip to content

Instantly share code, notes, and snippets.

@Gopikrishna19
Last active November 5, 2015 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gopikrishna19/f2f506b04056b7c178cc to your computer and use it in GitHub Desktop.
Save Gopikrishna19/f2f506b04056b7c178cc to your computer and use it in GitHub Desktop.

Proposed Directory Structure

Following you same directory structure, Each package is a root level route with [module].[package] as module name on root.[module].[package] route Sub level packages be named with dashes

Module/                 [root.Module]
  module.js             [module]
  common/
    directives/         [module.directives]
    services/           [module.services]
  packages/
    Home/               [root.Module.Home]
      home.js           [module.home]
      About/            [root.Module.Home.About]
        directive1/     [module.home]
        directive2/   
        about.js        [module.home]
      Posts/            [root.Module.Home.Posts]
        directive1/
        posts.js        [module.home]
      Posts-Detail/     [root.Module.Home.Posts.Detail]
        directive1/
        posts-detail.js [module.home]
    Profile/...         [module.profile]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment