SlideShare a Scribd company logo
When a Sassquatch and a Board get together (or how to use Grunt to chew Sass)
#mswebcamp
When a Sasquatch and a Boar get together
(or how to use SASS and Grunt)
Ricardo Castelhano (@riccastelhano)
Fullstack Dev / Technical Manager / Certified Scrum Master / Certified Zend Engineer
</WEB
Prerequirements
</WEB
</WEB
Grunt
The JavaScript Task Runner
• “In one word: automation (…) a task runner can do most of that mundane work for you—
and your team—with basically zero effort.”
• “The Grunt ecosystem is huge (…), you can use Grunt to automate just about anything(…)”
• “Like minification, compilation, unit testing, linting, ...” (just check Grunt Plugins Page)
(src: gruntjs.com)
Why?
Grunt
The JavaScript Task Runner
• Install Grunt Command Line Interface
npm install –g grunt-cli
• Create package.json
npm init
• Create Gruntfile.js
• Install Grunt Task Runner
npm install grunt –-save-dev
• Install SASS and Watch Tasks
npm install grunt-contrib-sass –-save-dev
npm install grunt-contrib-watch –-save-dev
demo
Grunt
The JavaScript Task Runner
package.json
demo
Grunt
The JavaScript Task Runner
Gruntfile.js
demo
Grunt
The JavaScript Task Runner
package.json
after package installation
demo
Grunt
The JavaScript Task Runner
Gruntfile.js
after config is done
demo
</WEB
SASS
Syntactically Awesome Style Sheet
• “(…)stylesheets are getting larger, more complex, and harder to maintain(...)”
• “(…)Sass lets you use features that don't exist in CSS yet like variables, nesting, mixins,
inheritance and other nifty goodies that make writing CSS fun again(…)”
(src: sass-lang.com)
Why?
SASS
Declaration
Variables
Syntactically Awesome Style Sheet
Usage
SASS Nesting
Syntactically Awesome Style Sheet
SASS Partials & Imports
Syntactically Awesome Style Sheet
SASS Operators
Syntactically Awesome Style Sheet
SASS Control Directives & Expressions
Syntactically Awesome Style Sheet
SASS Mixins
Syntactically Awesome Style Sheet
SASS Functions
Syntactically Awesome Style Sheet
SASS Inheritance
Syntactically Awesome Style Sheet
SASS
Syntactically Awesome Style Sheet
demo
Demo files
https://github.com/RicCastelhano/sassquatch-boar-demo
When a Sassquatch and a Board get together (or how to use Grunt to chew Sass)
Thank You
@riccastelhano
http://www.ricardocastelhano.net
When a Sassquatch and a Board get together (or how to use Grunt to chew Sass)

More Related Content

PDF
Preprocessor Workflow with Grunt
PDF
Modernizing Your WordPress Workflow with Grunt & Bower
PDF
Capistrano && SystemD
PPTX
Introduction to using Grunt & Bower with WordPress theme development
PDF
Front-end development automation with Grunt
PDF
Production Ready Javascript With Grunt
PDF
Introduction to Express and Grunt
PPTX
Grunt - The JavaScript Task Runner
Preprocessor Workflow with Grunt
Modernizing Your WordPress Workflow with Grunt & Bower
Capistrano && SystemD
Introduction to using Grunt & Bower with WordPress theme development
Front-end development automation with Grunt
Production Ready Javascript With Grunt
Introduction to Express and Grunt
Grunt - The JavaScript Task Runner

What's hot (20)

PPTX
Grunt to automate JS build
PDF
The Secrets of The FullStack Ninja - Part A - Session I
PDF
Advanced front-end automation with npm scripts
PDF
MVC way to introduce Sails.js - node.js framework
PDF
Node.js x Azure, cli usage, website deployment
PDF
Node.js in a heterogeneous system
PDF
Site Testing with CasperJS
PDF
[Js hcm] Deploying node.js with Forever.js and nginx
PDF
Continuous Integration for front-end JavaScript
PPTX
Node.js in a heterogeneous system
PDF
Bower & Grunt - A practical workflow
PDF
[5분 따라하기] 비주얼 스튜디오 C++에서 JSON 파서 설치하기
PPTX
JS Fest 2018. Алексей Волков. Полезные инструменты для JS разработки
PDF
S&T What I know about Node 110817
PDF
Superfast Automated Web Testing with CasperJS & PhantomJS
PPT
No more script tag soup!
PPTX
Herramientas front
PDF
node.js app deploy to heroku PaaS
PDF
Webconf nodejs-production-architecture
PPTX
Grunt and Bower
Grunt to automate JS build
The Secrets of The FullStack Ninja - Part A - Session I
Advanced front-end automation with npm scripts
MVC way to introduce Sails.js - node.js framework
Node.js x Azure, cli usage, website deployment
Node.js in a heterogeneous system
Site Testing with CasperJS
[Js hcm] Deploying node.js with Forever.js and nginx
Continuous Integration for front-end JavaScript
Node.js in a heterogeneous system
Bower & Grunt - A practical workflow
[5분 따라하기] 비주얼 스튜디오 C++에서 JSON 파서 설치하기
JS Fest 2018. Алексей Волков. Полезные инструменты для JS разработки
S&T What I know about Node 110817
Superfast Automated Web Testing with CasperJS & PhantomJS
No more script tag soup!
Herramientas front
node.js app deploy to heroku PaaS
Webconf nodejs-production-architecture
Grunt and Bower
Ad

Viewers also liked (8)

PPTX
UX Super Powers with Expression Blend (14 Out 2010)
PPTX
Developing silverlight 4 applications with expression blend 4 (30 Abr 2010)
PDF
CPIFutebol-ContratoCBF-ISE-Kentaro-JamilChade
PDF
Processing in 15m (20 Nov 2010)
PDF
Don't Forget Your Camera: Lessons Learned In Documentation
PDF
Kleiner Perkins Caufield Byers (KPCB) Internet Trends - Code Conference
PDF
Robust-Circuit-Sizing:-EDA-for-EDA
UX Super Powers with Expression Blend (14 Out 2010)
Developing silverlight 4 applications with expression blend 4 (30 Abr 2010)
CPIFutebol-ContratoCBF-ISE-Kentaro-JamilChade
Processing in 15m (20 Nov 2010)
Don't Forget Your Camera: Lessons Learned In Documentation
Kleiner Perkins Caufield Byers (KPCB) Internet Trends - Code Conference
Robust-Circuit-Sizing:-EDA-for-EDA
Ad

Similar to When a Sassquatch and a Board get together (or how to use Grunt to chew Sass) (20)

PDF
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
PDF
Quest for the Perfect Workflow for McrFRED
PDF
Grunt.js and Yeoman, Continous Integration
PDF
DevOps For Small Teams
PDF
Get Grulping with JavaScript Task Runners (Matt Gifford)
PDF
Grunt & Front-end Workflow
PPTX
PDF
Midwest PHP 2017 DevOps For Small team
PDF
Building your own personal minion with grunt.js
PDF
Deploying 3 times a day without a downtime @ Rocket Tech Summit in Berlin
PPTX
Capistrano与jenkins(hudson)在java web项目中的实践
PPTX
Toolbox of a Ruby Team
PDF
Magento Performance Optimization 101
PDF
Serverless in Production, an experience report (AWS UG South Wales)
PDF
Serverless in production, an experience report (FullStack 2018)
PDF
Workshop 3: JavaScript build tools
PDF
The Automation Factory
PDF
Serverless in production, an experience report
PDF
Meetup Performance
PDF
Meetup Performance
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
Quest for the Perfect Workflow for McrFRED
Grunt.js and Yeoman, Continous Integration
DevOps For Small Teams
Get Grulping with JavaScript Task Runners (Matt Gifford)
Grunt & Front-end Workflow
Midwest PHP 2017 DevOps For Small team
Building your own personal minion with grunt.js
Deploying 3 times a day without a downtime @ Rocket Tech Summit in Berlin
Capistrano与jenkins(hudson)在java web项目中的实践
Toolbox of a Ruby Team
Magento Performance Optimization 101
Serverless in Production, an experience report (AWS UG South Wales)
Serverless in production, an experience report (FullStack 2018)
Workshop 3: JavaScript build tools
The Automation Factory
Serverless in production, an experience report
Meetup Performance
Meetup Performance

More from Ricardo Castelhano (10)

PDF
Protege o teu site WordPress
PDF
WordPress on Microsoft Azure
PPTX
Now I See You, Now I Understand You - New Web Semantics
PPTX
"The Fun Theory" - Triggering Emotions Through Interactions
PPTX
Presenting Expression Blend 3 (2 Fev 2010)
PPTX
Prototyping with Expression SketchFlow (2 Fev 2010)
PPTX
Do Prototipo a Producao em Silverlight (14 Out 2010)
PPTX
Flash & arduino (via Glue API) - (24 Jun 2010)
PPTX
Flash skills for silverlight design and development (30 Abr 2010)
PPTX
Dynamic layout and transitions with expression blend 4 (30 Abr 2010)
Protege o teu site WordPress
WordPress on Microsoft Azure
Now I See You, Now I Understand You - New Web Semantics
"The Fun Theory" - Triggering Emotions Through Interactions
Presenting Expression Blend 3 (2 Fev 2010)
Prototyping with Expression SketchFlow (2 Fev 2010)
Do Prototipo a Producao em Silverlight (14 Out 2010)
Flash & arduino (via Glue API) - (24 Jun 2010)
Flash skills for silverlight design and development (30 Abr 2010)
Dynamic layout and transitions with expression blend 4 (30 Abr 2010)

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation theory and applications.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Spectroscopy.pptx food analysis technology
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Cloud computing and distributed systems.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Machine Learning_overview_presentation.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation theory and applications.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Empathic Computing: Creating Shared Understanding
MIND Revenue Release Quarter 2 2025 Press Release
Spectroscopy.pptx food analysis technology
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Chapter 3 Spatial Domain Image Processing.pdf
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Cloud computing and distributed systems.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Review of recent advances in non-invasive hemoglobin estimation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Machine Learning_overview_presentation.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?

When a Sassquatch and a Board get together (or how to use Grunt to chew Sass)

Editor's Notes

  • #9: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #10: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #11: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #12: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #13: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #16: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #17: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #18: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #19: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #20: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #21: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #22: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #23: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev
  • #24: npm install –g grunt-cli npm init npm install grunt –-save-dev npm install grunt-contrib-sass –-save-dev npm install grunt-contrib-watch –-save-dev