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