Last active
August 29, 2015 14:02
-
-
Save tjvantoll/44641aac3e75ebe56171 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function( grunt ) { | |
"use strict"; | |
var version = "2.1.1", | |
exclude = [ "ajax" ], | |
dest = "jquery-built.js" | |
exclude.forEach(function( module, index ) { | |
exclude[ index ] = "-" + module; | |
}); | |
grunt.initConfig({ | |
shell: { | |
jquery: { | |
command: [ | |
"git clone [email protected]:jquery/jquery.git", | |
"cd jquery", | |
"git checkout " + version, | |
"npm install", | |
"grunt custom:" + exclude, | |
"cd ../", | |
"cp jquery/dist/jquery.js " + dest, | |
"rm -rf jquery" | |
].join( "&&" ) | |
} | |
} | |
}); | |
grunt.loadNpmTasks( "grunt-shell" ); | |
grunt.registerTask( "default", [ "shell" ]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment