By Rowan Udell / @elrowan using reveal.js
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
Don't re-invent the wheel
Seriously. Stop it.
Leave that yak alone.
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"]
}
}
}