Book Image

Mastering jQuery

By : Alex Libby
Book Image

Mastering jQuery

By: Alex Libby

Overview of this book

<p>Mastering jQuery has been written not only to help maximize your skills with core functionality in the library, but also to explore some of the more intriguing ways of using the library to achieve real-world solutions that could feature on any website or online environment.</p> <p>You'll start with a look at some of the more advanced ways to incorporate the library into your pages, followed by working with forms and advanced form validation using regular expressions. Next you'll move on to animating in jQuery, advanced event handling, and using jQuery effects.</p> <p>Finally, you will develop practical examples of using jQuery with external functionality such as node-webkit, before finishing with a session on optimizing your version of the library for maximum efficiency and exploring best practices for using QUnit.</p>
Table of Contents (21 chapters)
Mastering jQuery
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Packaging our plugin using Bower


Okay – on that note, we now have a working plugin and it's ready for use.

At this point, we could just release it as it is, but the smart alternative is to package it for use with managers such as Bower or NPM. This has the advantage of downloading and installing all the required packages, without the need to browse to individual sites and manually download each version.

Tip

We can even go to the extent of automating our development workflow with build tools such as Gulp and Grunt – for an example of how, head over to https://www.codementor.io/bower/tutorial/beginner-tutorial-getting-started-bower-package-manager.

For now, let's take a quick look at the steps to automate the creation of our Bower package:

  1. For this demo, we will need to install NodeJS. So head over to http://nodejs.org/, download the appropriate binary or package and install, accepting all defaults.

  2. Next, we need to install Bower. Fire up the NodeJS command prompt that will have been installed,...