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
- Add a
dev.plugins.jquery.comentry in /etc/hosts
127.0.0.1 dev.plugins.jquery.com
web-base-template
- Download or clone web-base-template
git clone git://github.com/jquery/web-base-template.git
WordPress
-
Install and run a web server (such as Apache), PHP, and MySQL.
-
Follow http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install
-
Move
wordpress/wp-config.phptowp-config.phpand add the following:define( 'WP_CONTENT_DIR', dirname( ABSPATH ) . '/web-base-template' ); define( 'WP_CONTENT_URL', 'http://dev.plugins.jquery.com/web-base-template' );
-
Copy
wordpress/index.phptoindex.phpand add update the require at the bottom to be:require('./wordpress/wp-blog-header.php');
WordPress config
From http://dev.plugins.jquery.com/wordpress/wp-admin/
- Update Site Address
- Select Settings -> General
- Set Site Address to http://dev.plugins.jquery.com
- Activate the plugins-jquery-com theme
- Select Appearance -> Themes
- Under plugins-jquery-com, select 'Activate'
- Set Custom Structure for Permalinks
- Select Settings -> Permalinks
- Select Custom Structure
- Enter
/%postname%/ - Click Save Changes
Install node >=0.6.4
plugins.jquery.com setup
-
git clone git@github.com:jquery/plugins.jquery.com.git -
cd plugins.jquery.com -
npm install -
cp config-sample.json config.json -
Edit config.json
- Set
wordpressproperties to contain a valid username and password for the WordPress site.
- Set
-
grunt setup- This is a one time setup.
-
node scripts/update-server.js- This starts an HTTP server on port 8001, which expects post-receive hooks as requests.
-
node scripts/wordpress-update.js- This is a long running process which keeps WordPress in sync with the plugins DB.