github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

jquery / jquery

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
    • 4,728
    • 427
  • Source
  • Commits
  • Network
  • Pull Requests (23)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (2)
    • master ✓
    • omgrequire
  • Switch Tags (45)
    • 1.4rc1
    • 1.4a2
    • 1.4a1
    • 1.4.4rc1
    • 1.4.3rc2
    • 1.4.3rc1
    • 1.4.3
    • 1.4.2
    • 1.4.1
    • 1.4
    • 1.3rc1
    • 1.3b2
    • 1.3b1
    • 1.3.2
    • 1.3.1rc1
    • 1.3.1
    • 1.3
    • 1.2.6
    • 1.2.5
    • 1.2.4b
    • 1.2.4a
    • 1.2.4
    • 1.2.3b
    • 1.2.3a
    • 1.2.3
    • 1.2.2b2
    • 1.2.2b
    • 1.2.2
    • 1.2.1
    • 1.2
    • 1.1b
    • 1.1a
    • 1.1.4
    • 1.1.3a
    • 1.1.3.1
    • 1.1.3
    • 1.1.2
    • 1.1.1
    • 1.1
    • 1.0a
    • 1.0.4
    • 1.0.3
    • 1.0.2
    • 1.0.1
    • 1.0
  • Branch List
Sending Request…
Downloads

jQuery JavaScript Library — Read more

  Cancel

http://jquery.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Fix quotes in comment. 
jeresig (author)
Thu Oct 28 12:59:58 -0700 2010
commit  e377621eaf85915b8459
tree    536ea07f1aaf77338725
parent  6020b6bb38499e445e04
jquery /
name age
history
message
file .gitattributes Fri Nov 27 08:23:19 -0800 2009 Force endlines to be just LF (any CRLF is auto-... [jeresig]
file .gitignore Wed Dec 09 23:49:13 -0800 2009 Adding .DS_Store to Git ignore. [jeresig]
file GPL-LICENSE.txt Mon Aug 21 12:36:44 -0700 2006 Updated the licensing information. [jeresig]
file MIT-LICENSE.txt Thu Jan 21 06:07:19 -0800 2010 Updating the date in MIT-LICENSE.txt. Thanks @m... [jeresig]
file Makefile Fri Oct 22 21:35:09 -0700 2010 Allow for versions with spaces in them, in the ... [jeresig]
file README.md Fri Sep 17 12:40:04 -0700 2010 Updated the Questions? section with the forum i... [RedWolves]
file Rakefile Thu Oct 14 13:57:12 -0700 2010 Forgot to update the Rakefile and build.xml fil... [jeresig]
file build.xml Thu Oct 14 13:57:12 -0700 2010 Forgot to update the Rakefile and build.xml fil... [jeresig]
directory build/ Sun Oct 17 07:50:17 -0700 2010 Handle the case where JSLint complains about ar... [jeresig]
directory speed/ Sun Oct 10 13:06:33 -0700 2010 Adding some rooted-find perf tests. [jeresig]
directory src/ Thu Oct 28 12:59:58 -0700 2010 Fix quotes in comment. [jeresig]
directory test/ Thu Oct 28 09:58:03 -0700 2010 Fix tab spacing. [brandonaaron]
file version.txt Mon Oct 25 13:26:07 -0700 2010 Updating the source version to 1.4.4pre. [jeresig]
README.md

jQuery - New Wave Javascript

What you need to build your own jQuery

  • Make sure that you have Java installed (if you want to build a minified version of jQuery).
    If not, go to this page and download "Java Runtime Environment (JRE) 5.0"

Build Options

You now have three options for building jQuery:

  • make: If you have access to common UNIX commands (like make, mkdir, rm, cat, and echo) then simply type make to build all the components.

  • rake: If you have Ruby Rake installed (on either Windows or UNIX/Linux), you can simply type rake to build all the components.

  • ant: If you have Ant installed (or are on Windows and don't have access to make). You can download Ant from here: [http://ant.apache.org/bindownload.cgi].

How to build your own jQuery

Note: If you are using either rake or ant, substitute your chosen method in place of make in the examples below. They work identically for all intents and purposes. Quick reference is also available for rake by typing rake -T in the jquery directory.

In the main directory of the distribution (the one that this file is in), type the following to make all versions of jQuery:

make

Here are the individual items that are buildable from the Makefile:

make init

Pull in all the external dependencies (QUnit, Sizzle) for the project.

make jquery

The standard, uncompressed, jQuery code.
Makes: ./dist/jquery.js

make min

A compressed version of jQuery (made the Closure Compiler).
Makes: ./dist/jquery.min.js

make lint

Tests a build of jQuery against JSLint, looking for potential errors or bits of confusing code.

make selector

Builds the selector library for jQuery from Sizzle.
Makes: ./src/selector.js

Finally, you can remove all the built files using the command:

make clean

Building to a different directory

If you want to build jQuery to a directory that is different from the default location, you can...

Make only: Specify the PREFIX directory, for example:

make PREFIX=/home/john/test/ [command]

With this example, the output files would be contained in /home/john/test/dist/

Rake only: Define the DIST_DIR directory, for example:

rake DIST_DIR=/home/john/test/ [command]

With this example, the output files would be contained in /home/john/test/

In both examples, [command] is optional.

Ant only: You cannot currently build to another directory when using Ant.

Questions?

If you have any questions, please feel free to ask them on the Developing jQuery Core forum, which can be found here:
http://forum.jquery.com/developing-jquery-core

Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • Русский
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Русский
  • Српски
  • Svenska
  • 中文

Keyboard Shortcuts

Site wide shortcuts

s
Focus site search
?
Bring up this help dialog

Commit list

j
Move selected down
k
Move selected up
t
Open tree
p
Open parent
c or o or enter
Open commit

Pull request list

j
Move selected down
k
Move selected up
o or enter
Open issue

Issues

j
Move selected down
k
Move selected up
x
Toggle select target
o or enter
Open issue
I
Mark selected as read
U
Mark selected as unread
e
Close selected
y
Remove selected from view
c
Create issue
l
Create label
i
Back to inbox
u
Back to issues
/
Focus issues search

Network Graph

← or h
Scroll left
→ or l
Scroll right
↑ or k
Scroll up
↓ or j
Scroll down
t
Toggle visibility of head labels
shift ← or shift h
Scroll all the way left
shift → or shift l
Scroll all the way right
shift ↑ or shift k
Scroll all the way up
shift ↓ or shift j
Scroll all the way down