- WordPress Plugin https://wordpress.org/plugins/docspress/
| 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 installin the command line. Or if you need to update some dependencies, runnpm update
npm run devto run build and start files watchernpm run buildto run buildnpm run build:prodto 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 lintto showalllint errors (described below)npm run lint-fixto automatically fix some ofalllinters errors (described below)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.