- Site https://www.lazyblocks.com/
- WordPress Plugin https://wordpress.org/plugins/lazy-blocks/
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 |
- Run
npm install
in the command line. Or if you need to update some dependencies, runnpm update
npm run dev
to run build and start files watchernpm run build
to run buildnpm run build:prod
to run build and prepare zip files for production
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 lint:php
to showphpcs
errorsnpm run format:php
to automatically fix some of thephpcs
errorsnpm run lint:js
to showeslint
errorsnpm run format:js
to automatically fix some of theeslint
errorsnpm run lint:css
to showstylelint
errorsnpm run format:css
to automatically fix some of thestylelint
errors
All linters compatible with the modern IDE and code editors.
We are using the testing solution provided by the Gutenberg team. To get started you need to install Docker. And that's it... All other work will made by wp-env
package.
NPM commands to work with testing:
npm run test:e2e
to run end to end tests in the headless browser using Playwrightnpm run test:unit:php
tp run PHPUnit tests