The jQuery Plugins site, http://plugins.jquery.com/
This site is an index of GitHub repositories that each contain a single jQuery plugin. Each such repository contains a valid package.json
in the repository root. The specification for this file is in docs/package.md.
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!
- jQuery's web-base-template
- Web server (such as Apache)
- PHP
- MySQL
- WordPress
- node
- git
-
Download or clone web-base-template
git clone git://github.com/jquery/web-base-template.git
-
Add a
plugins.jquery.com.dev
entry in /etc/hosts127.0.0.1 plugins.jquery.com.dev
-
Install and run a web server (such as Apache), PHP, and MySQL.
-
Follow http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install
-
Redirect your WordPress install to use the web-base-template's theme and config (replacing "[YourWordPressInstallDirectory]" with the actual name of the directory where you installed WordPress)
rm -rf [YourWordPressInstallDirectory]/wp-content
ln -s web-base-template/wordpress/wp-content wordpress/wp-content
From http://plugins.jquery.com.dev/wp-admin/
- Activate the plugins-jquery-com theme
- Select Appearance -> Themes
- Under plugins-jquery-com, select 'Activate'
- Activate the jQuery Slugs plugin
- Select Plugins
- Under jQuery Slugs, select 'Activate'
- Set Custom Structure for Permalinks
- Select Settings -> Permalinks
- Select Custom Structure
- Enter
/%postname%/
- Click Save Changes
-
git clone [email protected]:jquery/plugins.jquery.com.git
-
cd plugins.jquery.com
-
npm install
-
cp config-sample.json config.json
-
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)
- Set
-
node src/setup.js
- This is a one time setup which will erase any previous data generated by other scripts in this repo.
-
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.
- This expects a post-receive hook as stdin. You can use
-
node src/wp-update.js
- This is intended to run as a long running processes, monitored by a system such as monit.