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
Introduction to use Grunt
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
N@N
February 15, 2014
Technology
0
95
Introduction to use Grunt
Gruntの概要からインストールまで
N@N
February 15, 2014
Tweet
Share
More Decks by N@N
See All by N@N
introduction to modern numerical analysis
spark6251
0
180
Finite Automaton equivalents to Regular Expression
spark6251
0
140
Programmer and English
spark6251
0
120
Let's go to the study session
spark6251
0
110
Quantum Computation
spark6251
0
270
Introduction to Regular Expression
spark6251
0
340
Introduction to SCSS+COMPASS
spark6251
0
290
Introduction to Psychology
spark6251
1
270
Introduction to HTML5
spark6251
0
300
Other Decks in Technology
See All in Technology
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.5k
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.6k
Greatest Disaster Hits in Web Performance
guaca
0
260
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
CDKで始めるTypeScript開発のススメ
tsukuboshi
1
460
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
180
AI駆動開発を事業のコアに置く
tasukuonizawa
1
250
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
590
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
470
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
460
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
3.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Color Theory Basics | Prateek | Gurzu
gurzu
0
200
The Curious Case for Waylosing
cassininazir
0
240
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
180
Bash Introduction
62gerente
615
210k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Building Applications with DynamoDB
mza
96
6.9k
Transcript
None
• • • • • • •
• • •
• • • •
$ sudo aptitude install build-essential libssl-dev $ sudo aptitude install
curl $ wget http://nodejs.org/dist/v0.10.25/node- v0.10.25.tar.gz make install
$ sudo curl http://npmjs.org/install.sh | sudo sh
$ sudo npm install -g grunt-cli
•
• project ├──css │ ├──style.css │ └──style.scss ├──img ├──js └──index.html
• •
• •
$ npm init •
None
None
$ npm install grunt --save-dev npm install grunt --save-dev
None
$ npm install grunt-contrib --save-dev
• • • • • • • • • •
• • • • • • • • • •
• • • • • • • • • •
• • • • • • • • • •
• • • • • • • • • •
$ rm -rf node_modules $ npm install "devDependencies" OK
• module.exports = function(grunt) { grunt.initConfig({ // }); // };
module.exports = function(grunt) { grunt.initConfig({ // }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-cssmin'); };
module.exports = function(grunt) { grunt.initConfig({ clean: { ~~ ~~ },
cssmin: { compress: { files: { './min.css': ['css/style.css'] }}} }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-cssmin'); };
$ grunt clean $ grunt cssmin
module.exports = function(grunt) { grunt.initConfig({ ~~ ~~ }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['cssmin', 'watch']); }; $ grunt
• $ npm init $ npm install grunt --save-dev $
npm install grunt-contrib --save-dev //Gruntfile.js $ grunt
None