Welcome to the official Lazy Blocks - Custom Control Template repository on GitHub. Here you will find a starter-kit for creating a new custom control plugin.
Production-ready scripts and styles build placed in build directory. Sources placed in src directory.
Looking for documentation? Please read the Create custom control article.
- Run
npm installin the command line
npm run buildto run buildnpm run build:prodto run build and prepare zip files for productionnpm run devto run build and start files watcher
Biome owns JavaScript and JSON, Stylelint owns SCSS. Both use the shared configs from @nk-crew/plugin-toolkit, the same ones the Lazy Blocks plugin uses.
npm run lintto run both lintersnpm run format:jsandnpm run format:cssto write the fixes
Both commands need WP-CLI on your PATH.
npm run make-potto rebuild the.potfile from the PHP and JavaScript sourcesnpm run make-jsonto build the JSON files thatwp_set_script_translations()loads for the editor script