From: Mathias Bynens Date: Sun, 12 Aug 2012 09:34:21 +0000 (+0200) Subject: Add README info on how to create custom builds. Close gh-892. X-Git-Tag: 1.8.1~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6b9fde13444cc54fefc1a235a42ec41571522252;p=jquery.git Add README info on how to create custom builds. Close gh-892. --- diff --git a/README.md b/README.md index fd249681e..6012f087a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ First, clone a copy of the main jQuery git repo by running: git clone git://github.com/jquery/jquery.git ``` -Enter the directory and install the node dependencies: +Enter the directory and install the Node dependencies: ```bash cd jquery && npm install @@ -81,6 +81,18 @@ Starting in jQuery 1.8, special builds can now be created that optionally exclud - offset +Before creating a custom build for use in production, be sure to check out the latest stable version: + +```bash +git pull; git checkout $(git describe --abbrev=0 --tags) +``` + +Then, make sure all Node dependencies are installed and all Git submodules are checked out: + +```bash +npm install && grunt +``` + To create a custom build, use the following special `grunt` commands: Exclude **ajax**: