Skip to content

Commit 34946b3

Browse files
committed
Make sure Jenkins can grunt jQuery right from npm install
1 parent 3ffaa0f commit 34946b3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Gruntfile.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,9 @@ module.exports = function( grunt ) {
452452
});
453453

454454
// Load grunt tasks from NPM packages
455-
grunt.loadNpmTasks( "grunt-compare-size" );
456-
grunt.loadNpmTasks( "grunt-git-authors" );
457-
grunt.loadNpmTasks( "grunt-update-submodules" );
458-
459-
// grunt contrib tasks
455+
grunt.loadNpmTasks("grunt-compare-size");
456+
grunt.loadNpmTasks("grunt-git-authors");
457+
grunt.loadNpmTasks("grunt-update-submodules");
460458
grunt.loadNpmTasks("grunt-contrib-watch");
461459
grunt.loadNpmTasks("grunt-contrib-jshint");
462460
grunt.loadNpmTasks("grunt-contrib-uglify");

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"url": "https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt"
2222
}
2323
],
24+
"scripts": {
25+
"test" : "./node_modules/.bin/grunt"
26+
},
2427
"dependencies": {},
2528
"devDependencies": {
2629
"grunt-compare-size": "0.3.1",
@@ -30,6 +33,7 @@
3033
"grunt-contrib-jshint": "~0.1.0",
3134
"grunt-contrib-uglify": "~0.1.0",
3235
"grunt": "~0.4.0rc4",
36+
"grunt-cli": "0.1.6",
3337
"testswarm": "0.2.2"
3438
},
3539
"keywords": []

0 commit comments

Comments
 (0)