ã追è¨150805ãããã«ææ´ããªãããã®æç¨ãªè¨äºãã¢ã«ãã³ãã¤ãª | gulp ãªãã® Web ããã³ãã¨ã³ãéçºããæ²è¼ããã¾ããã®ã§ããã¡ãããå§ããã¾ãã ããã«ã¡ã¯ã@armorik83ã§ããçãããGrunt / gulp使ã£ã¦ã¾ãããããªãã¿ãªã®ã§ãããã§ã¯èª¬æã¯ãã¾ããã ãã®è¨äºã®è¦ç¹ ãªãGrunt / gulpã¯ææ´ã«è³ãã®ããçµç·¯ã¨åé¡ç¹ npm run-scriptã®ä»çµã¿ã«ã¤ã㦠package.jsonã«scriptãç¾ åãããã¨ã«å¯¾ããæ¯é ã·ã³ãã«ãªgulpfileã«ã¤ãã¦ã®æè¨ çµç·¯ ãã¦ãå æ¥ãã®ãããªè¨äºãçéã§åºã¾ã£ã¦ãã¾ããã Grunt/Gulpã§ææ´ãããã£ããã®è©± ãã®è¨äºã«ã¤ãã¦ã¯åæã§ããã¨ããã¨ãããã§ããªãã¨ããã¨ã両æ¹æãã¾ããããã ãGrunt / gulpã使ã£ã¦ãã¦è²ã æ¯ããããæãã¦ããæ¹ã¯æ¨ä»å¢ãã¦ããã ããã¨æãã¾ã
å 人ãã¡ã1å¹´åã«éã£ãéã§ããããããã¾ããããã£ã¦è©±ãªãã§ãããåºæ¬çã«ä»¥ä¸ã®è¨äºèªãã ãåããã¾ããè¦ã¯Gulpã¨ãGruntã¨ãã£ãã¢ã使ããã«npm run hogehogeã§ãã«ãããã¼ãã£ã¦è©±ã§ãã task automation with npm run ãªã¬çGruntã«å¯¾ããææ°ã®æ°æã¡ - from scratch Node - npm ã§ä¾åãã¿ã¹ã¯ãä¸å åãã How to Use npm as a Build Tool // package.json "scripts": { "start": "npm run start-serve & npm run watch", "test": "stylestats public/files/css/maple.css", "start-serve": "browser-sync start --server publ
æ®æ®µããã¼ã«ã«ã¯ Vagrantï¼ VCCW ï¼ã§éçºãè¡ã£ã¦ãã¦ãWordPress ã®åãã£ã¬ã¯ããªã»ãã¡ã¤ã«ã¯ Vagrant ã®å ±æãã©ã«ãæ©è½ãããã®ã§è¯ãæãã«å¥ç°å¢ã«è¤è£½ããããã¹ãç°å¢ãæ¬çªç°å¢ã«ã¢ãããã¼ããããã§ããã®ã§ããããã¼ã¿ãã¼ã¹ã®å 容ã¯ãã¼ã«ã«ã¨å ±æã§ãããVagrant ç°å¢ã®ä¸ã«ããå½¢ã¨ãªãã®ã§ãã¤ã³ãã¼ããã¨ã¯ã¹ãã¼ããã¨ã£ã¦ãé¢åã ãªã¨æã£ã¦ãã¾ããã ã¨ãããã¨ã§ãGrunt ãã WordPress ãã¼ã¿ãã¼ã¹ã®ã¤ã³ãã¼ããã¨ã¯ã¹ãã¼ããè¯ãæãã«ã§ããããã«ãã¦ã¿ã¾ããã å®éã©ã®ãããªç°å¢ã«ããã®ã 対象ãµã¤ãã®éçºç°å¢ã®ã«ã¼ã㧠grunt ã¨ã³ãã³ããæã¤ã ã㧠Vagrant ã®èµ·åãsql ãã¡ã¤ã«ãåå¨ããããããã¤ã³ãã¼ãï¼ç¡ããã°ç¡è¦ï¼ãgrunt halt ã§ãã¼ã¿ãã¼ã¹ã®ã¨ã¯ã¹ãã¼ããVagrant ã®çµäºãè¡ãããããã«ã
How to structure your Grunt tasksã¨ããloadTasks()ã使ã£ã¦Gruntã®è¨å®ãå¥ãã¡ã¤ã«ã«åå²ããã¢ã¤ãã£ã¢ã«ã¤ãã¦ã®è¨äºãèªãã ãããªãã ã¾ãå¤ãªãã©ã°ã¤ã³ããã¨ããæãã§èªã¿å§ããããè¯ãæå³ã§è£åãããã Gruntã®loadTasks()ã¯ç¹å®ã®ãã£ã¬ã¯ããªã«ããã«ã¹ã¿ã Gruntãã©ã°ã¤ã³ãä¸æ°ã«èªã¿è¾¼ããã®ã§ãèªåã§æ¸ããNode.jsããã±ã¼ã¸åãã¦ããªãGruntãã©ã°ã¤ã³ãèªã¿è¾¼ãããã«ä½¿ããã®ãä¸è¨è¨äºã§ã¯ãããæå®ãã£ã¬ã¯ããªä»¥ä¸ã«ãããã¡ã¤ã«ãåã«JavaScriptãã¡ã¤ã«ã¨ãã¦ä¸æ°ã«èªã¿è¾¼ãã§ããããã¨ãå©ç¨ãã¦ãã¿ã¹ã¯ãã¨ã«åå²ããè¨å®ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ã«ä½¿ã£ã¦ããã æ®éã«Gruntfile.jsã«è¨å®ãæ¸ãå ´åã¨éãããã©ã°ã¤ã³ãã¨ã«è¨å®ãã¾ã¨ããå¿ è¦ããªãããã®ããããã¿ã¹ã¯ã®è¨å®ãå¤ãããã¨ããå ´åããã®ã¿ã¹ã¯
One problem that I frequently experience with Gruntfiles is that they grow out of control pretty quickly. Take this single js datepicker's Gruntfile for example. Now imagine scaling that upwards for your entire web app. Things turn into spaghetti pretty quickly, and you'll need a level 9 wizard to decypher those ancient texts. Build tasks need some structure so that you can quickly understand wha
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}