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 install
in the command line. Or if you need to update some dependencies, runnpm update
Building
-
npm run dev
to run build and start files watcher -
npm run build
to run build -
npm run build:prod
to 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:php
to showphpcs
errors -
npm run format:php
to automatically fix some of thephpcs
errors -
npm run lint:js
to showeslint
errors -
npm run format:js
to automatically fix some of theeslint
errors -
npm run lint:css
to showstylelint
errors -
npm run format:css
to automatically fix some of thestylelint
errors
All linters compatible with the modern IDE and code editors.