aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-07-19 09:53:57 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-07-19 09:55:26 -0400
commitcaea5b1011ad406aece89d62c52e92ece422af2d (patch)
treeefee8e34501d4f1fa7cf47f349bdbca22be9f62c /Gruntfile.js
parent4b7a0d4e0afa11db4ed523c2c1f4ffc3b2cc2823 (diff)
downloadjquery-caea5b1011ad406aece89d62c52e92ece422af2d.tar.gz
jquery-caea5b1011ad406aece89d62c52e92ece422af2d.zip
Lint JSON manifests during development
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js19
1 files changed, 12 insertions, 7 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index ef5e18421..b0cf75ce3 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -73,7 +73,14 @@ module.exports = function( grunt ) {
]
}
},
-
+ jsonlint: {
+ pkg: {
+ src: [ "package.json" ]
+ },
+ bower: {
+ src: [ "bower.json" ]
+ }
+ },
jshint: {
dist: {
src: [ "dist/jquery.js" ],
@@ -92,16 +99,13 @@ module.exports = function( grunt ) {
}
}
},
-
testswarm: {
tests: "ajax attributes callbacks core css data deferred dimensions effects event manipulation offset queue selector serialize support traversing Sizzle".split(" ")
},
-
watch: {
files: [ "<%= jshint.grunt.src %>", "<%= jshint.tests.src %>", "src/**/*.js" ],
tasks: "dev"
},
-
"pre-uglify": {
all: {
files: {
@@ -578,10 +582,11 @@ module.exports = function( grunt ) {
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-uglify");
-
- // Default grunt
- grunt.registerTask( "default", [ "selector", "build:*:*", "jshint", "pre-uglify", "uglify", "post-uglify", "dist:*", "compare_size" ] );
+ grunt.loadNpmTasks("grunt-jsonlint");
// Short list as a high frequency watch task
grunt.registerTask( "dev", [ "selector", "build:*:*", "jshint" ] );
+
+ // Default grunt
+ grunt.registerTask( "default", [ "jsonlint", "dev", "pre-uglify", "uglify", "post-uglify", "dist:*", "compare_size" ] );
};