From 1b6ee5284928319da3b1834fc7837fc7ed4220ad Mon Sep 17 00:00:00 2001 From: pantsucat Date: Sun, 20 Sep 2015 15:20:21 +1000 Subject: Add jshint grunt task and dependency --- Gruntfile.js | 5 +++++ package.json | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 2cbd42f..64c2f7a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -97,7 +97,11 @@ module.exports = function (grunt) { dest: 'dist/' }] } + }, + jshint: { + all: ['Gruntfile.js', 'pomf.js'] } + }); grunt.loadNpmTasks('grunt-swig'); @@ -106,6 +110,7 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-htmlmin'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-imagemin'); + grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.registerTask('default', ['mkdir', 'swig', 'htmlmin', 'cssmin', 'uglify', 'imagemin', 'copy']); diff --git a/package.json b/package.json index 053988c..638a771 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,13 @@ }, "devDependencies": { "grunt": "~0.4.1", - "grunt-swig": "~0.1.2", - "grunt-mkdir": "~0.1.1", - "grunt-contrib-uglify": "~0.2.5", + "grunt-contrib-copy": "~0.4.1", + "grunt-contrib-cssmin": "~0.6.2", "grunt-contrib-htmlmin": "~0.1.3", "grunt-contrib-imagemin": "~0.3.0", - "grunt-contrib-cssmin": "~0.6.2", - "grunt-contrib-copy": "~0.4.1" + "grunt-contrib-jshint": "^0.11.3", + "grunt-contrib-uglify": "~0.2.5", + "grunt-mkdir": "~0.1.1", + "grunt-swig": "~0.1.2", } } -- cgit v1.2.3