I downloaded the (https://github.com/jzaefferer/jquery-validation)[jQuery
Validation plugin) from github and I thought it would be easy to get it
installed. Usually when I download javascript, I just needed to copy the
javascript files and I’m done. This time around I was really puzzled. The
index.html in the demo directory contained this line:
but that directory didn’t exist. What is going on? I looked at the project
root directory and found Gruntfile and saw some json files. After a bit of
googling, I discovered that grunt is a build system for javascript.
You run
This looks for a file package.json which contains a description of the
necessary packages to include much like a Gemfile in ruby.
Next, you run grunt
As you can see the dist directory is created and tests were run. Now you’re
all set. You can copy the files from the dist directory and you’re ready to
go!