Skip to content

Instantly share code, notes, and snippets.

@kates
Created October 22, 2012 06:58
Show Gist options
  • Save kates/3930042 to your computer and use it in GitHub Desktop.
Save kates/3930042 to your computer and use it in GitHub Desktop.
grunt config is missing in tasks using grunt.loadTasks
module.exports = function(grunt) {
grunt.registerTask("doxer", "Generate docs", function() {
grunt.log.writeln("generator: " + this.generator); // <-- this.generator is undefined
});
};
module.exports = function(grunt) {
grunt.initConfig({
doxer: {
generator: "DocGen"
}
});
grunt.loadTasks("tasks");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment