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
Grunt
Search
Marco Bohler
November 06, 2014
Programming
0
680
Grunt
Lightning Talk about Grunt (gruntjs.com)
Marco Bohler
November 06, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
Oxlintはいいぞ
yug1224
5
1.3k
Oxlint JS plugins
kazupon
1
810
AI巻き込み型コードレビューのススメ
nealle
0
140
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
190
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
110
Implementation Patterns
denyspoltorak
0
280
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
AtCoder Conference 2025
shindannin
0
1k
2026年 エンジニアリング自己学習法
yumechi
0
130
CSC307 Lecture 09
javiergs
PRO
1
830
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Facilitating Awesome Meetings
lara
57
6.7k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
750
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
250
HDC tutorial
michielstock
1
360
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Utilizing Notion as your number one productivity tool
mfonobong
3
220
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
55
Transcript
About Grunt and how to use it
ABOUT #ME • WebDev @smartive GmbH • Passionate Frontend Developer
• Software Engineering Student @zhaw Winterthur
OVERVIEW • Basic Installation and NPM • Plugin Installation and
Embedding it into a task • Create your own Tasks
ABOUT GRUNT
WHAT CAN YOU DO WITH IT? • Create building tasks
- Minify images - Precompile templates - Minify JS-Files - Deployment • Execute development tasks - Watch code changes and react on it - Build CSS from SASS/LESS - Execute unit tests
SETUP CLI $ npm install -g grunt-cli
PACKAGE.JSON { "name": "my-project-name", "version": "0.1.0", "devDependencies": { "grunt": "~0.4.5"
} }
INSTALL DEPENDENCIES $ npm install http://gruntjs.com/plugins
ADD DEPENDENCY $ npm install grunt —save-dev
GRUNTFILE.JS • Task Configuration (JSON) • Task Registration and Inclusion
TASK CONFIGURATION • Configuration node has the same name as
the task name
BASIC TASK REGISTRATION grunt.registerTask(‘taskname’, ’description’, myFunction); • Register a task
which executes a bunch of subtasks
TASK REGISTRATION • Register a task which executes a bunch
of subtasks grunt.registerTask('default', ['watch']); • Execute with grunt taskname
MULTITASK REGISTRATION • Accessing a configuration node grunt watch:foo •
Execute with grunt
FURTHER FEATURES • Project Scaffolding - Building custom project structures
TIME TO RUN YOUR TASKS