Overview of Sizzle
mainSizzle is a pure-JavaScript CSS selector engine designed to be easily integrated into a host library. It provides high-performance CSS selector matching capabilities.
repository·main·Indexed 27 days ago
https://github.com/jquery/sizzleA pure-JavaScript, bottom-up CSS selector engine designed to be easily dropped into a host library, providing robust and high-performance CSS selector matching.
To build Sizzle, ensure you have the latest Node.js/npm and git (1.7 or later) installed.
git clone git@github.com:jquery/sizzle.gitsizzle/dist folder.To run tests, first install dependencies using npm install. It is also recommended to have grunt-cli installed globally (npm install -g grunt-cli).
You can run tests in two ways:
npm test or grunt test. If BROWSER_STACK_USERNAME and BROWSER_STACK_ACCESS_KEY environment variables are set, it will attempt to use Browserstack; otherwise, it defaults to PhantomJS.test/index.html directly in a browser.Unit tests are located in the test/unit directory.
npm install
npm test
# or
grant testSizzle uses Grunt for development tasks. Use the following commands to manage the build and development workflow:
npm run build or grunt: Lints, builds, tests, and compares the sizes of the built files.npm start or grunt start: Re-lints, re-builds, and re-tests files as they change.grunt -help: Displays all available Grunt commands.npm run build
npm start