Added wiredep to automatically load bower deps in index.html
diff --git a/applications/subscriberPortal/.bowerrc b/applications/subscriberPortal/.bowerrc
index bfd1e92..c256820 100644
--- a/applications/subscriberPortal/.bowerrc
+++ b/applications/subscriberPortal/.bowerrc
@@ -1,3 +1,6 @@
{
- "directory": "src/bower_components/"
+ "directory": "src/bower_components/",
+ "scripts": {
+ "postinstall": "./node_modules/wiredep/wiredep-cli.js --dependencies --src ./src/index.html"
+ }
}
diff --git a/applications/subscriberPortal/bower.json b/applications/subscriberPortal/bower.json
index 32241cd..4283a27 100644
--- a/applications/subscriberPortal/bower.json
+++ b/applications/subscriberPortal/bower.json
@@ -21,6 +21,7 @@
"jquery": "~2.2.0",
"angular-resource": "~1.4.9",
"angular-route": "~1.4.9",
- "angular-cookies": "~1.4.9"
+ "angular-cookies": "~1.4.9",
+ "bootstrap-css": "~3.3.6"
}
}
diff --git a/applications/subscriberPortal/package.json b/applications/subscriberPortal/package.json
index 94254b8..20c35e8 100644
--- a/applications/subscriberPortal/package.json
+++ b/applications/subscriberPortal/package.json
@@ -5,13 +5,17 @@
"main": "index.js",
"scripts": {
"test": "karma start",
- "prestart": "npm install && bower install",
+ "prestart": "npm install && bower install && wiredep --dependencies --src src/index.html",
"start": "browser-sync start --config bs-config.js"
},
"author": "Matteo Scandolo",
"license": "ISC",
"devDependencies": {
"browser-sync": "^2.11.1",
- "http-proxy": "^1.12.1"
+ "http-proxy": "^1.12.1",
+ "wiredep": "^3.0.0"
+ },
+ "dependencies": {
+
}
}
diff --git a/applications/subscriberPortal/src/index.html b/applications/subscriberPortal/src/index.html
index b00e425..0443f88 100644
--- a/applications/subscriberPortal/src/index.html
+++ b/applications/subscriberPortal/src/index.html
@@ -22,12 +22,19 @@
<title>CORD Subscriber Portal</title>
- <script src="bower_components/angular/angular.js"></script>
- <script src="bower_components/angular-route/angular-route.js"></script>
- <script src="bower_components/angular-animate/angular-animate.js"></script>
- <script src="bower_components/angular-resource/angular-resource.js"></script>
- <script src="bower_components/angular-cookies/angular-cookies.js"></script>
- <script src="bower_components/jquery/dist/jquery.js"></script>
+ <!-- bower:css -->
+ <link rel="stylesheet" href="bower_components/bootstrap-css/css/bootstrap.min.css" />
+ <!-- endbower -->
+
+ <!-- bower:js -->
+ <script src='bower_components/angular/angular.js'></script>
+ <script src='bower_components/angular-animate/angular-animate.js'></script>
+ <script src='bower_components/jquery/dist/jquery.js'></script>
+ <script src='bower_components/angular-resource/angular-resource.js'></script>
+ <script src='bower_components/angular-route/angular-route.js'></script>
+ <script src='bower_components/angular-cookies/angular-cookies.js'></script>
+ <script src='bower_components/bootstrap-css/js/bootstrap.min.js'></script>
+ <!-- endbower -->
<script src="cord.js"></script>
<script src="app/fw/services/rest.js"></script>