Serving app
diff --git a/xos/core/xoslib/xos-builder/gulp/server.js b/xos/core/xoslib/xos-builder/gulp/server.js
index 134fc62..443909b 100644
--- a/xos/core/xoslib/xos-builder/gulp/server.js
+++ b/xos/core/xoslib/xos-builder/gulp/server.js
@@ -6,6 +6,7 @@
var runSequence = require('run-sequence');
var angularFilesort = require('gulp-angular-filesort');
var babel = require('gulp-babel');
+var wiredep = require('wiredep').stream;
module.exports = function(options){
gulp.task('browser', function() {
@@ -33,11 +34,18 @@
}
)
)
- .pipe(gulp.dest('./src'));
+ .pipe(gulp.dest(options.src));
});
+ gulp.task('bower', function () {
+ gulp.src(options.src + 'index.html')
+ .pipe(wiredep())
+ .pipe(gulp.dest(options.src));
+});
+
gulp.task('serve', function() {
runSequence(
+ 'bower',
'inject',
'browser'
);
diff --git a/xos/core/xoslib/xos-builder/src/index.html b/xos/core/xoslib/xos-builder/src/index.html
index 800ee7e..711270a 100644
--- a/xos/core/xoslib/xos-builder/src/index.html
+++ b/xos/core/xoslib/xos-builder/src/index.html
@@ -1,7 +1,17 @@
+<!-- bower:css -->
+<!-- endbower -->
+
<div ng-app="xos.contentProviderApp">
<ng-view></ng-view>
</div>
+<!-- bower:js -->
+<script src="vendor/angular/angular.js"></script>
+<script src="vendor/angular-route/angular-route.js"></script>
+<script src="vendor/angular-cookies/angular-cookies.js"></script>
+<script src="vendor/angular-resource/angular-resource.js"></script>
+<script src="vendor/ng-lodash/build/ng-lodash.js"></script>
+<!-- endbower -->
<!-- inject:js -->
<script src="/.tmp/xosContentProvider.js"></script>
<script src="/.tmp/templates.js"></script>