Wp React Starter

screenshot of Wp React Starter

WordPress Plugin Boilerplate using modern web techs like TypeScript, SASS, and so on... on top of a local development environment with Docker and predefined GitLab CI for continous integration and deployment!

Overview:

WP React Starter is a WordPress React boilerplate that was created by devowl.io for the development of their WordPress plugins. It allows developers to create WordPress plugins using React, TypeScript, and object-oriented PHP in a customizable Docker development environment.

Features:

  • Instant no-config plugin creation with create-wp-react-app
  • React Frontend for reactive user interfaces (with PHP fallback for server-side rendering)
  • TypeScript for typesafe frontend development
  • PHP in an object-oriented style with namespaces for better backend code
  • Docker development environment for easy setup
  • CI/CD integration for automated code quality checks and release management
  • Familiar React API & patterns with TypeScript
  • MobX for state management
  • webpack build for assets
  • SASS stylesheets compiler for next-gen CSS
  • PostCSS for transforming SCSS to CSS
  • Minified sources automatically generated for production
  • Grunt for automation tasks
  • ESLint configuration for proper linting
  • TypeDoc for JavaScript Documentation
  • WP HookDoc for Filters & Actions Documentation
  • Translation (i18n) with automatic generation of .pot files
  • Add-On Development with a predefined utils package for sharing TypeScript types across plugins
  • Server-side features with OOP-style PHP development

Summary:

WP React Starter is a WordPress React boilerplate that aims to improve WordPress plugin development by providing modern web development features and technologies. It allows developers to create plugins using React, TypeScript, and object-oriented PHP, with a customizable Docker development environment. The boilerplate also includes features such as CI/CD integration, automatic code quality checks, and documentation generation. Although it is no longer being actively updated or extended, it can still be used or forked for future projects. Overall, WP React Starter offers a more modern and efficient approach to WordPress plugin development.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.