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
Intro to Grunt.js (Norwegian)
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Hans Kristian Flaatten
January 12, 2015
Technology
40
0
Share
Intro to Grunt.js (Norwegian)
Introduction to Grunt.js build manager.
Hans Kristian Flaatten
January 12, 2015
More Decks by Hans Kristian Flaatten
See All by Hans Kristian Flaatten
Continuous Deployment with Jenkins Pipelines
starefossen
0
55
Continuous Integrations with Jenkins
starefossen
0
69
Testing Node.js
starefossen
0
32
What is Node.js?
starefossen
0
43
LeftPad Not Found
starefossen
0
87
Whats New In EcmaScript 2015 / ES6
starefossen
0
72
Experience with NoSQL at the Norwegian Trekking Asocciation
starefossen
0
44
Introduction to Geospatial Queries in MongoDB
starefossen
0
36
Åpen Tur- og Friluftsdata
starefossen
0
110
Other Decks in Technology
See All in Technology
最低限これだけ押さえれ大丈夫_Claude Enterprise/Team企業展開ガバナンス入門
tkikuchi
1
600
Terraformモジュールは、なぜ「魔境」化するのか
hayama17
1
140
long-running-tasks
cipepser
2
460
Claude code Orchestra
ozakiomumkj
3
840
Generative UI × A2UI で AI エージェントを作った話 AI-DLC も使ってみた!
kmiya84377
1
300
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.8k
コードレビューを制するチームがソフトウェアデリバリーのフローを制す / Beyond Code Review: Distributing Its Responsibilities Across the SDLC
mtx2s
3
570
oracle-to-databricks-migration-with-llm-and-dbt
casek
1
390
Datadog 認定試験の概要と対策
uechishingo
0
220
Platform engineering for developers, architects & the rest of us (AI agents)
danielbryantuk
0
160
AI時代の私の技術インプットとアウトプット術
tonkotsuboy_com
15
8.1k
チームで実践する AI-DLC 思考の軌跡を残すチェックポイント設計
belongadmin
0
530
Featured
See All Featured
A Soul's Torment
seathinner
6
2.9k
Become a Pro
speakerdeck
PRO
31
6k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
200
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
950
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
580
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
We Have a Design System, Now What?
morganepeng
55
8.2k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
260
Six Lessons from altMBA
skipperchong
29
4.3k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
220
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Transcript
Hans Kristian Flaatten – @starefossen
None
HVA ER GRUNT? • Enkel automatisering av oppgaver • Sammenslåing
og komprimering • Testing og linting • Kompilering osv. • Skrevet i v8 JavaScript (aka. Node.JS)
HVORFOR GRUNT? • Stabilt og veletablert • Enkelt å sette
opp – enkelt å kjøre • Rikt økosystem med «støtte for det meste»
None
INSTALLER $ npm install grunt grunt-cli $ npm install grunt-contrib-jshint
$ npm install grunt-contrib-foo
KONFIGURER module.exports = function(grunt) { ! // Project configuration. grunt.initConfig({
jshit: { options: { curly: true, eqeqeq: true, eqnull: true, }, files: [ 'Gruntfile.js', 'src/**/*.js', ] } }); ! // Load the plugin that provides the "jshint" task. grunt.loadNpmTasks('grunt-contrib-jshint'); ! // Default task(s). grunt.registerTask('default', ['jshint']); ! };
PROFIT $ grunt jshint > Running "jshint:files" (jshint) task app.js
6 | process(card) ^ Missing semicolon.
LESS less: { compile: { options: { modifyVars: { imgPath:
'"https://aws-s3..."' } }, ! files: { "less/app.less": "css/app.css" } } }
FILE WATCHER watch: { js: { files: ['js/**/*.js'], tasks: ['compile:js']
}, less: { files: ['less/**/*.less'], tasks: ['compile:less'] } }
DEMO
OG MANGE FLER... • grunt-contrib-imagemin • grunt-contrib-cssmin • grunt-contrib-csslint •
grunt-contrib-concat • grunt-s3 • grunt-pylint • grunt-ssh-deploy • gruntjs.com/plugins
ALTERNATIVER Gulp Yeoman Broccoli.js
None
Never gonna give you up Never gonna let you down
Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you