Skip to content

Instantly share code, notes, and snippets.

@kentcdodds
Created July 12, 2014 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kentcdodds/4c002b44cb0f0e59fa73 to your computer and use it in GitHub Desktop.
Save kentcdodds/4c002b44cb0f0e59fa73 to your computer and use it in GitHub Desktop.
Medium blog post gist
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
jade: {
local: {
options: {
data: function() {
return require('./jade/getIndexData')('local');
}
},
files: {
'public/index.html': ['jade/index.jade']
}
}
},
watch: {
jade: {
files: ['jade/index.jade', 'Gruntfile.js', 'jade/getIndexData.js'], //Unfortunately, I haven't found a way to watch for file adds/removes...
tasks: 'jade'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-watch');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment