Build: update Sizzle to 2.2.1
[jquery.git] / build / tasks / install_old_jsdom.js
blob271e0cbe041308f9f8c422965410ae757390a2c3
1 module.exports = function( grunt ) {
3         "use strict";
5         // Run this task to run jsdom-related tests on Node.js < 1.0.0.
6         grunt.registerTask( "old_jsdom", function() {
7                 if ( !/^v0/.test( process.version ) ) {
8                         console.warn( "The old_jsdom task doesn\'t need to be run in io.js or new Node.js" );
9                         return;
10                 }
12                 // Use npm on the command-line
13                 // There is no local npm
14                 grunt.util.spawn( {
15                         cmd: "npm",
16                         args: [ "install", "jsdom@3" ],
17                         opts: { stdio: "inherit" }
18                 }, this.async() );
19         } );