Build the jquery source from GitHub on your Windows system

Source: Internet
Author: User
The jquery files downloaded from GitHub are not compressed and merged, and jquery is built in window based on the instructions provided in jquery readme.md. When you run grunt to the last step, the Grunt.js is opened directly in the editor, and you cannot complete the build, which needs to be executed at the command line first: DOSKEY grunt=grunt.cmd $*. The following detailed build steps: 0 Install GitHub,: HTTP://WINDOWS.GITHUB.COM/1 install nodejs,:http://nodejs.org/#download2 Install Grunt: npm install -g grunt,安装完成后在命令行执行  Grunt- Version can view grunt versions 3 from GitHub on clone jquery git clone git://github.com/jquery/jquery.git as

4 Enter the jquery directory at the command prompt, execute: NPM Install, automatically installs the build requires Nodejs module, such as



5 executing grunt, running grunt on the window system requires first execution at the command line: DOSKEY grunt=grunt.cmd $* (https://github.com/cowboy/grunt/blob/master/docs/faq.md)

During the build process, if you are prompted for missing scr/sizzle/sizzle.js files, copy the files to the appropriate directory

After completing the above steps, there will be a jquery.min.js file in the Dist directory

Grunt is a JavaScript command-line build tool that runs in a NODEJS environment

Project Address: Https://github.com/cowboy/grunt

Build the jquery source from GitHub on your Windows system

Related Article

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.