poocommerce-dev-cycle

Run PHP and JavaScript tests and linting in Docker/wp-env environments.

2|Updated Nov 8, 2024
One-click install
npx skills add https://github.com/notmattpress/poocommerce --skill poocommerce-dev-cycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: poocommerce-dev-cycle
Source: https://github.com/notmattpress/poocommerce/tree/main/.ai/skills/woocommerce-dev-cycle
Command: npx skills add https://github.com/notmattpress/poocommerce --skill poocommerce-dev-cycle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm, php, composer, nvm, and includes references (resource) components.

What problem does it solve?

Developers often spend significant time manually running tests, fixing linting errors, and ensuring code quality, which can be repetitive and error-prone. This Skill automates and guides these crucial development cycle tasks, ensuring adherence to standards and reducing manual effort.

Core Features & Use Cases

  • Automated Quality Checks: Run PHP and JavaScript linting, and automatically fix code style issues.
  • Comprehensive Testing: Execute PHPUnit and Jest tests, with options for specific classes, methods, or watch mode.
  • Troubleshooting & Guidance: Provides detailed instructions for common issues in testing and linting, including PHP linting patterns and Markdown linting.
  • Use Case: Before submitting a pull request, use this Skill to automatically run all relevant tests and fix code style issues, ensuring your code meets project standards without manual review.

Quick Start

Use the poocommerce-dev-cycle skill to run all PHP unit tests and then fix any PHP code style issues in my current branch.

Frequently Asked Questions about poocommerce-dev-cycle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run PHP and JavaScript tests automatically in PooCommerce development?

Run PHP and JavaScript tests automatically using pnpm commands like pnpm run test:php:env and pnpm run test:js within your Docker/wp-env setup. This Skill executes PHPUnit and Jest tests with options for specific classes, methods, or watch mode, eliminating manual test execution.

Can I automatically fix PHP and JavaScript linting errors in my PooCommerce code?

Yes. This Skill runs linting checks and automatically fixes code style issues across PHP and JavaScript using commands like pnpm run lint:php:fix and pnpm run lint:changes:branch:php, ensuring your code meets project standards before pull requests.

What's the best way to ensure code quality before submitting a PooCommerce pull request?

Run all quality checks in sequence: execute PHPUnit and Jest tests, lint PHP and JavaScript code, check Markdown, and auto-fix style issues. This Skill automates the entire workflow, catching errors early and reducing manual review cycles.

Do I need Docker or wp-env set up to run these quality checks?

Yes. This Skill requires Docker and wp-env-based environments to execute PHP and JavaScript tests, linting, and code quality checks. It handles automatic test environment setup but depends on pnpm, PHP, Composer, and nvm already installed.

How do I troubleshoot PHP linting and testing failures in my PooCommerce workflow?

This Skill provides detailed troubleshooting guidance for common PHP linting patterns and test failures within WordPress/PooCommerce environments, helping you resolve issues without manual debugging or external documentation searches.

Can I lint only the code changes in my current branch instead of the entire codebase?

Yes. Use pnpm run lint:changes:branch:php to lint only PHP changes in your current branch, reducing execution time and focusing quality checks on your modifications before merging.