Permalink
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
  • Loading branch information...
1 parent d130400 commit daf71f27ba1ae0801f0f3235eaa87598f0912a59 @petebacondarwin petebacondarwin committed May 2, 2014
Showing with 13 additions and 6 deletions.
  1. +3 −0 .bowerrc
  2. +5 −1 README.md
  3. +2 −2 app/index.html
  4. +3 −3 test/karma.conf.js
View
@@ -0,0 +1,3 @@
+{
+ "directory": "app/bower_components"
+}
View
@@ -49,7 +49,11 @@ Behind the scenes this will also call `bower install`. You should find that you
folders in your project.
* `node_modules` - contains the npm packages for the tools we need
-* `bower_components` - contains the angular framework files
+* `app/bower_components` - contains the angular framework files
+
+*Note that the `bower_components` folder would normally be installed in the root folder but
+angular-seed changes this location through the `.bowerrc` file. Putting it in the app folder makes
+it easier to serve the files by a webserver.*
### Run the Application
View
@@ -31,8 +31,8 @@
<!-- In production use:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/x.x.x/angular.min.js"></script>
-->
- <script src="../bower_components/angular/angular.js"></script>
- <script src="../bower_components/angular-route/angular-route.js"></script>
+ <script src="bower_components/angular/angular.js"></script>
+ <script src="bower_components/angular-route/angular-route.js"></script>
<script src="js/app.js"></script>
<script src="js/services.js"></script>
<script src="js/controllers.js"></script>
View
@@ -4,9 +4,9 @@ module.exports = function(config){
basePath : '../',
files : [
- 'bower_components/angular/angular.js',
- 'bower_components/angular-route/angular-route.js',
- 'bower_components/angular-mocks/angular-mocks.js',
+ 'app/bower_components/angular/angular.js',
+ 'app/bower_components/angular-route/angular-route.js',
+ 'app/bower_components/angular-mocks/angular-mocks.js',
'app/js/**/*.js',
'test/unit/**/*.js'
],

0 comments on commit daf71f2

Please sign in to comment.