On Github rowanu / js-montreal-talk.gruntjs
By Rowan Udell / @elrowan using reveal.js
This talk is all about getting you up and running with GruntJS asap. I took a while to sit down and learn GruntJS, and I'm pretty happy I did. The plugin ecosystem in particular has the potential to save you lots of time on a daily basis.It's like a build tool, but different.
Think make, rake, jake, cake, etc.
And I for one welcome our new robot overlords
Outcome Vs Process
More of what the *ake tools give you
Lots of low-level Knowledge can be encapsulated.Don't re-invent the wheel
Seriously. Stop it. Leave that yak alone.
Fantastic range of plugins for most common tasks.Should be as easy as "npm install"
It's just JavaScript
*I love JavaScript
Installed system-wide. Enables grunt command to be versioned.
Nothing special here.
JavaScript or CoffeeScript
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), ... }) }
jslint: { files: ["src/**/*.js"], directives: { devel: true } }
watch: { jslint: { files: ["src/**/*.js"], tasks: ["jslint"], options: { interrupt: true } } }
uglify: { build: { files: { "js/index.min.js": ["src/index.js"] } } }