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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Architectural Extensions
denyspoltorak
0
280
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
6k
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
0
930
Fluid Templating in TYPO3 14
s2b
0
130
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
970
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.5k
CSC307 Lecture 02
javiergs
PRO
1
770
CSC307 Lecture 03
javiergs
PRO
1
490
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
Oxlintはいいぞ
yug1224
5
1.3k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.6k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.2k
First, design no harm
axbom
PRO
2
1.1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
300
Prompt Engineering for Job Search
mfonobong
0
160
Test your architecture with Archunit
thirion
1
2.1k
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