Build the jquery source code obtained from github on Windows, githubjquery

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.