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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
240
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.6k
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
720
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
2k
セキュリティについて学ぶ会 / 2026 01 25 Takamatsu WordPress Meetup
rocketmartue
1
310
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
390
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
3
1k
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.4k
Agent Skils
dip_tech
PRO
0
120
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
3
830
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
120
Ruby版 JSXのRuxが気になる
sansantech
PRO
0
160
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
120
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Believing is Seeing
oripsolob
1
58
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
280
It's Worth the Effort
3n
188
29k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
130
Typedesign – Prime Four
hannesfritz
42
2.9k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
Ethics towards AI in product and experience design
skipperchong
2
200
Unsuck your backbone
ammeep
671
58k
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