My AngularJS app is structured like this:
myproj
|-- app
| |-- index
| | |-- index.html
| | |-- index.js
| |-- page1
| | |-- page1.html
| | |-- page2.js
| |-- page2
|-- common
| |-- resources
| | |-- page1resources.js
| | |-- page2resources.js
index.html is my main page and contains ui-router which controls how pages are displayed. To get this to work I have to declare all of the dependencies in index.html, so I have a list of 20 .js files and a handful of style sheets.
It's a pain to manage these dependencies, and it takes me an extra two minutes or so each time I create a new page.
From what I've read it seems that Grunt would be able to simplify this task. However, it would be too time consuming for me at the moment to learn all about Grunt and the various tasks I can use for this.
How do you manage imports and dependencies in an AngularJS app with Grunt?