Skip to content

Instantly share code, notes, and snippets.

@tjvantoll
Last active August 29, 2015 14:02
Show Gist options
  • Save tjvantoll/44641aac3e75ebe56171 to your computer and use it in GitHub Desktop.
Save tjvantoll/44641aac3e75ebe56171 to your computer and use it in GitHub Desktop.
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