Git clone the jQuery repository from https://github.com/jquery/jquery.git, npm install it, and build using grunt
grunt custom:-ajax,-deprecated
Possible modules (in jQuery 1.8) to exclude are ajax, css, deprecated, dimensions, effects, and offset.