hypothesis/h — pull request #1540 by tilgovi (2014-09-27 23:25:20+00:00)
Title: Frontend module reorg

This commit message describes most of this:

commit 53927856c2811c26bfd239a5da6e77d78c53aa57
Author: Randall Leeds
Date: Sat Sep 27 16:11:49 2014 -0700

Start to simplify our angular namespaces

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.

- Ensure that all controllers are named in the ``FooController`` style.

create mode 100644 h/static/scripts/auth/account-controller.coffee
delete mode 100644 h/static/scripts/auth/account.coffee
create mode 100644 h/static/scripts/auth/auth-controller.coffee
delete mode 100644 h/static/scripts/auth/auth.coffee
create mode 100644 h/static/scripts/helpers/helpers.coffee