From 386511e1c3ae9f7bc4dae8d4a7a27615bf3deac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Balmaceda=20Rescia?= Date: Mon, 29 Aug 2016 08:42:27 -0600 Subject: [PATCH 1/4] Lookup root html files To look up Index.html, and another html files --- templates/common/root/_gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/common/root/_gulpfile.js b/templates/common/root/_gulpfile.js index 8e6783ee9..bde5bfeab 100644 --- a/templates/common/root/_gulpfile.js +++ b/templates/common/root/_gulpfile.js @@ -33,7 +33,7 @@ var paths = { karma: 'karma.conf.js', views: { main: yeoman.app + '/index.html', - files: [yeoman.app + '/views/**/*.html'] + files: [yeoman.app + '/views/**/*.html', yeoman.app + '/views/*.html'] } }; From 6e2f4ee946ab46fcf3882f538aebab1548f73439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Balmaceda=20Rescia?= Date: Mon, 29 Aug 2016 08:46:39 -0600 Subject: [PATCH 2/4] Middleware to connect bower components acces the server to bower components outside root folder --- templates/common/root/_gulpfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/common/root/_gulpfile.js b/templates/common/root/_gulpfile.js index bde5bfeab..1aa349edf 100644 --- a/templates/common/root/_gulpfile.js +++ b/templates/common/root/_gulpfile.js @@ -89,7 +89,10 @@ gulp.task('start:server', function() { root: [yeoman.app, '.tmp'], livereload: true, // Change this to '0.0.0.0' to access the server from outside. - port: 9000 + port: 9000, + middleware: function(connect) { + return [connect().use('/bower_components', connect.static('bower_components'))]; + } }); }); @@ -97,7 +100,10 @@ gulp.task('start:server:test', function() { $.connect.server({ root: ['test', yeoman.app, '.tmp'], livereload: true, - port: 9001 + port: 9001, + middleware: function(connect) { + return [connect().use('/bower_components', connect.static('bower_components'))]; + } }); }); From 01cf45653872f2f20aa0b3bffc6a6e647dcee6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Balmaceda=20Rescia?= Date: Mon, 29 Aug 2016 08:49:47 -0600 Subject: [PATCH 3/4] Default directory this is the default directory --- templates/common/root/_gulpfile.js | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/common/root/_gulpfile.js b/templates/common/root/_gulpfile.js index 1aa349edf..43a22dd16 100644 --- a/templates/common/root/_gulpfile.js +++ b/templates/common/root/_gulpfile.js @@ -159,7 +159,6 @@ gulp.task('test', ['start:server:test'], function () { gulp.task('bower', function () { return gulp.src(paths.views.main) .pipe(wiredep({ - directory: yeoman.app + '/bower_components', ignorePath: '..' })) .pipe(gulp.dest(yeoman.app + '/views')); From 8dc233fb5c4531df81259b6cbc3659a7b2f10be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Balmaceda=20Rescia?= Date: Mon, 29 Aug 2016 08:50:35 -0600 Subject: [PATCH 4/4] Change dest --- templates/common/root/_gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/common/root/_gulpfile.js b/templates/common/root/_gulpfile.js index 43a22dd16..93c149a0e 100644 --- a/templates/common/root/_gulpfile.js +++ b/templates/common/root/_gulpfile.js @@ -161,7 +161,7 @@ gulp.task('bower', function () { .pipe(wiredep({ ignorePath: '..' })) - .pipe(gulp.dest(yeoman.app + '/views')); + .pipe(gulp.dest(yeoman.app)); }); ///////////