I want to integrate Grunt on my java Script project. I have installed npm, grunt and all.
I have created the package.json file and GRUNTFILE.js for the grunt.
but when i run the "grunt" command i am getting this error 'module' is undefined.
GRUNTFILE.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
grunt.registerTask('default', []);
};
Package.json
{
"name": "Example",
"version": "0.0.1",
"private": true,
"devDependencies": {
"grunt": "latest",
"grunt-cli": "^0.1.13"
}
}