summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpantsucat <contact@pantsu.cat>2015-09-20 07:20:21 +0200
committerWubTheCaptain <wub@partyvan.eu>2015-09-20 09:07:53 +0200
commit1b6ee5284928319da3b1834fc7837fc7ed4220ad (patch)
tree5a04496101bb1586e11beec6af8eafb2bbbd9dc1
parent287d0536213783c778a69fc9a28ba8b819384156 (diff)
Add jshint grunt task and dependency
-rw-r--r--Gruntfile.js5
-rw-r--r--package.json11
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",
}
}