Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The jQuery Plugins site
branch: master

This branch is 170 commits behind jquery:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
pages
src
.gitignore
LICENSE.txt
README.md
config-sample.json
package.json

README.md

plugins.jquery.com

The jQuery Plugins site, http://plugins.jquery.com/

How it works

The plugins site is an index of GitHub repositories that contain jQuery plugins. In general, the repositories must contain a single jQuery plugin with an accompanying valid package.json in the repository root. The specification for this file is in docs/package.md.

How to list a plugin

Simply add a post-receive hook to your repository with our web hook url, http://plugins.jquery.com/_update. Warning: This is not yet functional!

Development

Requires

  • jQuery's web-base-template
  • Web server (such as Apache)
  • PHP
  • MySQL
  • WordPress
  • node
  • git

Installation

HOSTS

  1. Add a plugins.jquery.com.dev entry in /etc/hosts

    • 127.0.0.1 plugins.jquery.com.dev

web-base-template

  1. Download or clone web-base-template

    • git clone git://github.com/jquery/web-base-template.git

WordPress

  1. Install and run a web server (such as Apache), PHP, and MySQL.

  2. Follow http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install

  3. Move wordpress/wp-config.php to wp-config.php and add the following:

    define( 'WP_CONTENT_DIR', dirname( ABSPATH ) . '/web-base-template' ); define( 'WP_CONTENT_URL', 'http://plugins.jquery.com.dev/web-base-template' );

  4. Copy wordpress/index.php to index.php and add update the require at the bottom to be:

    require('./wordpress/wp-blog-header.php');

WordPress config

From http://plugins.jquery.com.dev/wordpress/wp-admin/

  1. Update Site Address

  2. Activate the plugins-jquery-com theme

    • Select Appearance -> Themes
    • Under plugins-jquery-com, select 'Activate'
  3. Set Custom Structure for Permalinks

    • Select Settings -> Permalinks
    • Select Custom Structure
    • Enter /%postname%/
    • Click Save Changes

Install node >=0.6.4

  1. Follow https://github.com/joyent/node/wiki/Installation

plugins.jquery.com setup

  1. git clone git@github.com:jquery/plugins.jquery.com.git

  2. cd plugins.jquery.com

  3. npm install

  4. cp config-sample.json config.json

  5. Edit config.json

    • Set dbName to your WordPress MySQL database name
    • Set dbUser to your WordPress MySQL database user
    • Set dbPassword to your WordPress MySQL database password
    • Leave siteId null (unless you happen to be using a Wordpress multi-site installation locally, in which case supply the site's ID in the multi-site install)
  6. node src/setup.js

    • This is a one time setup which will erase any previous data generated by other scripts in this repo.
  7. node src/update.js

    • This expects a post-receive hook as stdin. You can use {"repository":{"url":"http://github.com/scottgonzalez/temp-jquery-foo","watchers":3,"forks":25}} for testing.
  8. node src/wp-update.js

    • This is intended to run as a long running processes, monitored by a system such as monit.
Something went wrong with that request. Please try again.