Build the jquery source code obtained from github on Windows, githubjquery
The jquery files downloaded from github are not compressed and merged. the description provided in md is used to construct jquery in the window. When grunt is run in the last step, grunt is directly opened in the editor. js, cannot complete the build, you need to first execute in the command line: DOSKEY grunt = grunt. cmd $ *. The following detailed building steps: 0 install github,: http://windows.github.com/1 install NodeJS,: http://nodejs.org/#download2 install grunt:Npm install-g grunt, which is executed on the command line after installation.Grunt-version: Check grunt version 3. clone jquery git from github clone git: // github.com/jquery/jquery.git as shown in
4. Enter the jquery directory at the command prompt and execute: npm install. The NodeJS module is required for automatic installation and building, as shown in figure
5 execute grunt, run grunt on the window system first in the command line: DOSKEY grunt = grunt. cmd $ * (https://github.com/cowboy/grunt/blob/master/docs/faq.md)
If the scr/sizzle. js file is missing during the build process, copy the file to the corresponding directory.
After completing the preceding steps, a jquery. min. js file will be available in the dist directory.
Grunt is a javascript command line build tool running in nodeJS Environment
Project address: https://github.com/cowboy/grunt