Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gulp & Grunt - What, Why & How

Gulp & Grunt - What, Why & How

An introduction to Javascript Task Runners using Gulp & Grunt

Michael Wallis

June 01, 2016
Tweet

Other Decks in Technology

Transcript

  1. Responsibilities & Things I do everyday • Building HTML templates

    • Styling using SASS • Javascript development • Asset handling and organization (e.g images & fonts)
  2. Why? • Save time • More consistent standards on assets

    • Improved workflow • Easy project setup
  3. Things I no longer worry about • SASS/Less compilation •

    JS Linting • CSS & JS minification and concatenation • Image optimization • Sprite sheet generation • Asset injection • File cleaning
  4. npm

  5. • Gulp npm install gulp-sass --save-dev • Grunt npm install

    grunt-contrib-sass --save-dev Installing packages
  6. • Styles – sass comp, minify and concat • Load

    Plugins – no imports • Error Handling • Live Reloading • Scripts – linting, moving, minifying • Images – optimization, sprite sheet generation, svg icon font • Asset injection and folder cleaning My Gulp Setup
  7. • Downloads in the last month Gulp - 2,207,181 Grunt

    - 1,853,883 • Plugins Gulp – 2 436 Grunt – 5 738 Numbers as of 2 hours ago