Now we have our task runner set up, it's a great time to restructure our project to give us a more manageable codebase. We're going to separate out our controllers, directives, filters, and services into separate files to keep things tidy.
Let's start by working out a new directory structure as demonstrated here:
Here, we've moved everything out of our
js directory into its own
app directory in the root. When we go to production, we're not going to want our source files to be deployed, so it's a good idea to break it out of the assets directory where our compressed files will live.
app directory has been structured ...