• Randall Leeds's avatar
    Start to simplify our angular namespaces · 8f64e090
    Randall Leeds authored
    Move toward cleaning up our angular namespaces and organization. By
    flattening our namespaces and changing our file naming we're able to
    reduce the boilerplate needed for angular module and asset bundle
    definitions.
    
    - Kill all the ``h.*`` angular submodules except for ``h.auth``,
      ``h.helpers`` and ``h.identity``. This vastly reduces the amount
      of dependency repetition throughout our angular files as all
      the dependencies of the entire main h module can be declared in
      app.coffee and all the other files simply add their exports to
      the main module.
    
    - Add a helpers/helpers.coffee module definition file so that the
      rest of the helpers can use the 1-arity ``angular.module`` getter
      to attach themselves. These files can all be included with a glob
      in the asset bundle definition.
    
    - Use the glob syntax to include all the directives in the asset
      bundle definition.
    
    - Rename the controller modules in the auth bundle with a '-controller'
      suffix. These can be similarly globbed in the bundle definition.
    
    - Make auth/auth.coffee a module definition file so that the
      rest of the component can use the 1-arity ``angular.module`` getter
      to attach themselves. These files can all be included with globs
      in the asset bundle definition.
    
    - Ensure that all controllers are named in the ``FooController`` style.
    8f64e090
Name
Last commit
Last update
..
annotation.coffee Loading commit data...
deep-count.coffee Loading commit data...
markdown.coffee Loading commit data...
simple-search.coffee Loading commit data...
status-button.coffee Loading commit data...
thread-filter.coffee Loading commit data...
thread.coffee Loading commit data...