lazy-blocks
lazy-blocks copied to clipboard
Use Lazy Blocks plugin to rapidly build custom blocks without ever leaving your WordPress editor
Lazy Blocks - Gutenberg blocks visual constructor
- Site https://lazyblocks.com/
- WordPress Plugin https://wordpress.org/plugins/lazy-blocks/
Development
Requirements
| Prerequisite | How to check | How to install |
|---|---|---|
| PHP >= 5.5.9 | php -v |
php.net |
| Node.js >= 6.x.x | node -v |
nodejs.org |
| Composer >= 1.0.0 | composer -V |
getcomposer.org |
Installation
- Run
npm installin the command line. Or if you need to update some dependencies, runnpm update
Building
npm run devto run build and start files watchernpm run buildto run buildnpm run build:prodto run build and prepare zip files for production
Linting
We use pre-commit and pre-push hooks for Git to lint sources with phpcs, eslint and stylelint tasks.
NPM commands to work with linting:
npm run php-lintto showphpcserrorsnpm run php-lint-fixto automatically fix some of thephpcserrorsnpm run js-lintto showeslinterrorsnpm run js-lint-fixto automatically fix some of theeslinterrorsnpm run css-lintto showstylelinterrorsnpm run css-lint-fixto automatically fix some of thestylelinterrors
All linters compatible with the modern IDE and code editors.