랭킹으로 돌아가기

wprig/wprig

JavaScriptwprig.io

A modern performance-focused theme development toolkit for WordPress.

wordpressperformanceprogressivebuild-toolswordpress-child-themewordpress-starter-themewordpress-theme-development
스타 성장
스타
1.3k
포크
277
주간 성장
이슈
68
5001k
2023년 1월2024년 3월2025년 5월2026년 7월
아티팩트npmnpm install wprig
README

WP Rig: WordPress Theme Boilerplate

[!IMPORTANT] 🤖 AI Agents: You MUST follow the Mandatory Development Protocol to ensure architectural integrity.

Build Status License: GPL GitHub release

Your Performance-Focused Development Rig

A progressive theme development rig for WordPress, WP Rig is built to promote the latest best practices for progressive web content and optimization. Creating a theme from WP Rig means adopting this approach and the core principles it is built on:

  • Accessibility
  • Mobile-first
  • Progressive enhancement
  • Resilient Web Design
  • Progressive Web App enabled

We are trying to be the starter theme for design-focused devs. If you have any ideas, questions, or suggestions for this project or are seeking to get involved in contributing or maintaining, please check out our discussion board on Github and read our contribute page on our website.

Documentation

We have a new Documentation area that can be found on the WP Rig website. If you would like to contribute to our documentation efforts, please submit a request on our contribute page on our website.

Installation

WP Rig has been tested on Linux, Mac, and Windows.

Requirements

WP Rig requires the following dependencies. Full installation instructions are provided at their respective websites.

WP Rig and child themes

WP Rig is built to lay a solid theme foundation, which makes it excellent for both parent themes and child themes. WP Rig now includes a dedicated childify script that optimizes the theme for use as a child theme while maintaining all the development benefits of the WP Rig workflow. This allows you to create lightweight child themes that inherit functionality from any parent theme while still leveraging WP Rig's build system.

How to install WP Rig:

  1. Clone or download this repository to the themes folder of a WordPress site on your development environment.
    • DO NOT give the WP Rig theme directory the same name as your eventual production theme. Suggested directory names are wprig or wprig-themeslug. For instance, if your theme will eventually be named “Excalibur” your development directory could be named wprig-excalibur. The excalibur directory will be automatically created during the production process and should not exist beforehand.
  2. Configure theme settings, including the theme slug and name.
    • View ./config/config.default.json for the default settings.
    • Place custom theme settings in ./config/config.json to override default settings.
      • You do not have to include all settings from config.default.json. Just the settings you want to override.
    • Place local-only theme settings in ./config/config.local.json, e.g. potentially sensitive info like the path to your BrowserSync certificate.
      • Again, only include the settings you want to override.
  3. In the command line, run npm run rig-init to install necessary node and Composer dependencies.
  4. In the command line, run npm run dev to process source files, build the development theme, and watch files for subsequent changes.
    • npm run build can be used to process the source files and build the development theme without watching files afterwards.
    • npm run childify can be used to convert your WP Rig theme into a lightweight child theme that inherits from any parent theme.
  5. In WordPress admin, activate the WP Rig development theme.
  6. (Optional) Run npm run ai:setup to configure the project for your specific AI coding agent (Claude, Cursor, Windsurf, etc.).

Recommended Git Workflow

When working with WP Rig, it is important to understand the appropriate Git workflow depending on what you are working on. If you are using WP Rig as a starting point for a new theme, you should use the following workflow:

Recommended Git Workflow

It is also important to note that the main branch now ignores the package-lock.json file. While this is ideal for how we distribute WP Rig, it can cause issues when working with a local development environment or on a team using a forked WP Rig. If you are using a local development environment, you should add the package-lock.json file to the .gitignore file with a ! in front to prevent ignoring the file in your new theme's repo.

Defining custom settings for the project

Here is an example of creating a custom theme config file for the project. In this example, we want a custom slug, name, and author.

Place the following in your ./config/config.json file. This config will be versioned in your repo, so all developers use the same settings.

{
  "theme": {
    "slug": "newthemeslug",
    "name": "New Theme Name",
    "author": "Name of the theme author"
  }
}

Defining custom settings for your local environment

Some theme settings should only be set for your local environment. For example, if you want to set local information for BrowserSync.

Place the following in your ./config/config.local.json file. This config will not be tracked in your repo and will only be executed in your local development environment.

{
  "dev": {
	"browserSync": {
		"live": true,
		"proxyURL": "localwprigenv.test",
		"https": true,
		"keyPath": "/path/to/my/browsersync/key",
		"certPath": "/path/to/my/browsersync/certificate"
	}
  }
}

If your local environment uses a specific port number, for example, 8888, add it to the proxyURL setting as follows:

"proxyURL": "localwprigenv.test:8888"

How to build WP Rig for production:

  1. Follow the steps above to install WP Rig.
  2. Run npm run bundle from inside the wp-rig development theme.
  3. A new, production-ready theme will be generated in wp-content/themes.
  4. The production theme can be activated or uploaded to a production environment.

Architecture & Development

WP Rig uses a modular component architecture and a modern build system to optimize your development workflow.

For more information about commands and useful workflows, please visit the WP Rig website.

License

WP Rig is released under GNU General Public License v3.0 (or later).

관련 저장소
digitalocean/nginxconfig.io

⚙️ NGINX config generator on steroids 💉

JavaScriptnpmMIT Licensenginxnginx-configuration
do.co/nginxconfig
28.3k2k
benweet/stackedit

In-browser Markdown editor

JavaScriptnpmApache License 2.0markdowneditor
stackedit.io
23k2.8k
roots/sage

WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and block editor support

PHPPackagistMIT Licensewordpress-starter-themewordpress
roots.io/sage/
13.2k3k
Automattic/wp-calypso

The JavaScript and API powered WordPress.com

TypeScriptnpmGNU General Public License v2.0wordpressjavascript
developer.wordpress.com
12.6k2k
WordPress/gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.

JavaScriptnpmOtherwordpressgutenberg
wordpress.org/gutenberg/
11.7k4.9k
woocommerce/woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.

PHPPackagistwoocommercewordpress
woocommerce.com
10.4k10.7k
wpscanteam/wpscan

WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites. Contact us via contact@wpscan.com

RubyRubyGemsOtherwordpresswpscan
wpscan.com/wordpress-cli-scanner
9.7k1.3k
roots/bedrock

WordPress boilerplate with Composer and Git, easier configuration, and an improved folder structure

PHPPackagistMIT Licensecomposerwordpress
roots.io/bedrock/
6.5k1.2k
timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

PHPPackagistMIT Licensetwigwordpress
timber.github.io/docs/
5.7k508
solstice23/argon-theme

📖 Argon - 一个轻盈、简洁的 WordPress 主题

PHPPackagistGNU General Public License v3.0argonwordpress-theme
archive-blog.s23.moe
5.5k623
wp-cli/wp-cli

⚙️ WP-CLI framework

PHPPackagistMIT Licensewp-cliwordpress
wp-cli.org
5.1k1k
corcel/corcel

Use WordPress backend with Laravel or any PHP application

PHPPackagistMIT Licensephpwordpress
4.8k601