µÚÒ»²½£º°²×°brew
´ò¿ªµÇ½brewhome¹ÙÍø£¬ÉÏÃæÓа²×°ÃüÁî¡£
µÚ¶þ²½£º°²×°node
µÚÒ»²½°²×°³É¹¦ºó£¬ÃüÁîÐÐÊäÈë brew install node
µÚÈý²½£º°²×°grunt
µÚ¶þ²½°²×°½áÊøºó£¬ÃüÁîÐÐÊäÈë npm install -g grunt-cli
µÚËIJ½£º°²×°grunt²å¼þ
½«×¼±¸ºÃµÄGruntfile.js ºÍ package.json ·ÅÔÚÒª½øÐеÄÏîĿĿ¼Ï£»
ÏÈÊäÈë cd£«¿Õ¸ñ£¬½«ÏîÄ¿Îļþ¼ÐÍÏÈëÃüÁîÐУ¬enterÖ´ÐУ»
ÃüÁîÐÐÊäÈë npm installµÈ°²×°½áÊø¼´¿É¡£
ÒÔÉÏËIJ½¸ã¶¨¡£
Èç¹ûgruntÖÐʹÓÃsass£¬»¹ÐèÒª°²×°sass
mac×Ô´øruby£¬ËùÒÔÖ±½ÓÔÚÃüÁîÐÐÊäÈë sudo gem install -n /usr/loca/bin sass
°²×°³É¹¦ºó£¬²ÅÄÜÕý³£ÔËÐÐgruntµÄsass²å¼þ
ÖÁÓÚgruntfile.js ºÍ package.jsonµÄÎļþÄÚÈÝÇëµã»÷ÏÂÃæµÄ²©¿Í£º
¡¡