Package manager for jQuery
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 1512591 Jul 6, 2012
Permalink
Failed to load latest commit information.
bin README. Jul 6, 2012
lib GitHub-related code in separate module Jul 6, 2012
.gitignore .gitignoring jQuery plugin files Jul 5, 2012
README.rst README. Jul 6, 2012
package.json async.js to improve (?) the install code Jul 5, 2012

README.rst

jqpm

jQuery Package Manager. Or, package manager for jQuery plugins.

Or just jqpm.

Wait, what?

Yep, that's correct. While jQuery might not have a central plugin repository (yet), there is always GitHub.

jqpm will use it to find plugins you request and install them. For example:

$ jqpm install flot

installs the Flot charting library, placing jquery.flot.js inside current directory.

Okay...

Like any package manager worth its salt, jqpm also lets you keep up with changes to stuff you have installed:

$ jqpm update

To accomplish that, a .jqpm directory is created that holds information about installed plugins. Make sure it's part of version control!

Is that even serious?

Maybe :-) I implemented it mostly for fun, as an experiment and simple exercise in several technologies I wanted to try out. But hey, it's totally possible it proves to be at least somewhat useful!

And if I want to try it...

...you should have node.js and npm.

The preferred way for jqpm is to install it globally:

$ sudo npm install jqpm -g

Alternatively, you can install it locally and add symlink/alias to jqpm binary:

$ cd ~
$ npm install jqpm
$ ln -s ~/node_modules/jqpm/bin/jqpm ~/bin/jqpm  # provided ~/bin is in $PATH
$ echo "alias jqpm=~/node_modules/jqpm/bin/jqpm" >> ~/.bash_aliases