Skip to content

Instantly share code, notes, and snippets.

@olizilla
Last active December 18, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olizilla/5813054 to your computer and use it in GitHub Desktop.
Save olizilla/5813054 to your computer and use it in GitHub Desktop.
Grunt makes it better

Grunt Yourself Beautiful

Grunt Logo

"The JavaScript Task Runner"

Another Build Tool!?

  • Yep. The right tool for the job.
  • Grunt is optimised for building front-end slickness.

Fonzie approved

Cleanse, Tone, Moisturise

There are Tasks for:

  • Linting (Static code QA)
  • Testing (Mocha, Jamsine, QUnit & more)
  • Concatenation (Combine all the things)
  • Minifying (Munge all the things)
  • Stripping (console.logs and debugger)
  • Ascification...

Visible results after just one wash

>> File "fis.js" changed.

Running "asciify:fis" (asciify) task
___________.___   _________   ________     _______   
\_   _____/|   | /   _____/   \_____  \    \   _  \  
 |    __)  |   | \_____  \     /  ____/    /  /_\  \ 
 |     \   |   | /        \   /       \    \  \_/   \
 \___  /   |___|/_______  /   \_______ \ /\ \_____  /
     \/                 \/            \/ \/       \/ 

Running "concat:framework" (concat) task
File "framework.js" created.

Running "uglify:framework" (uglify) task
File "framework.min.js" created.
Original: 568414 bytes.
Minified: 219843 bytes.

Running "strip:things" (strip) task

Done, without errors.

Completed in 5.459s at Wed Jun 19 2013 14:33:53 GMT+0100 (BST) - Waiting...

Clicky

Gist to deck

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