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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
180
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.3k
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2k
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
AtCoder Conference 2025
shindannin
0
1k
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
250
CSC307 Lecture 03
javiergs
PRO
1
490
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
590
dchart: charts from deck markup
ajstarks
3
990
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
250
2026年 エンジニアリング自己学習法
yumechi
0
130
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
Why Our Code Smells
bkeepers
PRO
340
58k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
3.9k
Designing for Performance
lara
610
70k
Navigating Weather and Climate Data
rabernat
0
100
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
GraphQLとの向き合い方2022年版
quramy
50
14k
WCS-LA-2024
lcolladotor
0
450
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
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