angular-app/angular-app — pull request #33 by petebacondarwin (2012-09-27 22:20:22+00:00)
Title: Folder refactor

Major reorganisation of the folder structure and a few little tweaks:
- Added favicon.ico - and in the process added an assets folder, a grunt task to copy the assets to the dist folder and an Express middleware to serve up the favicon.
- Moved the base bootstrap library files into the lib folder. stylesheet.less now imports from this lib folder but we keep our own copy of the variables.less file for customization. This will allow easier upgrade of bootstrap in the future.
- The server now serves all static content from a specific url (/static), which allows us to send 404 Not Found errors, instead of the index.html,which can lead to infinite recursion!
- Added clean and copy task to grunt.js - clean just deletes the dist folder and copy is used to move assets into dist
- Moved folders around to give the following structure:
- removal of partial folders, moving html templates up a level - this makes the template ids much cleaner.
- html files now live with js files - this demonstrates how the js and html files go hand-in-hand and are equally important - CONTENTIOUS CLAIM!
- renamed modules folder -> app folder - this follows from my view of not naming things with names are are obvious (in angular _everything_ is in a module!)
- moved app module files up a level - it didn't feel right to have app/app/app.js.
- added another level below admin for projects and users in which to keep their files tidily (needed to update the route factory call for this).
- created a common folder for stuff that is common across the application and doesn't fit in a folder under the app folder.
- moved the services folder under the common folder
- moved the crudButtons.js -> common/directives/crudButtons.js - since this is a common directive across the app. (Arguably this could live in the app/admin folder though)
- rearranged the test folder to match the src folder.