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
CSS Preprocessor Workflow with Grunt
Search
vladikoff
October 19, 2013
Technology
2.8k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSS Preprocessor Workflow with Grunt
CSS Preprocessor Workflow with Grunt
vladikoff
October 19, 2013
Transcript
39 slides
Preprocessor Workflow with Grunt CSS Dev Conference 2013 / Vlad
Filippov
@vladikoff
Agenda • Grunt - What and Why? • Getting Started
• Grunt Plugins and CSS Workflows • Beyond the plugins +
What is Grunt? Task Runner open browser minify CSS process
SASS optimize images run tests . . .
What is Grunt? Automation open browser minify CSS process LESS
optimize images → → → { →
What is Grunt? Build Step → → → → Debug
→ Source Production Development
What is Grunt? • Built and Configured using JavaScript •
Powered by • Cross-platform • Strength in community & open-source • Strength in modularity
Who uses Grunt?
npm-stat.vorb.de/charts.html?package=grunt
Grunt Ecosystem • Stable Version: 0.4.1 • 0.4.2 out in
the next few days! • Over 1000 plugins available today
Demo
Getting Started
Empty Gruntfile
Grunt Plugins!
Grunt Plugins! Grunt Plugins and Grunt Core in node_modules Install
the plugin we want:
Make it easy to install $ npm install grunt-contrib-less --save-dev
Make it easy to install Ready to be installed everywhere!
grunt-contrib-less
grunt-contrib-stylus
grunt-contrib-sass
grunt-contrib-compass
File Patterns
Run it!
So far... → SASS: dev SASS: prod →
grunt-contrib-watch
grunt-contrib-watch
Workflow! → SASS: dev SASS: prod → watch for changes
default development →
grunt-spritesmith
grunt-contrib-imagemin
build Workflow Updated! → SASS: dev SASS: prod → watch
for changes default dev → create sprites → build optimize images → → build →
Workflow Updated!
grunt-source Reuse a Grunt environment across multiple projects Project A
Project B Project C Boilerplate Project
So much to do... • Explore task combinations, optimize •
Give feedback to existing plugins • Share your workflow • Build your own plugins • Plugin Template: github.com/gruntjs/grunt-init
Beyond the plugins
Beyond the plugins
Beyond the plugins
Beyond the plugins
None
Thank you! • Documentation and API at gruntjs.com • Stackoverflow:
[gruntjs] • IRC: #grunt on Freenode • Twitter: @gruntjs and #gruntjs
More Decks by vladikoff
See All by vladikoff
The state of end-to-end testing for modern web apps
vladikoff
0
120
SmashingConf 2020
vladikoff
0
52
dotJS 2019 - Into WebAssembly
vladikoff
0
47
3D + the Web Platform
vladikoff
0
490
7 years of three.js
vladikoff
0
170
node.js @ GA 2015
vladikoff
0
500
JS Testing Stack - Full Stack Toronto 2014
vladikoff
1
870
Node.JS Intro - General Assembly
vladikoff
3
530
3D Voxel Worlds with voxel.js
vladikoff
1
2.2k
Other Decks in Technology
See All in Technology
AIエージェントのアーキテクチャ設計
nsatoh
0
190
Re:ゼロから始めるシェアハウスのペットな鯖
silmin_
0
260
「任されビリティ」で引き受けて「よしなりてぃ」に頼らず任せる / Accept tasks with "makasarebility" and hand them over without relying on "yoshinarily"
pauli
1
830
E2E Test というハーネス — AI時代の自動テスト民主化
daishukojima
10
5.8k
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
290
gradle-best-practices 使ってみた
mikanichinose
0
170
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
130
20261113_JAWS_Osaka
takuyay0ne
1
590
人間+AIを「チーム」としてプロセスを再設計する
littlehands
4
3.5k
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.2k
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
160
メール到達性を支える、リンク先URLのドメイン評価の扱い方
wind111
0
170
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
480
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
450
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Test your architecture with Archunit
thirion
2
2.5k
Utilizing Notion as your number one productivity tool
mfonobong
4
650
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Testing 201, or: Great Expectations
jmmastey
46
8.4k