+1 vote
in JavaScript by
Gruntfile Example

1 Answer

0 votes
by
Sample Gruntfile
Sample Gruntfile

Sample Gruntfile for reference :

module.exports = function(grunt) {
  grunt.initConfig({
    jshint: {
      files: ['Gruntfile.js', 'src/*.js', 'test/**/*.js'],
      }
    },
    watch: {
      files: ['<%= jshint.files %>'],
      tasks: ['jshint']
    }
  });
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.registerTask('default', ['jshint']);
};
...