Gulp JS Crash Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 406

  • @RussellSpencerOfficial
    @RussellSpencerOfficial 7 ปีที่แล้ว +46

    I always felt a bit lost with gulp files, but not anymore. Thanks Brad!

  • @codeAlongwith
    @codeAlongwith 6 ปีที่แล้ว

    Thanks so much for outlining this:
    gulptask - defines tasks
    gulp.src - points to the file to use
    gulp.dest - points to the folders to output
    gulp.watch - watch files and folders for changes

  • @kevinmarmet
    @kevinmarmet 6 ปีที่แล้ว

    I don't know how many tutorials and videos I have tried, THIS one did it. Fantastic! For all those who can't figure out where to start from, START FROM YOUR PROJECT ROOT.

  • @dildgemckenzie8597
    @dildgemckenzie8597 7 ปีที่แล้ว +2

    Watched this over the weekend, was expecting it to be super complex, and yet your explanation broke it down into simple steps. Thank you for an excellent tutorial.

  • @mohammadghonchesefidi9238
    @mohammadghonchesefidi9238 6 ปีที่แล้ว +16

    This is not the best Gulp tutorial in youtube, its actually the best in web !! I love you man ! Now I see how working with gulp is easier than webpack and other ones ! Hope you have plan to create another video about advance staff.

  • @mickeymegabyte
    @mickeymegabyte 7 ปีที่แล้ว +7

    i always used to approach gulp with a large, nervous, apprehensive and audible swallow, but not anymore!
    surprised you didn't include browser-sync, surely an essential part in anyone's workflow to see all the results of the gulp goodness
    thanks a bunch for another truly excellent tutorial!

    • @ViktorNegan
      @ViktorNegan 6 ปีที่แล้ว

      If you want to apply browser sync for live file reloading purpose...you can user nodemon..

  • @vishalvrk
    @vishalvrk 5 ปีที่แล้ว +49

    26:26 use gulp.task('default',gulp.parallel(['message','copyHtml','imageMin','minify','sass']));

    • @AndrielleHillis
      @AndrielleHillis 5 ปีที่แล้ว +3

      I wish I had read the comments before going over to Stack Overflow. Lol!

    • @majalinet
      @majalinet 5 ปีที่แล้ว

      Thanks man! Very helpful!

    • @jmartecep
      @jmartecep 5 ปีที่แล้ว +4

      This too as of 6/30/2019: gulp.task('develop', gulp.series('clean', 'coffee'))

    • @serdarinjo
      @serdarinjo 5 ปีที่แล้ว

      Thanks a ton bro 💪🏾!

    • @ego_sum_liberi
      @ego_sum_liberi 5 ปีที่แล้ว

      Thanks, it worked!

  • @BrandonStill
    @BrandonStill 6 ปีที่แล้ว +1

    I wish I could like this video multiple times. First 10 minutes with you I've learned more than the last couple of days reading through forums and online tutorials. Nice work man!!!

  • @vectorialpx
    @vectorialpx 6 ปีที่แล้ว +11

    Great video, thank you!
    A small update (I guess): to have multiple tasks you need gulp.series, like
    > gulp.task('default', gulp.series('sass', 'imageMin'));

  • @brokenblades1759
    @brokenblades1759 7 ปีที่แล้ว

    Sweet! Simple and to the point.
    One thing I would add is using gulp-clean-css to minimize your css after you parse it from sass!
    //Sass => CSS => Minify
    gulp.task('minify-sass', () => {
    gulp.src('src/sass/*.scss')
    .pipe(sass().on('error', sass.logError))
    .pipe(cleanCSS({compatibility: 'ie8'}))
    .pipe(gulp.dest('dist/css'));
    });

  • @dankierson
    @dankierson ปีที่แล้ว

    Great simple intro to Gulp.
    Whoever said 6 year old YT vids are out of date?
    I can't wait to start Gulping 😊

  • @Rashomon69
    @Rashomon69 11 หลายเดือนก่อน

    You definitely earned my sub from this video.
    I have a job interview coming up next week, and they want someone with some Gulp experience. This looks much easier than I expected.
    Great explanation! Very clear and to the point.

  • @opiyosebastian
    @opiyosebastian 6 ปีที่แล้ว

    Was wondering what is gulp when I came across it, but immediately after watching this, I feel at home and am going to use gulp. Thanks a lot!

  • @MrHeadnail
    @MrHeadnail 7 ปีที่แล้ว

    this is actually the best explanation of working with gulp - most of those are just about frontend tasks

  • @danieladetayo3711
    @danieladetayo3711 7 ปีที่แล้ว +12

    Once I see a video made by Brad, I watch it. I don't care if it's about politics. Thanks man. You are the best.

  • @vishalbhansali430
    @vishalbhansali430 7 ปีที่แล้ว +3

    Hi Brad, I have been following your channel since a month or so. You are simply amazing. Thanks a lot for making these videos. I really enjoyed this video. There are few other awesome gulp tasks which I have learnt in other tutorial videos that I would request if you can add to this video as a part 2. They include gulp-svg-sprite, gulp-svg2png, gulp-rename, gulp-postcss, autoprefixer, postcss-simple-vars, postcss-nested, postcss-import, postcss-mixins, postcss-hexrgba, browserSync, modernizr. Once again, thank you for making these videos for us

  • @GuilhermeGrillo
    @GuilhermeGrillo 7 ปีที่แล้ว

    is this the best channel on youtube for web development? YESSS!

  • @CHAZZA2010XP
    @CHAZZA2010XP 5 ปีที่แล้ว +24

    26:55 new version of gulp will give an error. This will resolve it using .series or .parallel - gulp.task('default', gulp.series(['message', 'copyhtml', 'imagemin', 'minify', 'sass']));

    • @aqurds
      @aqurds 5 ปีที่แล้ว +1

      I lost here, got to the point with your code for the latest version. Thanks!

    • @Dieselyura-u2p
      @Dieselyura-u2p 5 ปีที่แล้ว

      can you help me, I still have this error, what it can be?

    • @Dieselyura-u2p
      @Dieselyura-u2p 5 ปีที่แล้ว

      sorry, never mind, everything works, my bad)

    • @cmd9183
      @cmd9183 5 ปีที่แล้ว +1

      @@Dieselyura-u2p gulp.task('message',async() => {
      return console.log('gulp is working');
      done();
      });

    • @andriiauziak1178
      @andriiauziak1178 5 ปีที่แล้ว

      Thanks

  • @ousmanebocoum221
    @ousmanebocoum221 7 ปีที่แล้ว

    Just coming from a book where after reading hours i could not figure out what was gulp and what it is used for..but after 20mn on this video i grasped the whole concept..Brad you are awesome..i would like to say you are the Feynman of web Dev..they should stop writing books and focus on conrent like yours..that's actually the best learning method..

  • @mhermargaryan2923
    @mhermargaryan2923 4 ปีที่แล้ว

    If you are using gulp 4, watching file changes works a little bit differently. You'll need to use gulp.series function instead of the array.
    gulp.task("watch", function(){
    gulp.watch("src/js/*.js", gulp.series("concatJS"));
    gulp.watch("src/sass/*.scss", gulp.series("sass"));
    });
    Thanks for the video BTW, great as always!

  • @nikolagrkovic2572
    @nikolagrkovic2572 7 ปีที่แล้ว

    my biggest accomplishment in programming is when i made a calculator in school using Borland Delphi 7. And now I'm looking at this video. Man, so much to learn... Can't wait

  • @rimoros.1020
    @rimoros.1020 3 ปีที่แล้ว +1

    To anyone still watching this at 2021+, This video is very good at introducing gulp but also make sure to then check out tutorials/documentation on your latest gulp version to fill out some missing information or new syntax/methods. ngl I would still reccomend watching this even if it's from 2017.

  • @Dwesk
    @Dwesk 7 ปีที่แล้ว

    lmao I was gonna look up how Gulp and Webpack differ on youtube and of course I find both of the videos from you. You're the best man.

  • @danfoyuk
    @danfoyuk 7 ปีที่แล้ว

    Great tutorial, loved how much you managed to cover in half an hour by being focussed on Gulp.js and not also trying to explain Node.js, SASS etc at the same time, which a lot of other tutorials suffer from.
    Considering moving to Gulp from Grunt due to frustration with the watch lag on Grunt for projects with lots of concatenating and SASS compiling. Looks like I’ll need much less code using Gulp to do the same thing too which is nice.

  • @giorgimerabishvili8194
    @giorgimerabishvili8194 7 ปีที่แล้ว +1

    The best channel on TH-cam. Thank you very much! Much love and respect!

  • @rashedxyz
    @rashedxyz 7 ปีที่แล้ว

    I couldn't help myself from commenting and liking on your video. This tutorial is really awesome. Thanks a lot.

  • @liamh1621
    @liamh1621 5 ปีที่แล้ว

    Thanks, Brad! I've been putting off using a task runner, build system, what have you for a while, but seeing how simple it is to set up I'm gonna start using Gulp tomorrow!

  • @fvgoya
    @fvgoya 7 ปีที่แล้ว +91

    Gulp is really very handy!!! I heard that we can do much more using gulp. Is it possible if you can make another video with advanced things that are possible to do with gulp?
    As always, thank you for sharing your knowledge!!

    • @dildgemckenzie8597
      @dildgemckenzie8597 7 ปีที่แล้ว +3

      Great point Fernando.

    • @Elite7555
      @Elite7555 5 ปีที่แล้ว +2

      With the right plugins, Gulp could be a full fletched build system.

    • @christiantimothy1988
      @christiantimothy1988 3 ปีที่แล้ว

      I realize I am pretty off topic but does anybody know a good place to watch new tv shows online?

  • @RAZR_Channel
    @RAZR_Channel 2 ปีที่แล้ว

    Great Tutorial as always. I've come to depend on this channel to get straight to what I'm looking for without all the typical youtuber stuff. I can't handle most other channels that scream CTA at you. Most suck and are often a ripoff of this channel.

  • @mohitkale6879
    @mohitkale6879 7 ปีที่แล้ว

    Easy and nicely crafted tutorial. I thought Gulp was something very difficult, but not NOW. Thanks to Traversy Media :)

  • @highland5729
    @highland5729 6 ปีที่แล้ว

    This is the most important video ever in modern development, thanks Brad!

  • @andyc5714
    @andyc5714 7 ปีที่แล้ว +1

    Awesome video, I saw Gulp being used in another tutorial and got a bit confused. This video cleared everything up for me - thanks!

    • @贝尔16
      @贝尔16 3 ปีที่แล้ว

      im always like Brad couse

  • @peterkaltenberger6711
    @peterkaltenberger6711 5 ปีที่แล้ว +1

    I alway thought it would be to complicated for me but its not. After your crashcours I am ready to go the next steps ;) Thank you so much !!!

  • @petecapecod
    @petecapecod 6 ปีที่แล้ว

    I actually watched this one to get a better explanation of Gulp for a project on a Udemy course where they just went over Gulp. Your's had so much more detail, I should be able to change around my Gulp workflow now no problem 👍❤

  • @London2ATL
    @London2ATL 7 ปีที่แล้ว

    Thanks for this, you're so knowledgeable and awesome for sharing with us. I'm taking a web developer workflow course and the guy said he is often responsible for hiring developers and a lot of people are not hired because they don't have the right workflow, git, gulp and moreover I've seen a lot of employers ask for these things.

  • @RaphaelFellowes
    @RaphaelFellowes 6 ปีที่แล้ว

    First time commenting on one of these videos - this was such a good, clear tutorial (and better than the one I paid for on Udemy...) Thanks very much!

  • @franciscomambo4120
    @franciscomambo4120 7 ปีที่แล้ว

    Thanks Brad, your crash courses are always great, when I dont understand anything or want to learn something about web development I always find what I'm looking for in your vidéos and you always make all the things look so simple. That's why I don't hesitate to buy your courses in Udemy. I wish you all the best and I'm still looking for your contents

  • @kollabor8
    @kollabor8 6 ปีที่แล้ว

    Excellent work Brad, you've never let me down. Just a FYI, when I used your code in Gulp v4.0 I needed to add async or a promise to the code to make it finish properly

  • @ego_sum_liberi
    @ego_sum_liberi 5 ปีที่แล้ว

    Great tutorial.. I had no idea what gulp was until now. Thanks!

  • @hosseinkavand5980
    @hosseinkavand5980 3 ปีที่แล้ว +1

    Thats very helpful and you are so good at this

  • @adamromero
    @adamromero 5 ปีที่แล้ว +1

    32:02 Update: Use gulp.series('scripts') in place of ['scripts'] in the watch task :)

    • @TheWandererDoc
      @TheWandererDoc 4 ปีที่แล้ว

      gulp.task('watch', async()=>{
      gulp.watch('src/js/*.js', gulp.series('scripts'));
      gulp.watch('src/images/*', gulp.series('imagemin'));
      gulp.watch('src/sass/*.scss', gulp.series('sasss'));
      gulp.watch('src/*.html', gulp.series('copyhtml'));
      });

  • @pratikkumar939
    @pratikkumar939 6 ปีที่แล้ว

    you are an absolutely brilliant teacher

  • @imtanuki4106
    @imtanuki4106 4 ปีที่แล้ว

    Great tutorial - well organized, to the point, easy to follow.

  • @Adam-eats
    @Adam-eats 7 ปีที่แล้ว

    Great videos man! Was just telling myself yesterday that I needed to learn Gulp. Keep up the good work!

  • @katiemorris2132
    @katiemorris2132 7 ปีที่แล้ว +5

    Thank you!! This gave me a great, quick overview for an upcoming project.

  • @RobloxGirl-w2e
    @RobloxGirl-w2e 7 ปีที่แล้ว +1

    Needed a crash course for a project, this was really helpful .. thanks !!

  • @MishClauw
    @MishClauw 7 ปีที่แล้ว

    Thank you for making these videos. This video is good for me who learned the existence of gulp at my workplace like last week :)

  • @petoleju
    @petoleju 7 ปีที่แล้ว

    So much useful information in such a short video. Thanks.

  • @MarkCay
    @MarkCay 3 ปีที่แล้ว

    This is what I've been looking for. Thank you so much for this, Brad!

  • @agentpx
    @agentpx 5 ปีที่แล้ว

    Very informative tutorial, now I understand gulp fully. Thanks and more power

  • @techtipsuk
    @techtipsuk 7 ปีที่แล้ว +1

    Just wanted to thank you for your brilliant videos. Very much appreciated.

  • @dundascreates
    @dundascreates 6 ปีที่แล้ว

    Awesome tutorial. Love how you make everything so simple. I learn a lot from your off hand explanatory asides.

  • @ZingueZangue
    @ZingueZangue 7 ปีที่แล้ว +5

    I love you thanks. kk
    I take 30 minutes to learn something i was trying to learn for months.

  • @MauFerrusca
    @MauFerrusca 7 ปีที่แล้ว +1

    Superbly explanied, as usual. Thanks!

  • @adityazagade8597
    @adityazagade8597 6 ปีที่แล้ว

    Really helped me understand what gulp is all about! thanks

  • @MossawirAhmed
    @MossawirAhmed 3 ปีที่แล้ว

    This video is pure gold. Thanks alot.

  • @munapadhi8723
    @munapadhi8723 7 ปีที่แล้ว +1

    thanks brad for your hardworking , i love your all video with teaching experience .....good bless you

  • @tom_sd3466
    @tom_sd3466 7 ปีที่แล้ว +1

    Thank you so much, you explained this Gulp very well this is a great framework to work off of!

  • @xhulioballiu8538
    @xhulioballiu8538 6 ปีที่แล้ว

    This chanel is just too awesome. Thanks Brad, youre doing an amaing job

  • @ronstubed
    @ronstubed 7 ปีที่แล้ว

    Thanks Brad. Helps me understand the essence of Gulp.

  • @ajinkyax
    @ajinkyax 7 ปีที่แล้ว

    thanks. Im planning to use Gulp in my Angular 2 project for CI to push code gulp-rsync to SSH

  • @TheWandererDoc
    @TheWandererDoc 4 ปีที่แล้ว

    right now is it fine to use this? in vs code there is minify options and there is sass compiler

  • @muhammadhuzaifapro
    @muhammadhuzaifapro 7 ปีที่แล้ว

    Splendid, simple straight and well documented :)

  • @radovansurlak7445
    @radovansurlak7445 7 ปีที่แล้ว +2

    Thank you so much Brad, your videos are helping me a lot :)

  • @poppysoulvibi327
    @poppysoulvibi327 2 ปีที่แล้ว

    Thank you so much, was a really helpful tutorial had to update some code such as the function to "async function" if any one out there is stuck with that, but really helped me see how gulp works many thanks:)

  • @kr0k0deilos
    @kr0k0deilos 6 ปีที่แล้ว

    This tutorial is pure gold, thank you!

  • @courtneyatkinson9359
    @courtneyatkinson9359 4 ปีที่แล้ว

    LUV your videos... they have been a lifesaver when trying to learn new concepts!!!! :)

  • @gilsonviana4936
    @gilsonviana4936 6 ปีที่แล้ว

    Thanks for such great video of this awesome tool. I am stuck with Webpack since I have been using React a lot lately.

  • @heitoralthmann
    @heitoralthmann 6 ปีที่แล้ว

    Thank you! This video addressed all my doubts. Awesome content from end to end!

  • @jakewood5475
    @jakewood5475 ปีที่แล้ว

    Very clear explanations and examples. Thanks a lot.

  • @rockyisabroad
    @rockyisabroad 5 ปีที่แล้ว

    You're out here doing the Lord's work !!!

  • @shishirislam8948
    @shishirislam8948 2 ปีที่แล้ว

    It was very hard to me...Now it's easy and clear all confusion

  • @duke1sanj1
    @duke1sanj1 7 ปีที่แล้ว +1

    True Legend! Thank you Brad...

  • @skyyao4769
    @skyyao4769 3 ปีที่แล้ว

    This is really a good tutorial for me to get to know Gulp, thanks.

  • @shubhamsehgal2336
    @shubhamsehgal2336 5 ปีที่แล้ว

    Thank You so much for making this tutorial. I was scared using gulp but not anymore :)

  • @CarlWicker
    @CarlWicker 5 ปีที่แล้ว

    Really helpful, a few things have changed since this was published but still a great tut.

  • @cacurazi
    @cacurazi 6 ปีที่แล้ว

    In short:
    Gulp JS is a front-end build system just like Grunt, Webpack and Brunch.
    This allows you to speed up your page load. Also, it allows you to run your application on a local server instead of your browser. It will automatically reload/refresh your code (live reload). You can use utilities as Uglify to compress/minify JS files. It also allows you to use cool technologies such as SASS... Gulp JS is automatically installed with NPM.

  • @shankerm3959
    @shankerm3959 7 ปีที่แล้ว

    i came back just to like this video. Great tutorial! Thanks.

  • @skyfirelove
    @skyfirelove 6 ปีที่แล้ว

    Thanks! You have helped solidify this process big time for me!

  • @0xccd
    @0xccd 7 ปีที่แล้ว

    So excited!! Your videos are awesome. Thks!!

  • @maxeminem777
    @maxeminem777 7 ปีที่แล้ว

    This an excellent tool, I had no idea how useful it is. Thanks for this great tutorial :)

  • @kalankasiyambalapitiya7615
    @kalankasiyambalapitiya7615 6 ปีที่แล้ว

    Thanks for clarifying gulp.js ..keep up the good work !!!

  • @marktwain3083
    @marktwain3083 7 ปีที่แล้ว +7

    Where were you some months ago when I was struggling to write the perfect gulp boilerplate for my nodejs apps? :P

  • @kingwindie
    @kingwindie 6 ปีที่แล้ว +1

    if you're watching in 2018, alot has changed, if you try to minify the js and it throws an error,
    install gulp-terser
    require it at the top as per usual
    gulp-uglify does not work anymore

  • @minhajulislamrahid6030
    @minhajulislamrahid6030 6 ปีที่แล้ว

    Thank you. This tutorial will make me to use gulp in my next project. Thanks again.

  • @gmanpublications
    @gmanpublications 6 ปีที่แล้ว +1

    Hey Brad, I am trying to follow this course but I when I get to the images part it keeps giving me the following error and I tried several of the solutions on Stack Overflow but nothing is solving it.
    Here is the error message I keep getting.
    [07:22:41] Using gulpfile ~\desktop\sass_startup\gulpfile.js
    [07:22:41] Starting 'imageMin'...
    events.js:183
    throw er; // Unhandled 'error' event
    ^
    Error: The system cannot find the path specified.
    at notFoundError (C:\Users\pc\desktop\sass_startup
    ode_modules\execa
    ode_modules\cross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (C:\Users\pc\desktop\sass_startup
    ode_modules\execa
    ode_modules\cross-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (C:\Users\pc\desktop\sass_startup
    ode_modules\execa
    ode_modules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    Any ideas as to what I did wrong?

  • @FreakyCoach
    @FreakyCoach 7 ปีที่แล้ว +1

    Nice and very informative video, thanks Brad.

  • @gosnooky
    @gosnooky 5 ปีที่แล้ว

    I was excited to learn more about Gulp, but it looks like it's mostly geared towards web application stuff like compressing css and js bundles. I was thinking it was more of a build pipeline, but it seems you can't send parameters from the end of one task to the next (which is the very definition of a pipeline), so it seems for a deployment tool, Gulp is about as useful as sunscreen in England.

  • @jorrinbruns4371
    @jorrinbruns4371 6 ปีที่แล้ว

    You nailed it with this video!!! Thanks so much for sharing the knowledge!

  • @madeinbalcony7237
    @madeinbalcony7237 6 ปีที่แล้ว

    you never fail to amaze me Brad :D

  • @bealearnscode
    @bealearnscode 7 ปีที่แล้ว +1

    I watched five seconds and liked the video.

  • @brunocolucci4072
    @brunocolucci4072 6 ปีที่แล้ว

    Man, you're awesome.Period.

  • @guilhermegirardi
    @guilhermegirardi 5 ปีที่แล้ว

    BRAD YOU ARE AWESOME, JESUS!!!!!! THANK YOUUU, MAN!

  • @romaniaplus
    @romaniaplus 7 ปีที่แล้ว

    Like always Brad offers the best! Gulp now for free! What do you want more?

  • @sagar-gavhane
    @sagar-gavhane 7 ปีที่แล้ว

    Appreciated for you're video on gulp.

  • @planetmall2
    @planetmall2 4 ปีที่แล้ว

    Thank you for having these great videos.

  • @YaserAz
    @YaserAz 6 ปีที่แล้ว

    Great demo .Thanks Brad !

  • @mumtaz1132
    @mumtaz1132 5 ปีที่แล้ว

    Thanks a lot for the video. Clear and understanding. All 5 points for you.

  • @saileshpant1350
    @saileshpant1350 7 ปีที่แล้ว

    You are just awesome. Now lot more clear. Thank you .

  • @cmd9183
    @cmd9183 5 ปีที่แล้ว +27

    anyone having problems do it this way gulp.task('message',async() => {
    return console.log('gulp is working');
    done();
    });

    • @theohtsite
      @theohtsite 5 ปีที่แล้ว

      Thanks, that worked for me...not sure why this happens, but I appreciate the help

    • @ebukapeter7106
      @ebukapeter7106 5 ปีที่แล้ว

      Thanks for this

    • @seandeg
      @seandeg 4 ปีที่แล้ว

      Legend

    • @olpner
      @olpner 4 ปีที่แล้ว

      done(); does nothing in this case. It's after the return BUT the async() => worked wonders. Thanks