Skip to content

Commit daf71f2

Browse files
chore(bower): move bower_components under the app folder
This will help web servers who are not happy to serve up files outside the "root" folder of the application. Closes #183 Closes #182
1 parent d130400 commit daf71f2

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "app/bower_components"
3+
}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ Behind the scenes this will also call `bower install`. You should find that you
4949
folders in your project.
5050

5151
* `node_modules` - contains the npm packages for the tools we need
52-
* `bower_components` - contains the angular framework files
52+
* `app/bower_components` - contains the angular framework files
53+
54+
*Note that the `bower_components` folder would normally be installed in the root folder but
55+
angular-seed changes this location through the `.bowerrc` file. Putting it in the app folder makes
56+
it easier to serve the files by a webserver.*
5357

5458
### Run the Application
5559

app/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
<!-- In production use:
3232
<script src="//ajax.googleapis.com/ajax/libs/angularjs/x.x.x/angular.min.js"></script>
3333
-->
34-
<script src="../bower_components/angular/angular.js"></script>
35-
<script src="../bower_components/angular-route/angular-route.js"></script>
34+
<script src="bower_components/angular/angular.js"></script>
35+
<script src="bower_components/angular-route/angular-route.js"></script>
3636
<script src="js/app.js"></script>
3737
<script src="js/services.js"></script>
3838
<script src="js/controllers.js"></script>

test/karma.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module.exports = function(config){
44
basePath : '../',
55

66
files : [
7-
'bower_components/angular/angular.js',
8-
'bower_components/angular-route/angular-route.js',
9-
'bower_components/angular-mocks/angular-mocks.js',
7+
'app/bower_components/angular/angular.js',
8+
'app/bower_components/angular-route/angular-route.js',
9+
'app/bower_components/angular-mocks/angular-mocks.js',
1010
'app/js/**/*.js',
1111
'test/unit/**/*.js'
1212
],

0 commit comments

Comments
 (0)