dokan-dev-cycle

Guide and automate Dokan plugin tests, linting, builds, and CI workflows.

286|214|Updated Jan 31, 2017
One-click install
npx skills add https://github.com/getdokan/dokan --skill dokan-dev-cycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dokan-dev-cycle
Source: https://github.com/getdokan/dokan/tree/main/.claude/skills/dokan-dev-cycle
Command: npx skills add https://github.com/getdokan/dokan --skill dokan-dev-cycle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dokan development cycle guidance and automation for tests, linting, builds, and CI to streamline plugin development.

Core Features & Use Cases

  • Build and run dev and production builds using npm scripts (start, start:hot, build, makepot, release).
  • Lint and format PHP/JS/CSS with PHPCS, phpcbf, ESLint, and Stylelint; CI enforces changes on PRs.
  • Execute PHP unit tests and Playwright E2E tests; provides testing helpers and environments.

Quick Start

Start the development cycle by running npm start to begin watching builds, then run npm run phpunit to execute tests.

Frequently Asked Questions about dokan-dev-cycle

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

FAQPage Schema
How do I run tests for Dokan Lite plugin development?

To run tests for Dokan Lite plugin development, execute npm run phpunit for PHP unit tests and use Playwright for E2E tests within the wp-env based test environment.

What do I need to set up the Dokan development cycle locally?

Setting up the Dokan development cycle requires npm, Node.js, PHP, Composer, and a wp-env based test environment to validate PHP and JS tests, linting, and builds.

How do I lint and format PHP and JS code in Dokan?

To lint and format Dokan code, use PHPCS and phpcbf for PHP, alongside ESLint and Stylelint for JS and CSS, with CI enforcing changes on pull requests.

What npm scripts are available for Dokan builds?

Available npm scripts for Dokan builds include start, start:hot for development, build for production, makepot for translations, and release for final distribution packaging.

Can I use this workflow for release readiness in Dokan Lite?

Yes, the workflow covers release readiness for Dokan Lite by validating builds, linting, and running PHP and JS tests to ensure the plugin is ready for production deployment.

Why does CI enforce linting changes on my Dokan pull requests?

CI enforces linting changes on Dokan pull requests to maintain code quality standards across PHP, JS, and CSS by ensuring all formatting issues are resolved before merging.