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
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
250
インフラエンジニア必見!Kubernetesを用いたクラウドネイティブ設計ポイント大全
daitak
1
380
生成AIを活用した音声文字起こしシステムの2つの構築パターンについて
miu_crescent
PRO
3
210
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
210
ClickHouseはどのように大規模データを活用したAIエージェントを全社展開しているのか
mikimatsumoto
0
260
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.4k
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
630
Red Hat OpenStack Services on OpenShift
tamemiya
0
130
モダンUIでフルサーバーレスなAIエージェントをAmplifyとCDKでサクッとデプロイしよう
minorun365
4
220
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
470
私たち準委任PdEは2つのプロダクトに挑戦する ~ソフトウェア、開発支援という”二重”のプロダクトエンジニアリングの実践~ / 20260212 Naoki Takahashi
shift_evolve
PRO
1
110
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
140
Featured
See All Featured
Building an army of robots
kneath
306
46k
Producing Creativity
orderedlist
PRO
348
40k
Prompt Engineering for Job Search
mfonobong
0
160
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
4 Signs Your Business is Dying
shpigford
187
22k
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
We Are The Robots
honzajavorek
0
170
Building Applications with DynamoDB
mza
96
6.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Designing Experiences People Love
moore
144
24k
Ethics towards AI in product and experience design
skipperchong
2
200
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.6k
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