https://github.com/devsroutes/modulespress-skeleton
This skeleton is served as the foundation template of the ModulesPress framework plugin structure. 📂
https://github.com/devsroutes/modulespress-skeleton
modulespress nestjs react vite wordpress wordpress-plugin
Last synced: 5 months ago
JSON representation
This skeleton is served as the foundation template of the ModulesPress framework plugin structure. 📂
- Host: GitHub
- URL: https://github.com/devsroutes/modulespress-skeleton
- Owner: devsroutes
- Created: 2024-11-29T14:01:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T20:41:05.000Z (over 1 year ago)
- Last Synced: 2025-04-08T22:41:39.133Z (about 1 year ago)
- Topics: modulespress, nestjs, react, vite, wordpress, wordpress-plugin
- Language: SCSS
- Homepage: https://modulespress.devsroutes.co
- Size: 160 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# ModulesPress Skeleton 🚀
A modern WordPress plugin development framework inspired by NestJS, Angular, and Laravel.
## 🌟 Overview
ModulesPress Skeleton provides a robust foundation for building scalable and maintainable WordPress plugins using modern development practices. This template serves as the starting point for your ModulesPress-based plugins.
## ✨ Features
- 🎯 **Modern Architecture** - NestJS-inspired modular design
- 🚀 **TypeScript & React** - First-class support for modern frontend
- 🛠️ **PHP 8+ Attributes** - Use decorators for clean, declarative code
- 📦 **Dependency Injection** - Powerful DI container for better testing
- 🔒 **Type Safety** - Full TypeScript and PHP type support
- ⚡ **Vite Integration** - HMR and modern build tools
- 🎨 **Blade Templates** - Elegant templating with Laravel's Blade
## 📋 Prerequisites
- PHP 8.1 or higher
- WordPress 6.0 or higher
- Node.js 16 or higher
- Composer
## 🚀 Quick Start
1. **Install ModulesPress CLI:**
```bash
composer global require modulespress/cli
```
2. **Create a new plugin:**
```bash
modulespress new
// or
mp new
```
3. **Start development:**
```bash
npm run dev
```
## 📁 Project Structure
```
plugin-name/
├── .cache/ # Cache storage (views, compiled templates)
├── artifacts/ # Compiled and packaged plugin versions as zip files
├── build/ # Compiled Vite assets
├── resources/ # Source assets requiring compilation
├── src/ # PHP source code
├── static/ # Uncompiled/raw assets
├── vendor/ # Composer dependencies
├── node_modules/ # NPM dependencies
└── views/ # Blade template files
└── plugin.php # Plugin main file
```
## 📄 License
This project is licensed under the MIT License.