Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Gulp & Grunt - What, Why & How
Search
Michael Wallis
June 01, 2016
Technology
0
75
Gulp & Grunt - What, Why & How
An introduction to Javascript Task Runners using Gulp & Grunt
Michael Wallis
June 01, 2016
Tweet
Share
Other Decks in Technology
See All in Technology
猫でもわかるQ_CLI(CDK開発編)+ちょっとだけKiro
kentapapa
0
3.5k
20250807 Applied Engineer Open House
sakana_ai
PRO
2
360
AI時代の経営、Bet AI Vision #BetAIDay
layerx
PRO
1
2k
AWS DDoS攻撃防御の最前線
ryutakondo
1
150
ユーザー課題を愛し抜く――AI時代のPdM価値
kakehashi
PRO
1
120
生成AIによるデータサイエンスの変革
taka_aki
0
3k
Claude Codeが働くAI中心の業務システム構築の挑戦―AIエージェント中心の働き方を目指して
os1ma
9
2.6k
AIのグローバルトレンド 2025 / ai global trend 2025
kyonmm
PRO
1
140
マルチプロダクト×マルチテナントを支えるモジュラモノリスを中心としたアソビューのアーキテクチャ
disc99
1
520
生成AI導入の効果を最大化する データ活用戦略
ham0215
0
160
開発 × 生成AI × コミュニケーション:GENDAの開発現場で感じたコミュニケーションの変化 / GENDA Tech Talk #1
genda
0
210
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
6.3k
Featured
See All Featured
Faster Mobile Websites
deanohume
308
31k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
How GitHub (no longer) Works
holman
314
140k
Rebuilding a faster, lazier Slack
samanthasiow
83
9.1k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
4 Signs Your Business is Dying
shpigford
184
22k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Being A Developer After 40
akosma
90
590k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
1k
The Pragmatic Product Professional
lauravandoore
36
6.8k
Transcript
Gulp & Grunt What, Why & How Michael Wallis Front
End Developer Platinum Seed
Responsibilities & Things I do everyday • Building HTML templates
• Styling using SASS • Javascript development • Asset handling and organization (e.g images & fonts)
Javascript Task Runners
Why? • Save time • More consistent standards on assets
• Improved workflow • Easy project setup
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
None
Node.js
npm
Installing • Gulp npm install gulp –g • Grunt npm
install grunt cli –g
Node.js Example Setup
Package.json
• Gulp npm install gulp-sass --save-dev • Grunt npm install
grunt-contrib-sass --save-dev Installing packages
Grunt - Empty
Grunt SASS Example
Running the task
Grunt - SASS, autoprefixer and minify
Running the task
Grunt - Adding Watch
Grunt – Default Watch Task
Running the task
Gulp: SASS Compilation
Running the task
Gulp: SASS, autoprefix & minify
Running the task
Gulp Watch
Running the task
• 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
Load Plugins
Error Handling
Error Handling
Error Handling
Error Handling
Javascript Linting
Live Reload
Javascript Minifying
Javascript Other Tasks
Image Optimization
Images Sprite Creation - 01
Images Sprite Creation - 02
Asset Injection
Folder Cleaning
Sequences
Speed
Community
• 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
Who Wins?!
None
Gulp & Grunt What, Why & How Michael Wallis Front
End Developer Platinum Seed
• https://css-tricks.com/gulp-for-beginners/ • http://andy-carter.com/blog/a-beginners-guide-to-the-task-runner- gulp • https://medium.com/@preslavrachev/gulp-vs-grunt-why-one-why- the-other-f5d3b398edc4#.6zc1qnn2r • http://jaysoo.ca/2014/01/27/gruntjs-vs-gulpjs/
Links & Resources