visual-portfolio
visual-portfolio copied to clipboard
Portfolio layouts visual editor with Gutenberg support
Visual Portfolio - layouts visual editor with Gutenberg support
- Site https://visualportfolio.co/
- WordPress Plugin https://wordpress.org/plugins/visual-portfolio/
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 lint:phpto showphpcserrorsnpm run format:phpto automatically fix some of thephpcserrorsnpm run lint:jsto showeslinterrorsnpm run format:jsto automatically fix some of theeslinterrorsnpm run lint:cssto showstylelinterrorsnpm run format:cssto automatically fix some of thestylelinterrors
All linters compatible with the modern IDE and code editors.