Created
          February 6, 2014 12:39 
        
      - 
      
- 
        Save 2no/8843393 to your computer and use it in GitHub Desktop. 
    https://gist.github.com/wakuworks/5500063 を改良。ローカルファイルに grunt がなければ `npm install` を実行。さらにその後 `grunt` コマンド実行する
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | tell application "Finder" | |
| set myWin to window 1 | |
| set theWin to (quoted form of POSIX path of (target of myWin as alias)) | |
| tell application "Terminal" | |
| activate | |
| tell window 1 | |
| do script "/bin/sh -c 'cd " & theWin & "; npm list grunt | grep empty >/dev/null 2>&1 && npm install; grunt'" | |
| end tell | |
| end tell | |
| end tell | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment