Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Gulp & Grunt - What, Why & How
Search
Michael Wallis
June 01, 2016
Technology
80
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Gulp & Grunt - What, Why & How
An introduction to Javascript Task Runners using Gulp & Grunt
Michael Wallis
June 01, 2016
Other Decks in Technology
See All in Technology
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.4k
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
190
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
450
パッチ更新でterraform initが落ちた日
grimoh
1
140
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
200
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
Rust で関数型ドメインモデリング
takonda
0
140
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
200
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
140
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
150
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
今さら理解するウェブフォントver.2026
takanorip
3
770
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Making Projects Easy
brettharned
120
6.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Test your architecture with Archunit
thirion
2
2.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Product Roadmaps are Hard
iamctodd
55
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
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