Skip to content

Instantly share code, notes, and snippets.

@scarney81
Created May 6, 2014 13:37
Show Gist options
  • Save scarney81/e1546c352df34d8f8b64 to your computer and use it in GitHub Desktop.
Save scarney81/e1546c352df34d8f8b64 to your computer and use it in GitHub Desktop.
increase file watch count and grunt watch
alias hammer=gruntWatch
function gruntWatch() {
# increase file watch limits
sudo launchctl limit maxfiles 10480 10480
ulimit -n 10480
# remove existing build directories
rm -rf ./_dist
# build and watch
grunt build; grunt watch
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment