Everybody secretly wants to be an evil genius, right? So, what do they all have in common? Minions. In this session, you will learn to build your own little development minion with the grunt.js automation framework. Learn the basics of what grunt is, how it works, and how to make it automate the boring programming tasks that waste your time. Be warned, there will be code involved, and perhaps a little world domination.
26. Watches files for changes, and
calls other grunt tasks when they
change.
Live Reload! - My personal favorite
use of grunt.js
Available as a chrome extension
grunt-contrib-watch
27. jshint allows your “minion” to
automatically test your javascript
for common errors or bugs.
For example, it can be set to throw
an error if you declare unused
variables
grunt-contrib-jshint
30. grunt-contrib-sass
Sass integration for grunt, allows
you to centralize your build
process
(There are also plugins for most
other pre-processors - less,
stylus, etc)
33. 1. Copy the package.json and
Gruntfile.js to the new project
2. Run npm install
3. If necessary, update file paths
Two files and a command
Quick Note: You will want to exclude the node_modules
folder from git/version control
34. RESOURCES:
▪ https://github.com/brentswisher/gruntminion - The files
created during the talk
▪ gruntjs.com - Official grunt hompage
▪ http://gruntjs.com/plugins - list of available plugins
▪ https://nodejs.org/download/ - Node.js Installer
TUTORIALS:
▪ http://24ways.org/2013/grunt-is-not-weird-and-hard/
▪ http://www.html5rocks.
com/en/tutorials/tooling/supercharging-your-gruntfile/
CREDITS:
▪ “Harold” by Jake Rohdy
▪ Busy Icons by Olly Holovchenko
▪ Presentation template by SlidesCarnival