Since the jquery npm package explanation is kind of rough and doesn’t include instructions for building a custom 1.x version, here’s a short list of steps.
git clone git://github.com/jquery/jquery.git
git clone -b 1.x-master git://github.com/jquery/jquery.git
Customizing the build is mostly useful for excluding unneeded modules and thus saving filesize. See https://github.com/jquery/jquery/tree/master/src for a list of modules. Instead of just running “grunt” in the last step of the setup, modify the command to exclude modules (take the [folder/]filename without “.js” and note that “core” and “selector” are always required):
For the current version of frique.me I’m using the following custom build which saved about 12kB.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>