ã¦ã§ããµã¤ãå¶ä½ã«ã¯ç ©éãªå¦çãèªååãããã¿ã¹ã¯ã©ã³ãã¼ããããã«ãã·ã¹ãã ãã¨ãããã¼ã«ãããã¾ãããã®è¨äºã§ã¯ãã¿ã¹ã¯ã©ã³ãã¼ãGulp.jsã¬ã«ããã®å°å ¥æé ã解説ãã¾ãã å°å ¥ã¯ç°¡åã§ãæ¬è¨äºã®æé ã§ã¯5åç¨åº¦ã§ã»ããã¢ããã§ãã¾ããGulpã¯ã³ãã³ãã©ã¤ã³ã§ä½¿ãã®ãä¸è¬çã§ããè¦æãªäººã§ãå®å¿ãã¦å¦ã¹ãããããããªã§ã解説ãã¾ãã ãã®è¨äºã§å¦ã¹ãã㨠ã¤ãããã®Gulpã®å°å ¥æé Gulp 5ã«å¯¾å¿ããæ¸ãæ¹ Sassãµã¹ã®å°å ¥æé GulpãSassã®å°å ¥ã使ãæ¹ã«ã¯ããããªæ¹æ³ãããã¾ããããã®è¨äºã§ã¯ç¾å ´ã§ä½¿ããã¦ããæ¹æ³ãç´¹ä»ãã¾ããGulpã®å ¥éè¨äºã¯ä»ã®ãµã¤ãã«ãããã¾ããã対象ãã¼ã¸ã§ã³ãå¤ãã¦ä½¿ããªãã£ãããã¾ããæ¬è¨äºã¯ææ°çã«å¯¾å¿ããã¦ããã®ã§ãå®å¿ãã¦èªã¿é²ãã¦ãã ããã â»ãã®è¨äºã§ã¯ãNode.js v18ãv20ã§åä½æ¤è¨¼ããã¦ãã¾ãã â»Gulp
ããã«ã¡ã¯ãããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã®ãã¤ãã§ã(ΦÏΦ) ä»åã¯ãç¾è¡ãµã¼ãã¹ã®CSSããªãã¡ã¯ã¿ãªã³ã°ãã話ã¨ã©ããªå½±é¿ããã£ãããã¾ã¨ãããã¨æãã¾ãã ããã çµç·¯ã¨ã å®éã«ãã5ã¤ã®ã㨠ã¾ã¨ã çµç·¯ã¨ã éçºæéç´9ã¶æããªãªã¼ã¹ãã¦1å¹´ã®ç¾è¡ãµã¼ãã¹ã®CSSã大å¤ãªãã¨ã«ãªã£ã¦ããã®ã§ ãªãã¡ã¯ã¿ãªã³ã°ãããã¨ã«ãã¾ããã ã¡ãªã¿ã«ãªãã¡ã¯ã¿ãªã³ã°ã¨ã¯ã ã½ããã¦ã§ã¢éçºã§ã¯ãã½ã¼ã¹ã³ã¼ãã®ä½æãé²ãã«ã¤ãã¦ãä¸éã§ã®è¨è¨å¤æ´ããã°ãã£ãã¯ã¹ãªã©ã§ããã°ã©ã ã¯åé·ã§æ±ããã®ã¨ãªã£ã¦ãããã¨ãå¤ãããããã®åé¡ç¹ã解決ããå°æ¥ã®ä»æ§å¤æ´ã«æè»ã«å¯¾å¿ã§ããããã½ã¼ã¹ã³ã¼ãã®æç´ããè¡ããã¨ãããªãã¡ã¯ã¿ãªã³ã°ãã¨ããã ãªãã¡ã¯ã¿ãªã³ã°ã¨ã¯ï½refactoring - æå³/解説/説æ/å®ç¾© ï¼ ITç¨èªè¾å ¸ ã¨ãããã¨ã®ããã§ãã åé¡ç¹ã¯å¤§ããããã¦2ã¤ã 1. ã³ã¼ãã£ã³
ã¯ããã« ãä»ãããã£ã¦è©±ãªãã§ãããæ¥é½ã¯ãããä¸äººã¢ããã³ãã«ã¬ã³ãã¼ã§ã©ã®æ¥ã«ä½ãæ¸ããæ§æããã¾ã£ã¦ããªãã£ãã®ã§èãã¦ã¿ãã 12/01ï¼bundler, rbenv, nodebrewã§Gulpç°å¢ãä½ã£ã¦ã¿ã 12/02ï¼gulp-sassã使ã£ã¦SCSSãã³ã³ãã¤ã«ããã¿ã¹ã¯ãä½ã£ã¦ã¿ã 12/03ï¼watchã§å¤æ´ãç£è¦ãã 12/04ï¼gulp-plumberã§ã¨ã©ã¼æã®watchã解é¤ãããªã 12/05ï¼gulp-connectã§Webãµã¼ãã¼ã¨ã©ã¤ããªãã¼ã 12/06ï¼gulp-load-pluginsã§ãã©ã°ã¤ã³ã®ä¸æ¬èªã¿è¾¼ã¿ 12/07ï¼gulp-ruby-sassã§Sassãªãã·ã§ã³ã®æå®ï¼bourbon, neat, bittersã®ãã¼ãï¼ 12/08ï¼é »ç¹ã«ä½¿ããããªã¢ã¸ã¥ã¼ã«ã試ãï¼JS,CSSå§ç¸®ç³» 12/09ï¼é »ç¹ã«ä½¿ããããªã¢ã¸ã¥ã¼ã«ã試ãï¼
ãGulp.jsã§é£¼ããªãããææ°ããã³ãã¨ã³ããã¼ã«ã®ä½¿ãæ¹ã Mars Vanilla vol.3 https://www.facebook.com/events/826486720748338/
ããã«ã¡ã¯ï¼ã¹ã¿ããã®ããã¿ã§ãã ä»åã¯ç§ã Web å¶ä½ã®éã«ä½¿ç¨ãã¦ãã gulp ã¨ãããã«ãã·ã¹ãã ã®ç´¹ä»ããããã¨æãã¾ãã ã¿ã¤ãã«ã®éã gulp ã試ãã¦ã¿ããï¼ã¨ãããã¨ã§ãç¨æãããµã³ãã«ã使ã£ã¦å®éã«æãåãããªããè¨äºãèªã¿é²ãã¦ã¿ã¦ãã ããã â» ãã®è¨äºã§ã¯ sass (ver 3.1 以ä¸)ããã§ã«ã¤ã³ã¹ãã¼ã«ããã¦ãããã®ã¨ãã¦è©±ãé²ãã¾ãã®ã§ããçæä¸ããã gulp ã¨ã¯ gulp 㯠Node.js ããã¼ã¹ã«ããã Sass ã®ã³ã³ãã¤ã«ã js ãã¡ã¤ã«ã®çµåã»å§ç¸®ãªã©ãèªååãã¦ããããã«ãã·ã¹ãã (ãã¼ã«)ã§ããåããããªãã®ã« Grunt ããããã¿ã¹ã¯ã®è¨è¿°ã®ä»æ¹ãéãã¾ããã§ãããã¨ã¯ã»ã¨ãã©åãã§ããgulp ã®å ´åãå¿ è¦ãªã¿ã¹ã¯ã¯gulpfile.jsã«è¨è¿°ãã¾ãã ã¡ãªã¿ã«ã Node.js ã«ã¤ãã¦ã®èª¬æã¯å²æãã¾ãã以ä¸ã®è¨äº
ãã¼ãºãã¬ãã¸ä¸»å¬ãOSSã«ãã§ãã¹ã¿ã¼ã®æ²³æããã«ããgulpã®åå¼·ä¼ããGulp.jsã§é£¼ããªãããææ°ããã³ãã¨ã³ããã¼ã«ã®ä½¿ãæ¹ãã«åå ãã¦ãã¾ããï¼ ç¾å¨ãWebã®å¶ä½çéã«ã¯ã¨ã³ã¸ãã¢æ¹é¢ãããã¶ã¤ãã¼æ¹é¢ã«åãã£ã¦çã¹ãã¼ãã§ãã£ã¦ããèªååã®æ³¢ã Gruntã ã£ããYOMANã ã£ãããã¿ã¹ã¯ã©ã³ãã¼ã¨ãã©ã°ã¤ã³ã«ãã£ã¦ãèªååã§ãããã®ãèªååãããã¨ã§ã¯ã¼ã¯ããã¼ãæ¹åã§ããããã ã¨ãã£ãã¨ããã§ãæ²³æããã®å¶ä½ç°å¢ãä¸å¿ã«ãgulpãç´¹ä»ãã¦ããã ãã¾ããã gulpãå ¨åã§ä½¿ãã¨ãå¾ãããè¦ã¦ãã人ã«ã¯éæ³ã«è¦ãã æ¬å½ã«ãããã使ã£ã¦ããä»ã®ã¢ããªã±ã¼ã·ã§ã³ã«ããå¹æã大ããã®ã§ãããã¨ãã£ã¿ã§ããã£ã¦ããã¨ä¿åãããã°ãããã©ã¦ã¶ã§ã®è¡¨ç¤ºãå¤ãã£ã¦ããããã¶ã¤ã³ã«ä½¿ã£ã¦ããã°ã©ãã£ãã¯ã½ããã§ãã¡ã¤ã«ãä¿åããã¨ã¹ã©ã¤ã¹ãåãç´ããã«è¡¨ç¤ºãå¤ãã£ã¦ããã»ã»ã»ã
詳ããã¯ä¸è¨é£è¼ãè¦ã¦ãããã°åããã¾ãããGruntã¨ã¯JavaScriptã使ç¨ãã¦Webéçºã«ä¼´ããã¾ãã¾ãªä½æ¥ãèªååãã¦å¹çè¯ãè¡ãããã®ãã«ããã¼ã«ã§ãã ãã®ãã¼ã«ã§ã¯ãã¿ã¹ã¯ãã¨å¼ã°ããä¸é£ã®å¦çãè¨å®ãã¡ã¤ã«ã«è¨è¿°ãã¦ããã¾ããGruntã®è¨å®ãã¡ã¤ã«ï¼Gruntfile.jsï¼ã¯ãã¿ã¹ã¯ã«å¯¾ãã¦JSONå½¢å¼ã§ãã©ã¡ã¼ã¿ã¼ãæå®ãã¦ããã®ã§ãããããã§å°ã åé¡ãããã¾ãã ã·ã³ãã«ãªã¿ã¹ã¯ã§ããã°åãããããã®ã§ãããå¤ãã®æ¡å¼µæ©è½ï¼ãã©ã°ã¤ã³ï¼ã使ç¨ããããã¿ã¹ã¯ã®å¶å¾¡ãç´°ããè¡ãå¿ è¦ãçããããããå ´åãGruntfileã®è¨è¿°éãå¢ãã¦åé·ã«ãªããã¿ã¹ã¯å士ã®é¢é£ãã¿ã¹ã¯å®è¡çµæãåããã«ãããªã£ã¦ãã¾ãã¾ãã ãããªGruntã®åé¡ç¹ã解æ¶ãããã¨ãç®çã¨ãã¦éçºãããã®ããä»åç´¹ä»ãããgulp.jsãï¼ä»¥ä¸ãgulpï¼ã§ãã gulpã¯Gruntãç¶æ¿ãã¤ã¤ã
2014/9/12ã«è¡ãããé±æ«ã©ã³ãµã¼ãºã§ã®Gulpãã³ãºãªã³ã§ä½¿ç¨ããã¹ã©ã¤ãã§ãã LIGããã°ã§ãã®å 容ãããã«ã¾ã¨ãã¦ãã¾ãã http://liginc.co.jp/web/tutorial/117900Read less
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
æè¿ãGruntããgulpã«åãæ¿ãå§ãã¦ãã人ãå¢ãã¦ããæ°ããã¾ãããã®æ°ã¶æã§ããããªããã°ãªããã§ãå°å ¥è¨äºãå¢ãã¦ãããã§ãããã²ã¨ã¤è¨ã£ã¦ããã¾ãã¨ãæ°ã¶æåã®è¨äºã¯éµåã¿ã«ãã¦ã¯ãããªãï¼ã¨ãããããã®ã¾ã¾ã ã¨åããªããã¨ãããããï¼ãããªãããªãã¦ã ãããã©ãããããããã¨è³ªåãåããããããã§ãããããããªäººãã¯ã¾ã£ã¦ãåå ã¯ããã辺ã«ããæ°ããã¦ãªããªãã®ã§ãããããããªããã§ãã¡ãã£ã¨ãã®è¾ºã®è©±ãã¾ã¨ãã¦ããããã¨ç«ã¡ä¸ãã£ã次第ã§ãã â»ãã®è¨äºã¯2014å¹´7æ30æ¥æç¹ã®ãã®ã§ãã®ã§ãæ°ã¶æå¾ã«ã³ã¬ãèªãã§ãæ¹ã¯ã注æãã ã¢ãããã¼ãã®é »åº¦ãé«ãã®ã§â¦ ãããã£ããã¼ã«ã®ã¢ãããã¼ãé »åº¦ã¯é«ããã®ã§ãããgulpã®ãã¼ã¸ã§ã³ã¢ããé »åº¦ãã¾ãã¾ãã§ç¾å¨ã®ææ°çã¯ãv3.8.6ãã«ãªã£ã¦ãã¾ãããã©ã°ã¤ã³ã使ãã°ããããæ©è½ã追å ãããã¨ãã§ãã¾ããããããã£ã
ã¿ã¹ã¯ã©ã³ãã¼gulpå ¥é gulpã¯Gruntã¨åãããã«æ§ã ãªã¿ã¹ã¯ãèªååãã¦ããããã¼ã«(ã¿ã¹ã¯ã©ã³ãã¼)ã§ãã node.jsã§éçºããã¦ãããSass/CompassãLessãStylusãªã©ã®CSSããªããã»ããµã¼ã®ã³ã³ãã¤ã«ãCSS/JSã®çµåå§ç¸®ãJSHintã«ããããªãã¼ã·ã§ã³ãªã©æ§ã ãªã¿ã¹ã¯ãèªåã§è¡ã£ã¦ããã¾ãã Gruntã¨ã§ãããã¨ã¯ã»ã¨ãã©åãã§ãããGruntããã¿ã¹ã¯ã®æµãããããããããJavaScript(node.js)ã§ç¬èªã®ã¿ã¹ã¯ãç°¡åã«è¨è¿°ãããã¨ãã§ãã¾ãã å¾çºã¨ãããã¨ãããGruntãããã©ã°ã¤ã³æ°ã¯å°ãªãã§ãããããã¢ãã¯ãªã¿ã¹ã¯ä»¥å¤ã¯ããã£ã¦ããã®ã§é常ã®Webå¶ä½ãªã©ã§ã¯åé¡ãªãå©ç¨ã§ããã§ãããã node.jsã®ã¤ã³ã¹ãã¼ã« node.jsãå¿ è¦ã§ãã®ã§ã¤ã³ã¹ãã¼ã«ãã¦ããªãæ¹ã¯ã¤ã³ã¹ãã¼ã«ãã¾ãããã å ¬å¼ãµã¤ãã§ã¤ã³ã¹ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}