HomeНаука и техникаRelated VideosMore From: Macgyver

How to Setup a Fully Automated Gulp Build Workflow

37 ratings | 3695 views
In this tutorial you will learn how to implement a fully automated gulp workflow environment. Once configured this setup will allow you to serve performant content to users without the need for manual builds. Gulp: http://gulpjs.com/ Full Blog Post: https://askmacgyver.com/blog/tutorial/how-to-setup-a-fully-automated-gulp-build-workflow
Html code for embedding videos on your blog
Text Comments (8)
GeorgeMeehanDev (3 months ago)
Hey Macgyver, interesting tutorial. However, have you had any issues with installing gulp for new projects? I ask because when I went to follow along with a new project I got 5 vulnerabilities and when I went to fix the issues I received notification of 11 more vulnerabilities.
Macgyver (1 month ago)
I haven't had those issues.
Dan Cc (6 months ago)
Amazing tuto! Thank you <3
Macgyver (6 months ago)
Thank you for watching!
Ahmed Safan (9 months ago)
Thanks for the nice tutorial.
Macgyver (9 months ago)
Thanks Ahmed!
kayut66 (1 year ago)
Thanks for the tutorial. But in which order will the JavaScript files get concatenated? Can this method ensure that for example jQuery.js get loaded before any other js file?
Macgyver (1 year ago)
Thanks! The files will be concatenated in the order that the array of files are in the gulp file. So for instance if our concatenation task looks like this - return gulp.src(['js/jquery.js', 'js/underscore.js', 'js/bootstrap.js', 'js/backbone.js']) Then jQuery will be at the top of the file, then underscore, then bootstrap, then backbone. However keep in mind that our workflow is such that we concatenate libraries which we want available globally so there is no real dependency considerations at this point. The actual javascript for various parts of the application, the javascript which utilizes these libraries, will get loaded on an as-need-basis via require.js. That code may use underscore or jQuery but since this base.js file with all our libraries loads first it should always be present at that time.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.