You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
from other thread, the bower_components folder has moved outside the app folder. Unfortunately this break the gulp 'bower' task: by the way the task is not called correctly by the principal generator, it search for a gulp task called 'wiredep' instead of 'bower' ( as I understood..).
In any case is not clear how to have the app properly scaffolded.
In comparing the grunt build to the gulp, I've come up with a working solution to get the app serving with gulp serve without having to move bower_components into the app.
Note: I've not yet tested the test, dist, prod tasks with the below changes.
Update 1: Change the start:server task to the following
gulp.task('start:server',function(){$.connect.server({root: [yeoman.app,'.tmp'],livereload: true,// Change this to '0.0.0.0' to access the server from outside.port: 9000,middleware: function(connect){return[connect().use('/bower_components',connect.static('./bower_components'))]}});});
When running dist it did not copy the fonts from Bootstrap one of my choosen options when generaton ran, so I did a small hack which sure needs to be adapted to other needs
Copy bootstrap fonts to "dist" folder
gulp.task('copy:fonts', function () {
return gulp.src('bower_components/bootstrap/fonts/**/*')
.pipe(gulp.dest(yeoman.dist + '/fonts'));
});
Other thing, index.html in dist gets a number prefixed to the name something like index-b9577afaf1.html
I was unable to find where it happens, need to read more but but for now I can live with that
Activity
joelcolucci commentedon Jul 22, 2016
@FelicePollano I ran into the same problem.
In comparing the grunt build to the gulp, I've come up with a working solution to get the app serving with
gulp servewithout having to move bower_components into the app.Note: I've not yet tested the test, dist, prod tasks with the below changes.
Update 1: Change the start:server task to the following
Update 2: Change the server task to the following
Update 3: Change the bower task to the following
ramonmata commentedon Jul 26, 2016
Solution works for me 👍
When running dist it did not copy the fonts from Bootstrap one of my choosen options when generaton ran, so I did a small hack which sure needs to be adapted to other needs
Copy bootstrap fonts to "dist" folder
Other thing, index.html in dist gets a number prefixed to the name something like index-b9577afaf1.html
I was unable to find where it happens, need to read more but but for now I can live with that
:)
regards
antonioj-mattos commentedon Jul 29, 2016
@ramonmata
I solved the index.html revision issue with the following modifications