Suche senden
Hochladen
gumistudy#15 How to Automate Tasks grunt.jsを使ったタスク自動化
•
1 gefällt mir
•
2,081 views
Kenichiro Watanabe
Folgen
Melden
Teilen
Melden
Teilen
1 von 36
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
concrete5 デザインカスタマイズ 基礎編
concrete5 デザインカスタマイズ 基礎編
Shin'ichi Nakane
al3asy
al3asy
guest2174f
From World IPv6 Day to World IPv6 Launch: This time it’s for Real
From World IPv6 Day to World IPv6 Launch: This time it’s for Real
IPv6 Forum Singapore
Paving the Way for IPv6 in Singapore
Paving the Way for IPv6 in Singapore
IPv6 Forum Singapore
Getting The World IPv6 Enabled
Getting The World IPv6 Enabled
IPv6 Forum Singapore
饮料
饮料
Su Kong
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Empfohlen
concrete5 デザインカスタマイズ 基礎編
concrete5 デザインカスタマイズ 基礎編
Shin'ichi Nakane
al3asy
al3asy
guest2174f
From World IPv6 Day to World IPv6 Launch: This time it’s for Real
From World IPv6 Day to World IPv6 Launch: This time it’s for Real
IPv6 Forum Singapore
Paving the Way for IPv6 in Singapore
Paving the Way for IPv6 in Singapore
IPv6 Forum Singapore
Getting The World IPv6 Enabled
Getting The World IPv6 Enabled
IPv6 Forum Singapore
饮料
饮料
Su Kong
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
Weitere ähnliche Inhalte
Empfohlen
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
Empfohlen
(20)
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
gumistudy#15 How to Automate Tasks grunt.jsを使ったタスク自動化
1.
2.
u—s‚øtKtÑ @_kenichirow ÷™¶&gumi ô çÃ
èà Ôê¼ °ì: HTML,SCSS,CoffeeScript °ì? : ¤—•«ł› “¦Python EÛ? : ^ŠClojure Oµ − vim , git
3.
:Ÿ ¡̃^Š”ô çÃ
èØoìŽ grunt » gumi »grunt³ t∙q³›–−v ^Š”gruntRRìŽ̋v
4.
ox¶ß ¡w^Š”ôçà èØo»fiœo
5.
)åa qk aweb¼ö
ÍßÓ ” áÞawÒ—œ¶o Backbone.js¶∙JS”MVCô ߊ ßË SMACSS¶∙&|oCSSŁSÊ
6.
ŸÜ»Ã³o—zßÎv•Ufl“¦∙ Ðs−̃ Ø)s¤ ÞߊØo“
^‘̃”ÈowìáË•
7.
.o«åÒ¾éß•Šo< ØÏþ è
¾ ³ −̀¶w)s¤ ÿÕØIo
8.
9.
Šøa|—|łq1;a x−̃ »Šøa|–²žvœ
o|¡ Ø› !”© O¶ )•ÓÂ
10.
GRUNT.JS
11.
GRUNT.JS Node.js ¢œ©¤¤ÜÕËŠøaâß Ruby”RakeºJava”Ant œ∼øq¶Ø” Ïþ
è ¾ $ grunt + u ©¤ÜÕËù grunt.js $ grunt sass
12.
GRUNT”ïßÔ •fio–gumi »2013
7j‚v”^&⁄v0.4.1 ³³i 0.3Kvœ0.4K v¶ßNòw‾›–o−” Ÿ ä ©–¶oö ̾ »³s¶v›¤ß|—¡ ìáçö” ̂oÏßè»Ó² ̨ : grunt/grunt Upgrading from 0.3 to 0.4
13.
WHO USES GRUNT
14.
cw x−”̇ ÜÕËÀ°ì)³Ł1ô¹¾ Gruntfile.(js/coffee)•̈o– Ïþ
è ×s sass(compass)”Ï ð¾ “›¤œ» #Gruntfile.coffee module.exports = (grunt) -> config = compass: debug: options: environment: 'development' release: options: environment: 'production' grunt.loadNpmTasks 'grunt-contrib-compass' grunt.registerTask 'compile', 'compassコンパイルをするよ (DEBUG)', [ 'compass' ] $ grunt compass:release
15.
¶þ”§Í̆›«Œ¦̃©compass³Ÿ •§z” N°œ ¶o...
Î
16.
² » c”ÜÕ˳— Ł–Ñ̃•
¡− Zî”ô¹¾ ”Nò³{−|–Šø ÜÕË #release task grunt.registerTask 'release-compile', 'sassのコンパイルをするよ (RELEASE)', [ 'checkConflict' //コンパイルするファイルに未解消のコンフリクトがないかチェック 'clean:sass' //sassの一時ファイルを削除 'compass:release' //コンパイル 'clean:css' //古いcssを削除 'lightpng' //リポジトリに追加された画像を圧縮 'copy:sass' //アプリケーションのフォルダにcssをコピー 'csso' //cssoで最適化 'resizeImage' //画像のリサイズ 'cssImage1x' //android用のcss生成 'growl:sass' //おわったらgrowlで通知 ] $ grunt release-compile
17.
¶þ”§Í ƒ©H”»Ã Ø
Ø› »s shell Øoo oµ∼Œ... Î
18.
|zo 2013 •ÓÂ ÕË
öç̈x¤z¶o N¶DSL̈x¤z¶o XML»<7”̈z'∼Œ¶o
19.
GRUNTooø©5|µ“JS ÜÕËŠøa! ö ̾
n Vz1000ıö coffee+Ô !©”lodash 9c;»Ã›̌z Õç ¢ x−! ô¹¾ Nò³ç Èß•|– ²”ÜÕ˳̄́|¡” w–Øq ©¶o
20.
GUMI ”GRUNT
21.
qxz)¦– coffee/scss”Ï ð¾ iÜÕË öl•ô^¡−pł
|¤ÜÕË •)v©− ×s ß̋∙Øu¢£|¤ ßÕi•scss³Ï ð¾ ¡ −ÜÕË #release task grunt.registerTask 'release-compile', 'sassのコンパイルをするよ (RELEASE)', [ 'checkConflict' //コンパイルするファイルに未解消のコンフリクトがないかチェック 'clean:sass' //sassの一時ファイルを削除 'compass:release' //コンパイル 'clean:css' //古いcssを削除 'lightpng' //リポジトリに追加された画像を圧縮 'copy:sass' //アプリケーションのフォルダにcssをコピー 'csso' //cssoで最適化 'resizeImage' //画像のリサイズ 'cssImage1x' //android用のcss生成 'growl:sass' //おわったらgrowlで通知 ]
22.
^Š¢›¤ÜÕË
23.
GRUNT-LIGHTPNG compass Šø¢{©−sprite«(»32bit”png ̃¡−âß »m−¦∙
À‚> ºß¤z¶o
24.
«(”ò&º g³{−|–Šø ̃¡©
...
25.
git ls-tree ýÔç
唫(”îáә߳<À gp³}=|–json•|–ZB $ git ls-tree -r HEAD { 'foobar1.png':{ 'hash' : 'e1456604d111dd4' }, 'foobar2.png':{ 'hash' : 'u12358fffgs84jc' } }
26.
json ‚v”îáә߳̋Ó¡− ò&©¤ô¹¾ w°v−”
əߕ‾©– ̃ oqÜÕ˳¢ß—|¤ #画像をミニファイするメソッド minify = -> file = queue.shift() unless file _end() return steps = [ -> _exec "./tools/bin/lightpng #{file} -32i #{file}",()-> _next steps.shift() ,-> _next minify ] _next steps.shift()
27.
o«o«>ø Ïþ è§v¶z–Ø
ßÕô•«( ̃¡−øq•¶ß—|¤ Ł ¤|Ł ¤|
28.
t” ̃¬³›–o−ö ÔÂËç»o—”
̃¬2fi íÁîÁØ—“—“Ä́|–−^ÌÜÕËØ g|–o ›–o− Šøa»q<c”Þߊ•¶© •¶−̋∙xo–z−Û î
29.
GRUNTRR”o¬o¬
30.
GRUNT-CONTRIB Й”ö ̾ j ̃©ıł•Ønpm•u
©¤ÜÕËw1000ıö https://github.com/gruntjs/grunt-contrib
31.
GRUNT-INIT grunt³³›¤ö ÔÂË甿¶=³ä ö
ßçvœ¢ {¡−âß ÑvœŠ) ÁŁ−þ »̃©³³q Û https://github.com/gruntjs/grunt-init
32.
YEOMAN grunt bower¶∙³ áö|¤ô
ߊ ßË Ïþ èÑo ŽÝ ¶JS¼ö ”ö{w|öw− Ufl“¦∙YEOMAN way•pqÈowm− ZZö{•| ¤oþ »q‘oþ wIovØ http://yeoman.io/
33.
— Ł
34.
ß<»»o—|¤ÍÓ ÕË öç»|ÄÎ Š)
ÑvœC ̈z” »¶z ìÚ•H”<ẅo¤Ï ßè³Ó ÕË öçvœ̄́|¡̃ Ñ Øc− )”C”Ïßè³ |¤” œ∼앶−
35.
GRUNT = ô
çà èåùáð• ›–”|Ä
36.
u°ß’∼÷mßw q’‘o—|¤
Jetzt herunterladen