Created
July 19, 2013 23:52
-
-
Save adamloving/6043160 to your computer and use it in GitHub Desktop.
The best thing I added to my Gruntfile this week.
This file contains 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
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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(obviously designed to be chained at the end of a sequence of tasks)