Skip to content

Instantly share code, notes, and snippets.

@adamloving
Created July 19, 2013 23:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamloving/6043160 to your computer and use it in GitHub Desktop.
Save adamloving/6043160 to your computer and use it in GitHub Desktop.
The best thing I added to my Gruntfile this week.
SUCCESS_PHRASES = ['all good', 'works for me', 'keep it coming', 'yeah baby', 'i like it',
'you\'re good', 'that\'s it', 'nailed it', 'mmm hmmm', 'sweet', 'keep it up', 'yep']
# ...
exec:
notify_ok:
cmd: ->
phrase = SUCCESS_PHRASES[Math.round(Math.random()*(SUCCESS_PHRASES.length-1))]
"say -v Vicki \"#{phrase}\""
# ...
grunt.loadNpmTasks 'grunt-exec'
@adamloving
Copy link
Author

(obviously designed to be chained at the end of a sequence of tasks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment