var fs = require('fs'); var path = require('path'); module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), less: { options: { strictImports: true }, all: { files: { 'css/qed.css': 'css/qed.less' } } }, jshint: { options: { jshintrc: ".jshintrc" }, all: { files: { src: ['**/*.js', '!node_modules/**'] } } }, htmlhint: { options: { htmlhintrc: ".htmlhintrc" }, all: { files: { src: ['**/*.html', '!node_modules/**'] } } } }); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-htmlhint'); grunt.registerTask('default', ['less', 'jshint', 'htmlhint']); };