From 34946b3d63afb6943febe0ac4be4dcecc739729d Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Wed, 19 Dec 2012 20:18:58 -0500 Subject: [PATCH] Make sure Jenkins can grunt jQuery right from npm install --- Gruntfile.js | 8 +++----- package.json | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index d0b3f1e0f..68be0ecc9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -452,11 +452,9 @@ module.exports = function( grunt ) { }); // Load grunt tasks from NPM packages - grunt.loadNpmTasks( "grunt-compare-size" ); - grunt.loadNpmTasks( "grunt-git-authors" ); - grunt.loadNpmTasks( "grunt-update-submodules" ); - - // grunt contrib tasks + grunt.loadNpmTasks("grunt-compare-size"); + grunt.loadNpmTasks("grunt-git-authors"); + grunt.loadNpmTasks("grunt-update-submodules"); grunt.loadNpmTasks("grunt-contrib-watch"); grunt.loadNpmTasks("grunt-contrib-jshint"); grunt.loadNpmTasks("grunt-contrib-uglify"); diff --git a/package.json b/package.json index e758e0813..d6fcdc82c 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,9 @@ "url": "https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt" } ], + "scripts": { + "test" : "./node_modules/.bin/grunt" + }, "dependencies": {}, "devDependencies": { "grunt-compare-size": "0.3.1", @@ -30,6 +33,7 @@ "grunt-contrib-jshint": "~0.1.0", "grunt-contrib-uglify": "~0.1.0", "grunt": "~0.4.0rc4", + "grunt-cli": "0.1.6", "testswarm": "0.2.2" }, "keywords": []