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
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
190
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
280
Introduction to HTML5
spark6251
0
310
Other Decks in Technology
See All in Technology
銀行の内製開発にて2つのプロダクトを1つのチームでスクラムしてみてる話
koba1210
1
130
[JAWSDAYS2026]Who is responsible for IAM
mizukibbb
0
670
わからなくて良いなら、わからなきゃだめなの?
kotaoue
1
360
Keycloak を使った SSO で CockroachDB にログインする / CockroachDB SSO with Keycloak
kota2and3kan
0
120
DevOpsエージェントで実現する!! AWS Well-Architected(W-A) を実現するシステム設計 / 20260307 Masaki Okuda
shift_evolve
PRO
3
800
マルチアカウント環境でSecurity Hubの運用!導入の苦労とポイント / JAWS DAYS 2026
genda
0
700
Agent ServerはWeb Serverではない。ADKで考えるAgentOps
akiratameto
0
110
JAWS DAYS 2026 ExaWizards_20260307
exawizards
0
430
Abuse report だけじゃない。AWS から緊急連絡が来る状況とは?昨今の攻撃や被害の事例の紹介と備えておきたい考え方について
kazzpapa3
1
720
Cortex Code CLI と一緒に進めるAgentic Data Engineering
__allllllllez__
0
290
フロントエンド刷新 4年間の軌跡
yotahada3
0
390
Go標準パッケージのI/O処理をながめる
matumoto
0
210
Featured
See All Featured
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
190
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
52k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
KATA
mclloyd
PRO
35
15k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
sira's awesome portfolio website redesign presentation
elsirapls
0
190
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
We Are The Robots
honzajavorek
0
200
30 Presentation Tips
portentint
PRO
1
250
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
290
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
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