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
76
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
130
Finite Automaton equivalents to Regular Expression
spark6251
0
98
Programmer and English
spark6251
0
100
Let's go to the study session
spark6251
0
84
Quantum Computation
spark6251
0
250
Introduction to Regular Expression
spark6251
0
310
Introduction to SCSS+COMPASS
spark6251
0
250
Introduction to Psychology
spark6251
1
230
Introduction to HTML5
spark6251
0
240
Other Decks in Technology
See All in Technology
コードを書く隙間を見つけて生きていく技術/Findy 思考の現在地
fujiwara3
24
4.9k
Databricks:『生成AI World Cup』のご案内
databricksjapan
1
140
AIQ株式会社 エンジニア向け会社紹介資料
aiqlab
0
360
インシデントレスポンスのライフサイクルを廻すポイントってなに / Pinpoints of Incidentresponse Lifecycle for Operation
sakaitakeshi
0
300
Microsoft Cloudで開発ライフサイクルを保護する
kkamegawa
0
140
最近たまに見かけるTiDBってなんだ? - Findy
pingcap0315
2
530
Tableau事例紹介 / Tableau Case Study of Eureka
kazuya_araki_tokyo
1
170
コンパウンドスタートアップのためのスケーラブルでセキュアなInfrastructure as Codeパイプラインを考える / Scalable and Secure Infrastructure as Code Pipeline for a Compound Startup
yuyatakeyama
3
1.9k
ユーザーストーリーのレビューを自動化したみたの
bun913
1
300
Tebiki株式会社 エンジニア採用資料
tebiki
0
4.1k
The CloudCompare project by Dr. Daniel Girardeau-Montaut
kentaitakura
0
500
日本におけるデータエンジニアリングのこれまでとこれから
foursue
9
2.1k
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
What's in a price? How to price your products and services
michaelherold
237
11k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
Faster Mobile Websites
deanohume
296
30k
StorybookのUI Testing Handbookを読んだ
zakiyama
10
4.6k
Visualization
eitanlees
135
14k
Thoughts on Productivity
jonyablonski
57
3.8k
The Illustrated Children's Guide to Kubernetes
chrisshort
28
46k
A Modern Web Designer's Workflow
chriscoyier
689
190k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.3k
Mobile First: as difficult as doing things right
swwweet
216
8.6k
The Art of Programming - Codeland 2020
erikaheidi
41
12k
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